MTMCSim
0.5
|
The base class for the simulators that are multi-runnable and support our multithread interface. More...
#include <MultiRunSimuBase.h>
Public Member Functions | |
MultiRunSimuBase (int mode_, SimuPara &simupara) | |
virtual | ~MultiRunSimuBase () |
Public Member Functions inherited from MTMCSim::MTMCSimBase | |
virtual void | prepare (const MCThreadInfo &) |
This function will be called by the scheduler before the threads are created. More... | |
virtual void | oneThread (shared_ptr< RNObj >, const MCThreadInfo &)=0 |
The work to be done by a worker thread. More... | |
virtual shared_ptr< RNObj > | genRNObj ()=0 |
Returns the random number object, usually they are random sequences. More... | |
virtual void | dumpOneResult (const MCThreadInfo &)=0 |
Put the result from one thread to the final result object. More... | |
virtual bool | checkTerm ()=0 |
Return true if the terminate condition satisfies. More... | |
virtual void | postProcess () |
This function will be called after the RNG thread and worker threads are done. More... | |
void | singleThreadSim () |
Single thread simulation. More... | |
virtual void | setCompResMap (compResMap &compResM_) const =0 |
Calls compRes.setMapping(compResM_);. More... | |
virtual | ~MTMCSimBase () |
Virtual Destructor. More... | |
Public Member Functions inherited from MTMCSim::MultiRunnable | |
virtual shared_ptr< SimuPara > | getNextPara () |
Get the parameter for the next simulation. More... | |
virtual bool | quit () const |
Check if terminate the whole simulation series. More... | |
MultiRunnable () | |
Default constructor. More... | |
MultiRunnable (int mode_, SimuPara &simupara) | |
virtual | ~MultiRunnable () |
Additional Inherited Members | |
Protected Attributes inherited from MTMCSim::MultiRunnable | |
int | mulMode |
bool | isQuit |
shared_ptr< SimuPara > | nextPara |
The base class for the simulators that are multi-runnable and support our multithread interface.
|
inline |
|
inlinevirtual |