![]() |
VR-Forces 5.0.1 Developer's Guide
|
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
Public Types | |
| typedef boost::unordered_map < DtUUID, DtLocalObject * > | GlobalPlans |
Public Member Functions | |
| DtGlobalPlanManager (DtLocalObjectManager *simManager) | |
| virtual | ~DtGlobalPlanManager () |
| virtual bool | init () |
| virtual bool | readPlanFile (const DtString &filename) |
| virtual bool | readPlanFileFromZipFile (const DtFilename &scenarioZipFile, const DtString &filename) |
| const GlobalPlans & | globalPlans () const |
| virtual void | sendPlanList () |
| virtual void | completeInitialization () |
| virtual void | addOrUpdatePlan (DtPlan *aNewPlan) |
Protected Types | |
| typedef std::map< DtUUID, boost::signals2::connection > | RemovalSignalsMap |
Protected Member Functions | |
| virtual void | registerInterfaceMessageCallbacks () |
| virtual void | objectAdded (const DtLocalObject *object) |
| virtual void | processObjectAboutToBeRemoved (const DtSimObject *object) |
| virtual void | processSetPlan (DtSimMessage *msg) |
| virtual void | processDeletePlan (DtSimMessage *msg) |
| virtual void | processLaunchGlobalPlan (DtSimMessage *msg) |
| virtual void | setPlan (DtIfPlan *plan) |
| virtual void | watchPlan (DtPlan *) |
| virtual void | processPlanStatementChanged (const DtPlan &) |
| virtual bool | processPlanStream (DtlInputStream *) |
Static Protected Member Functions | |
| static void | requestPlanListCallback (DtSimMessage *msg, void *usr) |
| static void | objectAddedCallback (const DtLocalObject *object, void *usr) |
| static void | setPlanCallback (DtSimMessage *msg, void *usr) |
| static void | deletePlanCallback (DtSimMessage *msg, void *usr) |
| static void | launchGlobalPlanCallback (DtSimMessage *msg, void *usr) |
| static void | planStatementChangedCallback (const DtPlan &, void *usr) |
Protected Attributes | |
| tbb::spin_rw_mutex | myMutex |
| GlobalPlans | myGlobalPlans |
| DtSimulationServices * | mySimulationServices |
| DtLocalObjectManager * | myObjectManager |
| bool | myReadingPlanFile |
| RemovalSignalsMap | myRemovalSignalsMap |
Private Member Functions | |
| DtGlobalPlanManager () | |
| DtGlobalPlanManager (const DtGlobalPlanManager &orig) | |
| DtGlobalPlanManager & | operator= (const DtGlobalPlanManager &orig) |
| typedef boost::unordered_map<DtUUID, DtLocalObject*> DtGlobalPlanManager::GlobalPlans |
|
protected |
| DtGlobalPlanManager::DtGlobalPlanManager | ( | DtLocalObjectManager * | 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.
|
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 |
|
protected |
|
protected |
|
protected |