![]() |
VR-Forces 5.0.1 Developer's Guide
|
class DtScenarioBatchIterator
An instance of DtScenarioBatchIterator provides an iterator over scenarios constructed from a scenario batch. This class is responsible for constructing the scenarios from the data in the batch.
Public Member Functions | |
| DtScenarioBatchIterator () | |
| virtual | ~DtScenarioBatchIterator () |
| virtual bool | init () |
| virtual void | setScenarioBatch (const DtScenarioBatch &batch) |
| virtual void | reset () |
| virtual const DtScenario * | nextRun () |
| virtual const DtScenarioBatchRecord * | currentRecord () const |
| virtual const DtScenario * | currentScenario () const |
| virtual const DtScenarioBatch * | scenarioBatch () const |
| virtual int | runCount () const |
| virtual int | currentRunNumber () const |
| virtual double | totalTime () const |
| virtual double | elapsedTime () const |
| virtual double | timeToGo () const |
| virtual double | percentTimeComplete () const |
| virtual void | nextScenario () |
Protected Member Functions | |
| DtScenarioBatchIterator (const DtScenarioBatchIterator &orig) | |
| DtScenarioBatchIterator & | operator= (const DtScenarioBatchIterator &orig) |
| virtual bool | constructCurrentScenario () |
| virtual void | calculateTotals () |
Protected Attributes | |
| DtScenarioBatch | myScenarioBatch |
| DtListItem * | myCurrentRecordItem |
| DtScenario * | myCurrentScenario |
| int | myRunNumber |
| int | myRunCount |
| int | myTotalRuns |
| double | myTotalTime |
| double | myElapsedTime |
Static Protected Attributes | |
| static const int | theUseComputerGeneratedSeed |
| DtScenarioBatchIterator::DtScenarioBatchIterator | ( | ) |
|
virtual |
|
protected |
Not implemented. Do not use.
|
virtual |
|
virtual |
Sets the scenario batch to iterate over. Resets the current iteration to the start.
|
virtual |
Resets the iterator to the beginning of the batch.
|
virtual |
Constructs and returns a pointer to the scenario representing the next run in the batch. Returns NULL if no more scenarios are left.
|
virtual |
Returns a pointer to the DtScenarioBatchRecord which was used to construct the current scenario.
|
virtual |
Returns a pointer to the current scenario.
|
virtual |
Returns a pointer to the scenario batch being used.
|
virtual |
Total number of runs for current batch.
|
virtual |
Number of current run.
|
virtual |
Total runtime for all scenario runs in current batch.
|
virtual |
Time for all runs that have been completed in current batch.
|
virtual |
Time remaining for all uncompleted runs in current batch.
|
virtual |
Percent (by time) of completeness of the current batch.
|
virtual |
Sets internal variables so the next time nextRun() is called it will move onto the next scenario in the batch rather than the next run in the current scenario.
|
protected |
|
protectedvirtual |
Reads the scenario file for the current record and modifies it according to entries in the current record and places the result in currentScenario.
|
protectedvirtual |
Calculates the total number of runs and the total time for the current batch.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
within a record
|
protected |
total count since start of batch
|
protected |
|
protected |
Total time of all scenario runs. (seconds)
|
staticprotected |
Time of all scenario runs completed. (seconds)