SimEngineAdvanceJob Class Reference

Implements the abstract ThreadPoolJob interface for the purpose of starting SingleThreadSimEngine-s in separate threads taken from a ThreadPool. More...

#include <MultiThreadSimEngine.h>

Inheritance diagram for SimEngineAdvanceJob:

Inheritance graph
[legend]
Collaboration diagram for SimEngineAdvanceJob:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimEngineAdvanceJob (SingleThreadSimEngine *eng, int numSteps)
 Constructs a SimEngine job.
void setNumSteps (int nSteps)
 Changes the number of simulation steps the SingleThreadSimEngine is advanced during one execution of the job.
virtual void start ()
 Starts the execution of the job. This is invoked by the thread object.

Protected Attributes

SingleThreadSimEngineengine
int nSteps


Detailed Description

Implements the abstract ThreadPoolJob interface for the purpose of starting SingleThreadSimEngine-s in separate threads taken from a ThreadPool.

Definition at line 13 of file MultiThreadSimEngine.h.


Constructor & Destructor Documentation

SimEngineAdvanceJob::SimEngineAdvanceJob ( SingleThreadSimEngine eng,
int  numSteps 
)

Constructs a SimEngine job.

Parameters:
eng the SingleThreadSimEngine which is run when the job starts.
nSteps number of simulation steps the SingleThreadSimEngine is advanced during one execution of the job.

Definition at line 8 of file MultiThreadSimEngine.cpp.


Member Function Documentation

void SimEngineAdvanceJob::setNumSteps ( int  nSteps  ) 

Changes the number of simulation steps the SingleThreadSimEngine is advanced during one execution of the job.

Definition at line 12 of file MultiThreadSimEngine.cpp.

void SimEngineAdvanceJob::start (  )  [virtual]

Starts the execution of the job. This is invoked by the thread object.

Implements ThreadPoolJob.

Definition at line 17 of file MultiThreadSimEngine.cpp.

References SingleThreadSimEngine::advance(), engine, and nSteps.

Here is the call graph for this function:


Member Data Documentation

Definition at line 34 of file MultiThreadSimEngine.h.

Referenced by start().

Definition at line 35 of file MultiThreadSimEngine.h.

Referenced by start().


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

Generated on Wed Jul 9 16:34:53 2008 for PCSIM by  doxygen 1.5.5