![]() |
VR-Forces 4.0.4 Class Documentation
|
Public Types | |
| typedef std::map< DtString, char * > | CachedPlanMap |
Public Member Functions | |
| DtVrfObjectPlanAdministrator (DtVrfObjectManager *vrfObjectManager) | |
| Constructor. | |
| virtual | ~DtVrfObjectPlanAdministrator () |
| Destructor. | |
| virtual void | cachePlan (const DtString &sObjName, DtlObjPtr planBlock) |
| store the plan text in myCachedPlans Used when attaching VRF components to remote, non-VRF entities. | |
| virtual void | clearCachedPlans () |
| empty myCachedPlans | |
| virtual bool | init () |
| Registers requestPlanCallback, setPlanCallback restartPlanCallback, and abandonPlanCallback. | |
| virtual const char * | lookupCachedPlan (const DtString &sObjName) |
| search myCachedPlans for an entry indexed by sObjName Used when attaching VRF components to remote, non-VRF entities. | |
| virtual bool | readPlanFile (const DtString &filename) |
| Reads the plan file, assigning the plans to the appropriate DtVrfObjectPlanManagers. | |
| virtual void | writePlanFile (const DtString &filename) const |
| Saves the plans of each entity into the plan file. | |
| virtual bool | planExecutionEnabled () |
| virtual void | processSetPlan (DtSimMessage *msg) |
| Forwards the DtIfPlan message to the proper DtVrfObjectPlanManager. | |
| virtual void | processSetMultiplePlan (DtSimMessage *msg) |
| Forwards the DtIfMultiplePlanSet message to the proper DtVrfObjectPlanManager. | |
| virtual void | processRequestPlan (DtSimMessage *msg) |
| Forwards the DtIfRequestPlan message to the proper DtVrfObjectPlanManager. | |
| virtual void | processRequestMultiPlan (DtSimMessage *msg) |
| Handles the request by seeing what entities are local then asking them for their plans. | |
| virtual void | processAbandonPlan (DtSimMessage *msg) |
| Forwards the DtIfAbandonPlan message to the proper DtVrfObjectPlanManager. | |
| virtual void | processRestartPlan (DtSimMessage *msg) |
| Forwards the DtIfRestartPlan message to the proper DtVrfObjectPlanManager. | |
| virtual void | enablePlanExecutionState () |
| Set the plan execution state for all objects. | |
| virtual void | disablePlanExecutionState () |
| Set the plan execution state for all objects. | |
Static Public Member Functions | |
| static void | setPlanCallback (DtSimMessage *msg, void *usr) |
| Calls processSetPlan upon receipt of a DtIfPlan message. | |
| static void | setMultiplePlanCallback (DtSimMessage *msg, void *usr) |
| Calls processSetMultiplePlan upon receipt of a DtIfMultiplePlanSet message. | |
| static void | requestPlanCallback (DtSimMessage *msg, void *usr) |
| Calls processRequestPlan upon receipt of a DtIfRequestPlan message. | |
| static void | requestMultiPlanCallback (DtSimMessage *msg, void *usr) |
| Calls processRequestMultiPlan upon receipt of a DtIfMultiplePlanRequest message. | |
| static void | abandonPlanCallback (DtSimMessage *msg, void *usr) |
| Calls processAbandonPlan upon receipt of a DtIfAbandonPlan message. | |
| static void | restartPlanCallback (DtSimMessage *msg, void *usr) |
| Calls processRestartPlan upon receipt of a DtIfRestartPlan message. | |
Protected Member Functions | |
| DtVrfObjectPlanAdministrator () | |
| default constructor; not implemented | |
| DtVrfObjectPlanAdministrator (const DtVrfObjectPlanAdministrator &orig) | |
| copy constructor; not implemented | |
| DtVrfObjectPlanAdministrator & | operator= (const DtVrfObjectPlanAdministrator &orig) |
| assignment operator; not implemented | |
Protected Attributes | |
| DtVrfObjectManager * | myVrfObjectManager |
| CachedPlanMap | myCachedPlans |
| Plan scripts for non-VRF entities Used during scenario load. | |
| bool | myExecuting |
Static Protected Attributes | |
| static PlanFileVersion | planFileCurrentVersion |
| The current plan file version. | |
| typedef std::map<DtString, char*> DtVrfObjectPlanAdministrator::CachedPlanMap |
| DtVrfObjectPlanAdministrator::DtVrfObjectPlanAdministrator | ( | DtVrfObjectManager * | vrfObjectManager | ) |
Constructor.
| virtual DtVrfObjectPlanAdministrator::~DtVrfObjectPlanAdministrator | ( | ) | [virtual] |
Destructor.
Unregisters requestPlanCallback, setPlanCallback, restartPlanCallback and abandonPlanCallback
| DtVrfObjectPlanAdministrator::DtVrfObjectPlanAdministrator | ( | ) | [protected] |
default constructor; not implemented
| DtVrfObjectPlanAdministrator::DtVrfObjectPlanAdministrator | ( | const DtVrfObjectPlanAdministrator & | orig | ) | [protected] |
copy constructor; not implemented
| virtual void DtVrfObjectPlanAdministrator::cachePlan | ( | const DtString & | sObjName, |
| DtlObjPtr | planBlock | ||
| ) | [virtual] |
store the plan text in myCachedPlans Used when attaching VRF components to remote, non-VRF entities.
| virtual void DtVrfObjectPlanAdministrator::clearCachedPlans | ( | ) | [virtual] |
empty myCachedPlans
| virtual bool DtVrfObjectPlanAdministrator::init | ( | ) | [virtual] |
Registers requestPlanCallback, setPlanCallback restartPlanCallback, and abandonPlanCallback.
| virtual const char* DtVrfObjectPlanAdministrator::lookupCachedPlan | ( | const DtString & | sObjName | ) | [virtual] |
search myCachedPlans for an entry indexed by sObjName Used when attaching VRF components to remote, non-VRF entities.
Returns NULL if nothing found.
| virtual bool DtVrfObjectPlanAdministrator::readPlanFile | ( | const DtString & | filename | ) | [virtual] |
Reads the plan file, assigning the plans to the appropriate DtVrfObjectPlanManagers.
| virtual void DtVrfObjectPlanAdministrator::writePlanFile | ( | const DtString & | filename | ) | const [virtual] |
Saves the plans of each entity into the plan file.
| virtual void DtVrfObjectPlanAdministrator::enablePlanExecutionState | ( | ) | [virtual] |
Set the plan execution state for all objects.
Plans will not start or advance through statements unless execution state is enabled.
| virtual void DtVrfObjectPlanAdministrator::disablePlanExecutionState | ( | ) | [virtual] |
Set the plan execution state for all objects.
Plans will not start or advance through statements unless execution state is enabled.
| virtual bool DtVrfObjectPlanAdministrator::planExecutionEnabled | ( | ) | [virtual] |
| static void DtVrfObjectPlanAdministrator::setPlanCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static] |
Calls processSetPlan upon receipt of a DtIfPlan message.
| virtual void DtVrfObjectPlanAdministrator::processSetPlan | ( | DtSimMessage * | msg | ) | [virtual] |
Forwards the DtIfPlan message to the proper DtVrfObjectPlanManager.
| static void DtVrfObjectPlanAdministrator::setMultiplePlanCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static] |
Calls processSetMultiplePlan upon receipt of a DtIfMultiplePlanSet message.
| virtual void DtVrfObjectPlanAdministrator::processSetMultiplePlan | ( | DtSimMessage * | msg | ) | [virtual] |
Forwards the DtIfMultiplePlanSet message to the proper DtVrfObjectPlanManager.
| static void DtVrfObjectPlanAdministrator::requestPlanCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static] |
Calls processRequestPlan upon receipt of a DtIfRequestPlan message.
| virtual void DtVrfObjectPlanAdministrator::processRequestPlan | ( | DtSimMessage * | msg | ) | [virtual] |
Forwards the DtIfRequestPlan message to the proper DtVrfObjectPlanManager.
| static void DtVrfObjectPlanAdministrator::requestMultiPlanCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static] |
Calls processRequestMultiPlan upon receipt of a DtIfMultiplePlanRequest message.
| virtual void DtVrfObjectPlanAdministrator::processRequestMultiPlan | ( | DtSimMessage * | msg | ) | [virtual] |
Handles the request by seeing what entities are local then asking them for their plans.
If they have them, and they are all the same, sends a response with that plan, else sends that they have no plans. If they all have empty plans, the response will send an empty plan
| static void DtVrfObjectPlanAdministrator::abandonPlanCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static] |
Calls processAbandonPlan upon receipt of a DtIfAbandonPlan message.
| virtual void DtVrfObjectPlanAdministrator::processAbandonPlan | ( | DtSimMessage * | msg | ) | [virtual] |
Forwards the DtIfAbandonPlan message to the proper DtVrfObjectPlanManager.
| static void DtVrfObjectPlanAdministrator::restartPlanCallback | ( | DtSimMessage * | msg, |
| void * | usr | ||
| ) | [static] |
Calls processRestartPlan upon receipt of a DtIfRestartPlan message.
| virtual void DtVrfObjectPlanAdministrator::processRestartPlan | ( | DtSimMessage * | msg | ) | [virtual] |
Forwards the DtIfRestartPlan message to the proper DtVrfObjectPlanManager.
| DtVrfObjectPlanAdministrator& DtVrfObjectPlanAdministrator::operator= | ( | const DtVrfObjectPlanAdministrator & | orig | ) | [protected] |
assignment operator; not implemented
Plan scripts for non-VRF entities Used during scenario load.
If a plan exists, but the intended entity does not, cache the text of the plan. Used for attaching components to remotely simulated non-VRF entities. Indexed by VRF object name.
bool DtVrfObjectPlanAdministrator::myExecuting [protected] |
PlanFileVersion DtVrfObjectPlanAdministrator::planFileCurrentVersion [static, protected] |
The current plan file version.