bcds.phison.sim
Class PmTracePathLength<V,E>

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

public class PmTracePathLength<V,E>
extends PmBase<V,E>
implements ProcessingModule<V,E>

Prints: - The frequency of path lengths (of working path, and of backup paths, if available). - The frequency table of the reason for connection rejections (blockings). - A frequency table of the observed working path lengths, together with the length of the shortest possible (based on min hop). If show_shortest_paths is true (default=false), the shortest path between each node pair is also printed.


Nested Class Summary
 class PmTracePathLength.PathBetweenPairs
          For every pair of nodes, keeps: a) the shortest path measured in hop b) the frequency of the length of paths effectively found during routing.
 
Constructor Summary
PmTracePathLength()
           
 
Method Summary
 java.lang.Object[] getEnvParams()
          Returns an empty array.
 void run(SimEvents evtype, ConnectionInfo<V,E> rq)
          Empty implementation.
 void shutdown()
          Empty implementation.
 
Methods inherited from class bcds.phison.sim.PmBase
ctx, env, getEnviron, getId, getName, opt, setup, sim, stats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bcds.phison.sim.ProcessingModule
getId, setup, sim
 
Methods inherited from interface bcds.phison.WithEnvParams
getEnviron, getName
 

Constructor Detail

PmTracePathLength

public PmTracePathLength()
Method Detail

run

public void run(SimEvents evtype,
                ConnectionInfo<V,E> rq)
Description copied from class: PmBase
Empty implementation.

Specified by:
run in interface ProcessingModule<V,E>
Overrides:
run in class PmBase<V,E>

shutdown

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

Specified by:
shutdown in interface ProcessingModule<V,E>
Overrides:
shutdown in class PmBase<V,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,E>