24 #include "matrix/vlVector.h"
29 class DtSimObjectBaseObjectStateRepository;
70 virtual const char*
type()
const;
89 static void internalTransferFuelTaskCallback(
DtSimMessage* msg,
void* usr);
92 static void setRefuelPointEnabledCallback(
DtSimMessage * msg,
void * usr);
93 virtual void processSetRefuelPointEnabled(
DtSimMessage* msg);
99 virtual const int refuelPointState(
int point)
const;
102 virtual void initRefuelPointList();
105 virtual const bool isRefuelPointEnabled(
int point)
const;
110 virtual const DtRefuelPoint* lookupRefuelPoint(
int artPart)
const;
122 virtual void enable(
int artPart);
124 virtual bool isEnabled(
int artPart)
const;
127 virtual void disable(
int artPart);
129 virtual bool isDisabled(
int artPart)
const;
132 virtual void setOccupied(
int artPart);
134 virtual bool isOccupied(
int artPart)
const;
144 virtual const int lookupRefuelPointState(
int artPart)
const;
147 virtual bool isDrogue(
int artPart)
const;
150 virtual bool isBoom(
int artPart)
const;
164 virtual void processInternalTransferFuelTask(
DtSimMessage* msg);
165 virtual void processInternalTransferFuelTaskPSR();
169 double & quantityRequestedTotal,
177 virtual bool verifyInternalTransferFuelTaskParams(
double amount,
double rate);
179 virtual void internalTransferFuel();
180 virtual void processReceivingState();
182 virtual void updateTaskedSupplies(
double quantityRequestedTotal,
184 virtual void updateReceivedSupplies(
DtTime interval);
186 virtual bool checkResourceFillUp();
187 virtual double resourceFillUp();
190 virtual void updateResources(
double quantity);
191 virtual void updatePSR();
194 virtual double selfRefuelMaxRate();
221 const double theTotalReceivedAmountCompletePercentage = 0.999;
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: airRefuelSupplierControllerPSR.h:22
virtual void enable()
Overridden to call registerTaskMsgCallbacks().
DtRefuelPoint.
Definition: refuelPointsList.h:27
VR-Link includes.
Definition: internalTransferFuelTask.h:23
DtAirRefuelSupplierControllerDescriptor * myDescriptor
Definition: airRefuelSupplierController.h:209
DtAirRefuelSupplierControllerPSR * myProcessState
Container for state data associated with this component such as whether it is in the closed or opened...
Definition: airRefuelSupplierController.h:213
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
virtual double resourceAvailable(const DtEntityType &type)
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry)
virtual void bindLuaFunctions(lua_State *)=0
Override to bind lua functions.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
const DtResupplySupplierController & operator=(const DtResupplySupplierController &orig)
assignment operator; not implemented
DtAirRefuelSupplierController is a simple actuator which controls the active state of an tanker's ref...
Definition: airRefuelSupplierController.h:49
Definition: readerWriterRegistry.h:39
Definition: bindableLuaComponent.h:53
DtRefuelPointState
Definition: airRefuelSupplierController.h:34
DtAirRefuelSupplierControllerDescriptor is the descriptor for DtAirRefuelSupplierController component...
Definition: airRefuelSupplierControllerDescriptor.h:24
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
VectorOffset3D is a direction vector that is relative to some direction specified by a Vector3D...
Definition: scriptGeometry.h:424
File: simMsg.h.
Definition: simMessage.h:35
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: airRefuelSupplierController.h:223
Definition: airRefuelSupplierController.h:36
DtAirRefuelSupplierStateData myAirRefuelSupplierStateData
Controller state transition class.
Definition: airRefuelSupplierController.h:216
Definition: airRefuelSupplierStateData.h:78
virtual void disable()
Overridden to allow tasks controllers that can be disabled to call task complete. ...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
non-operational
Definition: airRefuelSupplierController.h:37
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
This class implements a controller, which gives the unit the capability to provide supplies...
Definition: resupplySupplierController.h:33
virtual const DtString lookUpSupplyType(const DtEntityType &type) const
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:121
virtual void tick()
tick()
virtual bool checkResourceAvailable(const DtEntityType &type)
Instances of DtIntegerOutputPort are output ports through which data producers can send integer value...
Definition: integerIOPort.h:45
operational
Definition: airRefuelSupplierController.h:38
virtual void bindLuaGlobals(lua_State *)=0
Override to bind lua globals.
virtual bool isEnabled()
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86