57 AcceptLevel_Accept = 0,
58 AcceptLevel_Partial = 1,
59 AcceptLevel_Error = 2,
60 AcceptLevel_NoAccept = 99
77 virtual const char*
type()
const override = 0;
109 virtual void setTasked(
bool tasked);
112 virtual bool tasked()
const;
120 virtual bool showCurrentTaskInGui()
const;
125 virtual void registerTaskMsgCallbacks();
153 static void deprecatedTaskProcessorCallbackAdapter(
DtSimMessage * msg,
void * usr,
157 virtual bool taskActive(
int taskId)
const = 0;
161 virtual bool clearTopLevelTasks() = 0;
171 virtual void clearTaskById(
int taskId) = 0;
179 virtual std::list<DtTaskMessage*> currentTaskMessages()
const = 0;
186 virtual void enable()
override;
191 virtual void disable()
override;
209 virtual void suspendSubtaskOfTask(
int taskId,
int subtaskId,
DtSuspendedTaskInfo* suspendInfo);
void(* DtTaskMessageCallbackFcn)(DtSimMessage *msg, void *usr, DtSimTaskStatePtr taskState)
Definition: taskControllerComponent.h:27
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual bool taskVisualizationsActive() const
Returns true if task visualizations are currently active for this component. Default behavior is to r...
Definition: simRadio.h:30
All the information about a single suspended task. This information should be sufficient to resume th...
Definition: suspendedTaskInfo.h:23
virtual void setRadio(DtSimRadio *radio)
virtual void enable() override
Enables the component and resends capable tasks and sets.
AcceptLevel
Levels that a task controller can accept a task it has registered for.
Definition: taskControllerComponent.h:55
DtMessageCallbackFcn myFunction
Definition: taskControllerComponent.h:32
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
std::map< DtSimTaskMessageType, DtTaskCallbackMapPair > DtTaskCallbackMap
Definition: taskControllerComponent.h:219
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
End User Description: DtTaskControllerComponent is the base class for all controllers that respond to...
Definition: taskControllerComponent.h:48
Definition: readerWriterRegistry.h:39
virtual void disable()
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
virtual DtSimTaskStatePtr taskState()
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
void * myUserData
Definition: taskControllerComponent.h:33
virtual void taskNotify(const DtSimTask &task) override
This is called to let us know when some other component receives a task In the case of this component...
Definition: taskControllerComponent.h:106
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
File: simMsg.h.
Definition: simMessage.h:35
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
DtBoost::shared_ptr< DtTaskWithTaskStateList > DtTaskWithTaskStateListPtr
Definition: taskAndTaskStateDefines.h:27
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
Definition: taskControllerComponent.h:30
bool myTaskIsRunning
Definition: taskControllerComponent.h:226
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:123
std::list< DtTaskProcessorCallbackInfo * > myTaskProcessorCallbackInfoList
This list stores any DtTaskProcessorCallbackInfo allocated locally so that they can be deleted when t...
Definition: taskControllerComponent.h:224
struct DtTaskProcessorCallbackInfo DtTaskProcessorCallbackInfo
DtTaskCallbackMap myTaskCallbackMap
Definition: taskControllerComponent.h:220
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
std::pair< DtTaskMessageCallbackFcn, void * > DtTaskCallbackMapPair
This map stores callbacks that have been registered to processes various tasks. The map is indexed by...
Definition: taskControllerComponent.h:218
DtCallbackList< DtSimMessage * >::DtCallbackFunctionType DtMessageCallbackFcn
Message callback function signature.
Definition: messageExecutive.h:21
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