fr.cnes.sirius.patrius.wrenches
Class GenericWrenchModel

java.lang.Object
  extended by fr.cnes.sirius.patrius.wrenches.GenericWrenchModel
All Implemented Interfaces:
WrenchModel

public class GenericWrenchModel
extends Object
implements WrenchModel

This class represents a generic wrench model.

Since:
2.1
Version:
$$
Author:
Rami Houdroge
Concurrency :
not thread-safe
Concurrency comment :
uses frames

Constructor Summary
GenericWrenchModel(ForceModel force, Vector3D origin)
          Create a generic wrench model.
 
Method Summary
 Vector3D computeTorque(SpacecraftState s)
          Compute the resulting torque at the mass centre of the spacecraft in the frame of the main part.
 Vector3D computeTorque(SpacecraftState s, Vector3D origin, Frame frame)
          Compute the resulting wrench.
 Wrench computeWrench(SpacecraftState s)
          Compute the resulting wrench at the mass centre of the spacecraft in the frame of the main part.
 Wrench computeWrench(SpacecraftState s, Vector3D origin, Frame frame)
          Compute the resulting wrench.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericWrenchModel

public GenericWrenchModel(ForceModel force,
                          Vector3D origin)
Create a generic wrench model. It is assumed that the application point is expressed in the frame of the main part of the satellite. It is also assumed that the mass center of the spacecraft is the origin of the frame of the main part.

Parameters:
force - force
origin - application point
Method Detail

computeWrench

public Wrench computeWrench(SpacecraftState s)
                     throws OrekitException
Compute the resulting wrench at the mass centre of the spacecraft in the frame of the main part.

Specified by:
computeWrench in interface WrenchModel
Parameters:
s - spacecraft state
Returns:
resulting wrench
Throws:
OrekitException - if some error occurs

computeWrench

public Wrench computeWrench(SpacecraftState s,
                            Vector3D origin,
                            Frame frame)
                     throws OrekitException
Compute the resulting wrench.

Specified by:
computeWrench in interface WrenchModel
Parameters:
s - spacecraft state
origin - point in which to express wrench
frame - frame in which point is expressed
Returns:
resulting wrench
Throws:
OrekitException - if some error occurs

computeTorque

public Vector3D computeTorque(SpacecraftState s)
                       throws OrekitException
Compute the resulting torque at the mass centre of the spacecraft in the frame of the main part.

Specified by:
computeTorque in interface WrenchModel
Parameters:
s - spacecraft state
Returns:
resulting torque at center of spacecraft state frame
Throws:
OrekitException - if some error occurs

computeTorque

public Vector3D computeTorque(SpacecraftState s,
                              Vector3D origin,
                              Frame frame)
                       throws OrekitException
Compute the resulting wrench.

Specified by:
computeTorque in interface WrenchModel
Parameters:
s - spacecraft state
origin - point in which to express torque
frame - frame in which point is expressed
Returns:
resulting torque expressed at origin
Throws:
OrekitException - if some error occurs


Copyright © 2016 CNES. All Rights Reserved.