16 #include <boost/signals2.hpp>
46 virtual bool init()
override;
50 virtual const char*
type()
const override;
55 virtual void tick()
override;
72 virtual double computeEmbarkedObjectsWeight();
75 virtual double computeFuelWeight();
79 virtual void statePropertiesRestored();
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
double myLastFuelWeight
last fuel weight in kilograms
Definition: encumbranceActuator.h:97
DtEncumbranceActuatorDescriptor * myEncumbranceDescriptor
type-cast pointer
Definition: encumbranceActuator.h:94
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
boost::signals2::scoped_connection myStatePropertiesRestoredConnection
Definition: encumbranceActuator.h:116
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: encumbranceActuator.h:115
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtAnalogOutputPort * myWeightFuelOutputPort
PortsOutput Port Name: weight-fuel Output Port Description: Weight of fuel that the object is carryin...
Definition: encumbranceActuator.h:105
End User Description: DtActuator is the base class for all actuator model components. Developer Description: The DtActuator base class caches a pointer to the entity's radio for convenience. Derived classes may have articulated parts that are configured from the DtActuatorComponentDescriptor's DtSimArtPartDescriptorList. For each articulated part in the list a DtArticulatedPartStateRepository will be created to store the data for the part such as it's location, rotation and so forth. These are created in the entity's DtVrfObjectStateRepository createParts() function. This call creates all the attached parts for all the actuators. These articulated state repositories are managed by the DtAttachmentManager. They are cached by their partType which is the DIS Enumeration describing the part from the disEnums.h file and was specified in the actuator's DtActuatorComponentDescriptor as descriped above. The partType is used as the category of the DtEntityType used to look up articulated parts in the DtAttachementManager. When an actuator needs access to a particular articulated part it looks it up by the part's object type.
Definition: actuatorComponent.h:47
DtRwReal * myMassDynamic
Definition: encumbranceActuator.h:114
DtEncumbranceActuatorDescriptor is used by DtEncumbranceActuator.
Definition: encumbranceActuatorDescriptor.h:20
Instances of DtAnalogOutputPort are input ports through which data producers can send real numbers...
Definition: analogIOPort.h:45
virtual bool init() override
Overridden to cache a pointer to the entity's radio in this class.
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtAnalogOutputPort * myWeightPayloadOutputPort
Output Port Name: weight-payload Output Port Description: Weight of payload that the object is carryi...
Definition: encumbranceActuator.h:110
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtEncumbranceActuator tallies additional mass from resources and embarked objects.
Definition: encumbranceActuator.h:29
double myLastPayloadWeight
Definition: encumbranceActuator.h:98
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object.
Definition: localObject.h:98