VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtScenarioBatchIterator Class Reference

class DtScenarioBatchIterator More...

List of all members.

Public Member Functions

 DtScenarioBatchIterator ()
virtual ~DtScenarioBatchIterator ()
virtual bool init ()
virtual void setScenarioBatch (const DtScenarioBatch &batch)
 Sets the scenario batch to iterate over.
virtual void reset ()
 Resets the iterator to the beginning of the batch.
virtual const DtScenarionextRun ()
 Constructs and returns a pointer to the scenario representing the next run in the batch.
virtual const
DtScenarioBatchRecord
currentRecord () const
 Returns a pointer to the DtScenarioBatchRecord which was used to construct the current scenario.
virtual const DtScenariocurrentScenario () const
 Returns a pointer to the current scenario.
virtual const DtScenarioBatchscenarioBatch () const
 Returns a pointer to the scenario batch being used.
virtual int runCount () const
 Total number of runs for current batch.
virtual int currentRunNumber () const
 Number of current run.
virtual double totalTime () const
 Total runtime for all scenario runs in current batch.
virtual double elapsedTime () const
 Time for all runs that have been completed in current batch.
virtual double timeToGo () const
 Time remaining for all uncompleted runs in current batch.
virtual double percentTimeComplete () const
 Percent (by time) of completeness of the current batch.
virtual void nextScenario ()
 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 Member Functions

 DtScenarioBatchIterator (const DtScenarioBatchIterator &orig)
 Not implemented. Do not use.
DtScenarioBatchIteratoroperator= (const DtScenarioBatchIterator &orig)
virtual bool constructCurrentScenario ()
 Reads the scenario file for the current record and modifies it according to entries in the current record and places the result in currentScenario.
virtual void calculateTotals ()
 Calculates the total number of runs and the total time for the current batch.

Protected Attributes

DtScenarioBatch myScenarioBatch
DtListItem * myCurrentRecordItem
DtScenariomyCurrentScenario
int myRunNumber
int myRunCount
 within a record
int myTotalRuns
 total count since start of batch
double myTotalTime
double myElapsedTime
 Total time of all scenario runs. (seconds)

Static Protected Attributes

static const int theUseComputerGeneratedSeed
 Time of all scenario runs completed. (seconds)

Detailed Description

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.


Constructor & Destructor Documentation

Not implemented. Do not use.


Member Function Documentation

virtual bool DtScenarioBatchIterator::init ( ) [virtual]
virtual void DtScenarioBatchIterator::setScenarioBatch ( const DtScenarioBatch batch) [virtual]

Sets the scenario batch to iterate over.

Resets the current iteration to the start.

virtual void DtScenarioBatchIterator::reset ( ) [virtual]

Resets the iterator to the beginning of the batch.

virtual const DtScenario* DtScenarioBatchIterator::nextRun ( ) [virtual]

Constructs and returns a pointer to the scenario representing the next run in the batch.

Returns NULL if no more scenarios are left.

Returns a pointer to the DtScenarioBatchRecord which was used to construct the current scenario.

virtual const DtScenario* DtScenarioBatchIterator::currentScenario ( ) const [virtual]

Returns a pointer to the current scenario.

virtual const DtScenarioBatch* DtScenarioBatchIterator::scenarioBatch ( ) const [virtual]

Returns a pointer to the scenario batch being used.

virtual int DtScenarioBatchIterator::runCount ( ) const [virtual]

Total number of runs for current batch.

virtual int DtScenarioBatchIterator::currentRunNumber ( ) const [virtual]

Number of current run.

virtual double DtScenarioBatchIterator::totalTime ( ) const [virtual]

Total runtime for all scenario runs in current batch.

virtual double DtScenarioBatchIterator::elapsedTime ( ) const [virtual]

Time for all runs that have been completed in current batch.

virtual double DtScenarioBatchIterator::timeToGo ( ) const [virtual]

Time remaining for all uncompleted runs in current batch.

virtual double DtScenarioBatchIterator::percentTimeComplete ( ) const [virtual]

Percent (by time) of completeness of the current batch.

virtual void DtScenarioBatchIterator::nextScenario ( ) [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.

DtScenarioBatchIterator& DtScenarioBatchIterator::operator= ( const DtScenarioBatchIterator orig) [protected]
virtual bool DtScenarioBatchIterator::constructCurrentScenario ( ) [protected, virtual]

Reads the scenario file for the current record and modifies it according to entries in the current record and places the result in currentScenario.

virtual void DtScenarioBatchIterator::calculateTotals ( ) [protected, virtual]

Calculates the total number of runs and the total time for the current batch.


Member Data Documentation

within a record

total count since start of batch

Total time of all scenario runs. (seconds)

Time of all scenario runs completed. (seconds)


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)