Class: DtResourceCheckInfo.
More...
Protected Member Functions |
| virtual void | createSimTimeExpression (const DtFloat64 &dMonitorPeriod) |
| | Creates a publish condition that is based on simulation time.
|
| virtual void | updateSimTimeExpression (double simTime, const DtString &echelonId, DtSimManager *manager) |
| | Simulation time – Fire off at the current exercise time plus the buffer period.
|
Detailed Description
Class: DtResourceCheckInfo.
This class will track resources to check and expressions that determine whether or not they need to be updated on the network
Constructor & Destructor Documentation
| DtResourceCheckInfo::DtResourceCheckInfo |
( |
| ) |
|
| virtual DtResourceCheckInfo::~DtResourceCheckInfo |
( |
| ) |
|
|
virtual |
Member Function Documentation
| void DtResourceCheckInfo::setResourceName |
( |
const DtString & |
name | ) |
|
|
inline |
| const DtString& DtResourceCheckInfo::resourceName |
( |
| ) |
const |
|
inline |
| virtual void DtResourceCheckInfo::removeRequestor |
( |
const DtString & |
name | ) |
|
|
virtual |
| const std::list<DtString>& DtResourceCheckInfo::requestors |
( |
| ) |
const |
|
inline |
| virtual void DtResourceCheckInfo::setPublishCondition |
( |
int |
iMonitoryBy, |
|
|
const DtFloat64 & |
dMonitorPeriod, |
|
|
DtSimManager * |
manager |
|
) |
| |
|
virtual |
Sets up a conditional expression to be evaluated based on the iMonitoryBy setting.
| virtual void DtResourceCheckInfo::addRequestor |
( |
const DtString & |
req | ) |
|
|
virtual |
Adds a requestor only if the requestor does not currently exist.
| virtual bool DtResourceCheckInfo::shouldPublish |
( |
double |
simTime, |
|
|
const DtString & |
echelonId, |
|
|
DtSimManager * |
manager |
|
) |
| const |
|
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 void DtResourceCheckInfo::setNextPublicationPeriod |
( |
double |
simTime, |
|
|
const DtString & |
echelonId, |
|
|
DtSimManager * |
manager |
|
) |
| |
|
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
| virtual void DtResourceCheckInfo::createSimTimeExpression |
( |
const DtFloat64 & |
dMonitorPeriod | ) |
|
|
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
| virtual void DtResourceCheckInfo::updateSimTimeExpression |
( |
double |
simTime, |
|
|
const DtString & |
echelonId, |
|
|
DtSimManager * |
manager |
|
) |
| |
|
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
Member Data Documentation
| DtString DtResourceCheckInfo::myResourceName |
|
protected |
| std::list<DtString> DtResourceCheckInfo::myRequestors |
|
protected |
| DtFloat64 DtResourceCheckInfo::myMonitorPeriod |
|
protected |
The documentation for this class was generated from the following file: