16 #include "vlutil/vlString.h"
47 virtual const char*
type()
const override;
58 virtual bool init()
override;
66 virtual void tick()
override;
79 virtual DtSimResource* lookupExpendableResource(
const DtEntityType & resourceName,
int& quantity);
86 virtual bool launchExpendableResources(
int numberToFire,
const DtEntityType& resourceName);
96 virtual bool createPSR();
102 static void setAutoLaunchEnabledCallback(
DtSimMessage* msg,
void* usr);
103 virtual void processSetAutoLaunchEnabled(
DtSimMessage* msg);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
int myNumberPerInterval
Definition: launchExpendableResourceController.h:112
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
Handle returned from Create Object Service calls.
Definition: createObjectHandle.h:12
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void registerTaskMsgCallbacks()
DtLaunchExpendableResourceTask represents a launching task where by the entity will launch the specif...
Definition: launchExpendableResourceTask.h:31
AcceptLevel
Levels that a task controller can accept a task it has registered for.
Definition: taskControllerComponent.h:55
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
DtLaunchExpendableResourceControllerDescriptor; descriptor for the DtLaunchExpendableResourceControll...
Definition: launchExpendableResourceControllerDescriptor.h:40
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
std::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
DtLaunchExpendableResourcePSR * myProcessState
Saved out in the Order of Battle file(.oob).This will save out how many resources we have left to fir...
Definition: launchExpendableResourceController.h:110
virtual bool init() override
Calls setRadio()
const DtLaunchExpendableResourceControllerDescriptor * myDesc
Definition: launchExpendableResourceController.h:106
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
virtual DtSimTaskStatePtr currentTaskState() const
End User Description: This controller handles DtLaunchExpendableResourceTask tasks. When it receives this task, the entity will check if the resource is available and if so will launch it with desired initial velocity specified in the descriptor. Uses Descriptor Type: DtLaunchExpendableResourceControllerDescriptor.
Definition: launchExpendableResourceController.h:28
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtSimResource is a class which will define a SISO Enumeration to use as a resource and the quantity o...
Definition: simResource.h:32
virtual void clearTask() override
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
virtual AcceptLevel acceptTask(const DtTaskMessage &task)
Called by the task manager when this controller is being considered to execute a task. Only tasks which already match types that this controller has registered for will be passed. This is used for the case where multiple task controllers have registered for the same task type. This gives the controller a chance to look at the parameters of the task and to reject the execution of the task based on parameters. Controllers can return any of the AcceptLevel levels. The task manager will choose a controller with the lowest AcceptLevel to execute, but will not choose any controller that returns AcceptLevel_NoAccept. Default implementation returns AcceptLevel_Accept. Override this to check parameters and conditionally return a different AccpetLevel.
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: launchExpendableResourceController.h:114
class DtLaunchExpendableResourcePSR:
Definition: launchExpendableResourcePSR.h:27
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
A locally simulated VRF object.
Definition: localObject.h:98