42 virtual const char*
type()
const;
59 virtual bool createPSR();
61 static void syncMatrixRenameRequestCallback(
const DtVrfObjectMessage * msg,
void* usr);
64 static void syncMatrixRemovePhaseRequestCallback(
const DtVrfObjectMessage * msg,
void* usr);
70 static void syncMatrixAddObjectsRequestCallback(
const DtVrfObjectMessage * msg,
void* usr);
73 static void syncMatrixRemoveObjectRequestCallback(
const DtVrfObjectMessage * msg,
void* usr);
79 static void syncMatrixSetPlanRequestCallback(
const DtVrfObjectMessage * msg,
void* usr);
82 static void syncMatrixRemovePlanRequestCallback(
const DtVrfObjectMessage * msg,
void* usr);
85 static void syncMatrixPhaseInfoRequestCallback(
const DtVrfObjectMessage * msg,
void* usr);
88 static void syncMatrixActivatePlanRequestCallback(
const DtVrfObjectMessage * msg,
void* usr);
91 static void planStatementMessageCallback(
DtSimMessage* msg,
void* usr);
92 virtual void processPlanStatementMessage(
DtSimMessage* msg);
95 virtual void sendSyncMatrixRenameResponse();
98 virtual void sendSyncMatrixRemoveResponse();
101 virtual void sendSyncMatrixRemovePhaseResponse(
const DtString& phaseName);
104 virtual void sendSyncMatrixInfoResponse();
107 virtual void sendSyncMatrixObjectsListResponse(
bool refreshPlans);
110 virtual void sendSyncMatrixPhaseInfoResponse(
const DtString& origName,
int phaseIndex,
DtRwSyncMatrixPhase* phase,
bool endConditionSpecified =
true);
113 virtual void sendSyncMatrixMoveToPhase(
const DtString& requestedPhase,
114 const DtString& previousPhase =
"",
bool previousPhaseCompleted =
false);
122 virtual bool isObjectSuperior(
const DtUUID& object1,
const DtUUID& object2,
bool direct =
false);
125 virtual void mergeRequestedObjects(
const std::vector<DtUUID>& requestedObjects);
136 virtual void removeObjectByUUID(
const DtUUID& uuid,
bool mergeSubordinates);
139 virtual void processSuperiorChanged(
const DtSimObject*
object,
const DtUUID& oldSuperior,
const DtUUID& newSuperior);
141 virtual void executePhasePlans();
142 virtual void processPhasePlansStatus();
144 virtual DtPlan* createAndInitPlan(
const DtUUID&
object);
146 virtual void activatePlan(
const DtUUID& uuid,
const DtString& phaseName,
bool activate);
149 virtual void abandonPlan(
const DtUUID& uuid);
150 virtual void registerToPlanStatus(
const DtUUID& uuid);
152 virtual void proceedToNextPhase();
154 void initSuperiorChangedCallbacksMap();
155 void resetSuperiorChangedCallbacksMap();
156 void registerSuperiorChangedCallbacks();
159 virtual void initPlanPhaseCallbacks();
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
class DtRwSyncMatrixPlan:
Definition: rwSyncMatrixPlan.h:23
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
DtSyncMatrixControllerPSR * myProcessState
Definition: syncMatrixController.h:177
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
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 bool init()
Calls setRadio()
This class controls a synchronization matrix by assigning its objects with plans according to its pha...
Definition: syncMatrixController.h:24
File: simMsg.h.
Definition: simMessage.h:35
std::map< DtUUID, boost::signals2::scoped_connection > SuperiorChangedCallbacksMap
Definition: syncMatrixController.h:18
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
boost::signals2::scoped_connection mySimObjectDeletedConnection
Definition: syncMatrixController.h:179
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
class DtPlan:
Definition: plan.h:92
SuperiorChangedCallbacksMap mySuperiorChangedCallbacksMap
Definition: syncMatrixController.h:181
class DtRwSyncMatrixPhase:
Definition: rwSyncMatrixPhase.h:23
DtSyncMatrixControllerPSR is a process state repository which holds state variables for the DtSyncMat...
Definition: syncMatrixControllerPSR.h:20
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
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
bool mySuperiorChangedRegistrationIsComplete
Definition: syncMatrixController.h:182
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
This list stores entries of DtRwSyncMatrixPlan.
Definition: rwSyncMatrixPlanList.h:17