![]() |
VR-Forces 4.10 Class Documentation
|
The global plan manager maintains the list of "Global Plans." These are plans that are not specific to an entity, but are run stand-alone on a sim engine, possibly creating and deleting entities during execution. More...
Public Types | |
| typedef boost::unordered_map < DtUUID, const DtVrfObject * > | GlobalPlans |
Public Member Functions | |
| DtGlobalPlanManager (DtSimManager *simManager) | |
| Basic constructor. More... | |
| virtual | ~DtGlobalPlanManager () |
| Destructor. More... | |
| virtual bool | init () |
| virtual bool | readPlanFile (const DtString &filename) |
| Reads the global plan file to the specified name and replaces all current plans with plans from the file. More... | |
| virtual bool | readPlanFileFromZipFile (const DtFilename &scenarioZipFile, const DtString &filename) |
| const GlobalPlans & | globalPlans () const |
| Accessor for the global plans currently in use on this back-end. More... | |
| virtual void | sendPlanList () |
| Sends a DtIfGlobalPlanList with the current plan names. More... | |
| virtual void | completeInitialization () |
| virtual void | addOrUpdatePlan (DtPlan *aNewPlan) |
| Add or update this plan in the global plan manager. If new plan will create a global plan entity to assign the plan to. More... | |
Protected Member Functions | |
| virtual void | registerInterfaceMessageCallbacks () |
| Registers for any interface messages that the manager listens to. More... | |
| virtual void | objectAdded (const DtVrfObject *object) |
| See if this is a global plan object. If it is send out an updated list after addition. More... | |
| virtual void | objectAboutToBeRemoved (const DtVrfObject *object) |
| See if this is a global plan object. If it is send out an updated list after removal. More... | |
| virtual void | processSetPlan (DtSimMessage *msg) |
| If this message is applicable to this sim engine, and contains a global plan, this plan is added to the system. More... | |
| virtual void | processDeletePlan (DtSimMessage *msg) |
| Looks up and removes any global plan that exists with the name specified in the delete plan message (DtIfDeletePlan). More... | |
| virtual void | processLaunchGlobalPlan (DtSimMessage *msg) |
| If global plan exists (and is local) and is not already in launch state, launch it. More... | |
| virtual void | setPlan (DtIfPlan *plan) |
| Creates a new plan in the plan manager with the specified name, and with the specified statements passed in the statement list. More... | |
| virtual void | watchPlan (DtPlan *) |
| If quick launch add statement change callback such that when plan is complete the list can be sent around with new status. More... | |
| virtual void | processPlanStatementChanged (const DtPlan &) |
| virtual bool | processPlanStream (DtlInputStream *) |
Static Protected Member Functions | |
| static void | requestPlanListCallback (DtSimMessage *msg, void *usr) |
| Calls sendPlanList(). More... | |
| static void | objectAddedCallback (const DtVrfObject *object, void *usr) |
| static void | objectAboutToBeRemovedCallback (const DtVrfObject *object, void *usr) |
| static void | setPlanCallback (DtSimMessage *msg, void *usr) |
| Calls processSetPlan(). More... | |
| static void | deletePlanCallback (DtSimMessage *msg, void *usr) |
| Calls processDeletePlan(). More... | |
| static void | launchGlobalPlanCallback (DtSimMessage *msg, void *usr) |
| Calls processLaunchGlobalPlan(). More... | |
| static void | planStatementChangedCallback (const DtPlan &, void *usr) |
Protected Attributes | |
| GlobalPlans | myGlobalPlans |
| DtSimManager * | mySimManager |
| bool | myReadingPlanFile |
Private Member Functions | |
| DtGlobalPlanManager () | |
| Not implemented. More... | |
| DtGlobalPlanManager (const DtGlobalPlanManager &orig) | |
| Not implemented. More... | |
| DtGlobalPlanManager & | operator= (const DtGlobalPlanManager &orig) |
| Not implemented. More... | |
The global plan manager maintains the list of "Global Plans." These are plans that are not specific to an entity, but are run stand-alone on a sim engine, possibly creating and deleting entities during execution.
This class will not longer write out plan files as the plans will be associated with locally simulated global plan entities. It will read in old plan files and then create local entities based on the plan names for that plan
| typedef boost::unordered_map<DtUUID, const DtVrfObject*> DtGlobalPlanManager::GlobalPlans |
| DtGlobalPlanManager::DtGlobalPlanManager | ( | DtSimManager * | simManager | ) |
Basic constructor.
|
virtual |
Destructor.
|
private |
Not implemented.
|
private |
Not implemented.
|
virtual |
Reads the global plan file to the specified name and replaces all current plans with plans from the file.
|
virtual |
|
inline |
Accessor for the global plans currently in use on this back-end.
|
virtual |
Sends a DtIfGlobalPlanList with the current plan names.
|
virtual |
|
virtual |
Add or update this plan in the global plan manager. If new plan will create a global plan entity to assign the plan to.
|
protectedvirtual |
Registers for any interface messages that the manager listens to.
|
staticprotected |
Calls sendPlanList().
|
staticprotected |
|
protectedvirtual |
See if this is a global plan object. If it is send out an updated list after addition.
|
staticprotected |
|
protectedvirtual |
See if this is a global plan object. If it is send out an updated list after removal.
|
staticprotected |
Calls processSetPlan().
|
protectedvirtual |
If this message is applicable to this sim engine, and contains a global plan, this plan is added to the system.
Any plan currently in the system with the same name will be replaced.
|
staticprotected |
Calls processDeletePlan().
|
protectedvirtual |
Looks up and removes any global plan that exists with the name specified in the delete plan message (DtIfDeletePlan).
|
staticprotected |
Calls processLaunchGlobalPlan().
|
protectedvirtual |
If global plan exists (and is local) and is not already in launch state, launch it.
|
protectedvirtual |
Creates a new plan in the plan manager with the specified name, and with the specified statements passed in the statement list.
Any already existing plan with the same name will be replaced.
| statementList | A list of DtSimStatement objects. |
|
protectedvirtual |
If quick launch add statement change callback such that when plan is complete the list can be sent around with new status.
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
|
private |
Not implemented.
|
protected |
|
protected |
|
protected |