18 #include <vlpi/disEnums.h>
60 virtual const char*
type()
const;
80 virtual bool createTriggerPort();
85 virtual bool createArmedPort();
88 virtual bool createQuantityOutputPort();
91 virtual void setDetonationTime(
DtTime detTime);
92 virtual DtTime detonationTime()
const;
97 virtual void detonate();
101 virtual void beginSensing();
108 virtual bool setMunitionToDetonate(
DtSimMunition& munition );
113 static void setDetonationCallback(
DtSimMessage* msg,
void* usrData);
118 static void setArmedCallback(
DtSimMessage * msg,
void * usr);
122 static void setRestoreCallback(
DtSimMessage * msg,
void * usrData);
127 virtual DtDetonatorFuze fuseStringToEnum(
const DtString & fuseString);
130 virtual DtString fuseStringToEnum(DtDetonatorFuze fuse);
146 virtual bool createTypesToDetectPort();
155 virtual void lookupAndCacheProcessSR();
158 virtual void registerRadioMessageCallbacks();
const DtDetonationControllerDescriptor * myDetonationDescriptor
Definition: detonationController.h:232
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtObjectTypesListOutputPort * myTypesToDetectOutputPort
Output Port Name: object-types-to-spot-report Output Port Description: List of types of object the sp...
Definition: detonationController.h:191
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
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
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init()
Calls setRadio()
This file contains the class declaration for the.
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: detonationController.h:235
DtIntegerOutputPort * myQuantityOutputPort
Output Port Name: quantity Output Port Description: Sends the number of rounds to be fired with a sin...
Definition: detonationController.h:213
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 from ...
DtDetonationController is used to detonate a bomb like munition.
Definition: detonationController.h:37
Instances of DtObjectTypesListOutputPort are output ports through which data producers can send a lis...
Definition: objectTypesListIOPort.h:46
DtBooleanOutputPort * myTriggerPort
Output Port Name: trigger Output Port Description: Sends a new True value when trigger is pulled...
Definition: detonationController.h:198
DtTime myDetonationTime
Definition: detonationController.h:220
DtDetonatorFuze myCurrentFuze
Definition: detonationController.h:219
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
DtWarheadDetonationActuatorPSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: detonationController.h:230
DtDetonationControllerDescriptor; descriptor for the DtDetonationController component.
Definition: detonationControllerDescriptor.h:29
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
DtSimMunition myCurrentMunition
The muntition and fuse to be used in the detonation.
Definition: detonationController.h:218
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
class DtWarheadDetonationActuatorPSR:
Definition: warheadDetonationActuatorPSR.h:27
Instances of DtIntegerOutputPort are output ports through which data producers can send integer value...
Definition: integerIOPort.h:45
DtSimMunition class.
Definition: simMunition.h:31
virtual bool postAddComponentsInit()
Calls enableTaskTypes()
DtSensorContactListMultiInputPort * myDetectedObjectsInputPort
Input Port Name: detected-objects Input Port Description: List of contacts that fall within our range...
Definition: detonationController.h:183
bool myAmArmed
Definition: detonationController.h:221
double myDetonationProximity
Definition: detonationController.h:223
DtBooleanOutputPort * myArmedPort
Output Port Name: armed Output Port Description: Set to true when the object is armed so warhead can ...
Definition: detonationController.h:205
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