24 #include "matrix/vlVector.h"
29 class DtSimObjectBaseObjectStateRepository;
66 virtual bool init()
override;
70 virtual const char*
type()
const override;
77 virtual void tick()
override;
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;
137 virtual const std::string lookUpSupplyType(
const char* type)
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
virtual void disable() override
Overridden to allow tasks controllers that can be disabled to call task complete. ...
Definition: airRefuelSupplierControllerPSR.h:22
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...
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry)
virtual void tick() override
tick()
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:25
VectorOffset3D is a direction vector that is relative to some direction specified by a Vector3D...
Definition: scriptGeometry.h:428
virtual bool checkResourceAvailable(const DtEntityType &type, int bin=0)
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 const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
virtual void enable() override
Overridden to call registerTaskMsgCallbacks().
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
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:137
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 double resourceAvailable(const DtEntityType &type, int bin=0)
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.
Definition: localObject.h:98