bcds.phison.multfailures
Class PmSIDTraceToDOT<V extends GraphIONode,E>

java.lang.Object
  extended by bcds.phison.sim.PmBase<V,E>
      extended by bcds.phison.multfailures.PmSIDTraceToDOT<V,E>
All Implemented Interfaces:
ProcessingModule<V,E>, WithEnvParams

public class PmSIDTraceToDOT<V extends GraphIONode,E>
extends PmBase<V,E>

Generates .dot files to visually present the states of the nodes with respect to the epidemic infection. This processing module requires PmEpidemicSID to be loaded.


Constructor Summary
PmSIDTraceToDOT()
           
 
Method Summary
 java.lang.Object[] getEnvParams()
          Returns an empty array.
 void setup(SimCore<V,E> sim)
          Saves the parameter sim, which can later be obtained by calling the sim() method.
 void shutdown()
          Empty implementation.
 
Methods inherited from class bcds.phison.sim.PmBase
ctx, env, getEnviron, getId, getName, opt, run, sim, stats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmSIDTraceToDOT

public PmSIDTraceToDOT()
Method Detail

setup

public void setup(SimCore<V,E> sim)
Description copied from class: PmBase
Saves the parameter 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).

Specified by:
setup in interface ProcessingModule<V extends GraphIONode,E>
Overrides:
setup in class PmBase<V extends GraphIONode,E>

shutdown

public void shutdown()
Description copied from class: PmBase
Empty implementation.

Specified by:
shutdown in interface ProcessingModule<V extends GraphIONode,E>
Overrides:
shutdown in class PmBase<V extends GraphIONode,E>

getEnvParams

public java.lang.Object[] getEnvParams()
Description copied from class: PmBase
Returns an empty array. This is the default implementation, suitable for modules that do not need additional environment parameters.

Specified by:
getEnvParams in interface WithEnvParams
Overrides:
getEnvParams in class PmBase<V extends GraphIONode,E>