![]() |
VR-Forces 5.0.3 Developer's Guide
|
Class: DtResourceCheckInfo.
This class will track resources to check and expressions that determine whether or not they need to be updated on the network
Public Member Functions | |
| DtResourceCheckInfo () | |
| DtResourceCheckInfo (const DtResourceCheckInfo &orig) | |
| virtual | ~DtResourceCheckInfo () |
| virtual DtResourceCheckInfo & | operator= (const DtResourceCheckInfo &) |
| void | setResourceName (const DtString &name) |
| const DtString & | resourceName () const |
| virtual void | removeRequestor (const DtString &name) |
| const std::list< DtString > & | requestors () const |
| virtual void | setPublishCondition (int iMonitoryBy, const DtFloat64 &dMonitorPeriod, DtSimulationServices *manager) |
| virtual void | addRequestor (const DtString &req) |
| virtual bool | shouldPublish (double simTime, DtLocalObject *object, DtSimulationServices *manager) const |
| virtual void | setNextPublicationPeriod (double simTime, DtSimulationServices *manager) |
Protected Member Functions | |
| virtual void | createSimTimeExpression (const DtFloat64 &dMonitorPeriod) |
| virtual void | updateSimTimeExpression (double simTime, DtSimulationServices *manager) |
Protected Attributes | |
| DtString | myResourceName |
| std::list< DtString > | myRequestors |
| DtFloat64 | myMonitorPeriod |
| DtSimCondExpr * | myPublishCondition |
| DtResourceCheckInfo::DtResourceCheckInfo | ( | ) |
| DtResourceCheckInfo::DtResourceCheckInfo | ( | const DtResourceCheckInfo & | orig | ) |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
virtual |
|
inline |
|
virtual |
Sets up a conditional expression to be evaluated based on the iMonitoryBy setting.
|
virtual |
Adds a requestor only if the requestor does not currently exist.
|
virtual |
Return true if this resource should be updated based on the conditional expression. The simManager is supplied in case the condition needs it.
|
virtual |
Given the specified conditional expression, set the next time the expression should evaluate to true. For the current supported conditions, the following will happen:
Simulation time – Fire off at the current exercise time plus the buffer period. If this is the first time, set a random period between 0 and the period time to fire off to prevent network flooding
|
protectedvirtual |
Creates a publish condition that is based on simulation time. If there is already an existing expression (sim time), it will reuse the expression but respect the faster update time. If there is not a sim time expression, it will remove the old one in favor of this.
|
protectedvirtual |
Simulation time – Fire off at the current exercise time plus the buffer period. If this is the first time, set a random period between 0 and the period time to fire off to prevent network flooding.
|
protected |
|
protected |
|
protected |
|
protected |