![]() |
VR-Link API Documentation for DIS
|
This is the DtLinkStrategy class. It is the abstract base class for all derived strategies. More...
Inheritance diagram for DtLinkStrategy:
Collaboration diagram for DtLinkStrategy:Public Member Functions | |
| DtLinkStrategy (std::string name, DtManagedInterface *link) | |
| constructor takes name More... | |
| virtual | ~DtLinkStrategy () |
| destructor More... | |
| std::string | name () |
| Get the name of the strategy. More... | |
| virtual bool | init ()=0 |
| Initialize the strategy. More... | |
| virtual void | tick () |
| Tick the strategy to give it some CPU time. More... | |
| virtual void | shutdown () |
| Shutdown the strategy and release any resources. More... | |
| virtual void | addChildStrategy (DtLinkStrategy *strategy) |
| Functions for adding, removing or finding any child strategies This is typically used for the initialization strategy that "owns" all the other strategies. More... | |
| virtual bool | removeChildStrategy (std::string name) |
| virtual DtLinkStrategy * | findStrategy (std::string name) |
Protected Attributes | |
| DtManagedInterface * | myManagedInterface |
| std::string | myName |
| bool | myInitalized |
| std::list< DtLinkStrategy * > | myChildStrategies |
This is the DtLinkStrategy class. It is the abstract base class for all derived strategies.
| DtLinkStrategy::DtLinkStrategy | ( | std::string | name, |
| DtManagedInterface * | link | ||
| ) |
constructor takes name
|
virtual |
destructor
|
virtual |
Functions for adding, removing or finding any child strategies This is typically used for the initialization strategy that "owns" all the other strategies.
|
virtual |
|
pure virtual |
Initialize the strategy.
This function will be called multiple times to allow for dependent strategies to startup properly This function should return false if the strategy cannot get a resource it needs due to a dependency not being initialized yet.
Implemented in DtEmitterStateStrategy, DtAcknowledgeStrategy, DtActionRequestStrategy, DtActionResponseStrategy, DtCollisionStrategy, DtDataStrategy, DtEventReportStrategy, DtSetDataStrategy, DtStartResumeStrategy, DtStopFreezeStrategy, DtDetonationStrategy, DtIffStrategy, DtRadioReceiverStrategy, DtRadioTransmitterStrategy, DtEntityStateStrategy, DtSignalStrategy, DtFireStrategy, DtInitStrategy, and DtEntityUpdateStrategy.
| std::string DtLinkStrategy::name | ( | ) |
Get the name of the strategy.
|
virtual |
|
virtual |
Shutdown the strategy and release any resources.
Reimplemented in DtEmitterStateStrategy, DtAcknowledgeStrategy, DtActionRequestStrategy, DtActionResponseStrategy, DtCollisionStrategy, DtDataStrategy, DtEventReportStrategy, DtSetDataStrategy, DtStartResumeStrategy, DtStopFreezeStrategy, DtDetonationStrategy, DtIffStrategy, DtRadioReceiverStrategy, DtRadioTransmitterStrategy, DtEntityStateStrategy, DtSubscribeStrategy, DtSignalStrategy, DtFireStrategy, DtInitStrategy, and DtEntityUpdateStrategy.
|
virtual |
Tick the strategy to give it some CPU time.
Reimplemented in DtEmitterStateStrategy, DtAcknowledgeStrategy, DtActionRequestStrategy, DtActionResponseStrategy, DtCollisionStrategy, DtDataStrategy, DtEventReportStrategy, DtSetDataStrategy, DtStartResumeStrategy, DtStopFreezeStrategy, DtDetonationStrategy, DtIffStrategy, DtRadioReceiverStrategy, DtRadioTransmitterStrategy, DtEntityStateStrategy, DtSignalStrategy, DtFireStrategy, DtInitStrategy, and DtEntityUpdateStrategy.
|
protected |
|
protected |
|
protected |
|
protected |