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

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

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

Prints: - A frequency table of the usage of each link. Those never used are omitted by default, but .show_unused_links can be set to change that. - The average and peak network utilization (total capacity utilization), measured after each connection creation, of show_network_utilization is set (default=false). NOTE that this may be slow for large networks.


Constructor Summary
PmTraceLinkUsage()
           
 
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

PmTraceLinkUsage

public PmTraceLinkUsage()
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>