|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbcds.phison.sim.PmBase<V,E>
public abstract class PmBase<V,E>
Provides default functionality and data for classes implementing the ProcessingModule interface.
| Constructor Summary | |
|---|---|
PmBase()
|
|
| Method Summary | |
|---|---|
SimGlobals<V,E> |
ctx()
Returns the simulation context. |
Environ |
env()
This is an alias for getEnviron(). |
Environ |
getEnviron()
Returns the environment object, which comes from the simulator and is shared among all the processing modules of a single simulation run. |
java.lang.Object[] |
getEnvParams()
Returns an empty array. |
java.lang.String |
getId()
A (unique) ID. |
java.lang.String |
getName()
Returns this instance's unqualified class name. |
SimParams |
opt()
Returns the global simulation parameters. |
void |
run(SimEvents evtype,
ConnectionInfo<V,E> rq)
Empty implementation. |
void |
setup(SimCore<V,E> sim)
Saves the parameter sim, which can later be obtained by
calling the sim() method. |
void |
shutdown()
Empty implementation. |
SimCore<V,E> |
sim()
Returns the simulator core object. |
SimStatsCollector |
stats()
Returns the statistics collector object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PmBase()
| Method Detail |
|---|
public void setup(SimCore<V,E> sim)
sim, which can later be obtained by
calling the sim() method. It also calls
adaptTypes if the environment object is non-null (which should
normally be).
setup in interface ProcessingModule<V,E>public java.lang.String getId()
ProcessingModule
getId in interface ProcessingModule<V,E>public java.lang.String getName()
getName in interface WithEnvParams
public void run(SimEvents evtype,
ConnectionInfo<V,E> rq)
run in interface ProcessingModule<V,E>public void shutdown()
shutdown in interface ProcessingModule<V,E>public Environ env()
getEnviron().
public java.lang.Object[] getEnvParams()
getEnvParams in interface WithEnvParamspublic Environ getEnviron()
getEnviron in interface WithEnvParamspublic SimCore<V,E> sim()
sim in interface ProcessingModule<V,E>public SimGlobals<V,E> ctx()
public SimParams opt()
public SimStatsCollector stats()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||