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

java.lang.Object
  extended by bcds.phison.sim.SimGlobals<V,E>

public class SimGlobals<V,E>
extends java.lang.Object

Provides "contextual" data to users of the core simulator, for example modules.


Field Summary
 NetAvail<V,E> av
          Objet to compute availabilities.
 java.util.Map<E,java.lang.Integer> cap
          Capacity of links in graph g.
 java.util.Map<E,java.lang.Double> dist
          Distance between nodes (link length), or, in more general terms, the cost of each link.
 DemandTypesReader dtypes
          For handling "demand types".
 java.util.Set<V> egress_set
           
 Environ env
          Environment parameters.
 SimGraph<V,E> g
          The graph to which the rest of the fields refer.
 java.util.Map<java.lang.String,V> id_to_node
           
 java.util.Set<V> ingress_set
          Ingress/egress sets.
 java.util.Map<java.lang.String,java.lang.String> node_label_to_id
           
 PmRegistry<V,E> pmreg
          Registry of processing modules.
 java.util.Random rnd_gen
          Random number generator that processing modules can use.
 SimStatsCollector stats
          Statistics collector.
 TED<V,E> ted
          Traffic engineering database.
 java.util.Map<SimplePair<V,V>,java.lang.Double> trf_mat
           
 ZoneMap<V,E> za
          Zonemap (areas).
 
Constructor Summary
SimGlobals()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g

public SimGraph<V,E> g
The graph to which the rest of the fields refer.


cap

public java.util.Map<E,java.lang.Integer> cap
Capacity of links in graph g.


dist

public java.util.Map<E,java.lang.Double> dist
Distance between nodes (link length), or, in more general terms, the cost of each link.


ted

public TED<V,E> ted
Traffic engineering database. It usually will refer to the field g of this instance, but the capacity and cost (distance) may or may not be shared with this instance.


ingress_set

public java.util.Set<V> ingress_set
Ingress/egress sets. They both can be null.


egress_set

public java.util.Set<V> egress_set

trf_mat

public java.util.Map<SimplePair<V,V>,java.lang.Double> trf_mat

za

public ZoneMap<V,E> za
Zonemap (areas). It can be null.


av

public NetAvail<V,E> av
Objet to compute availabilities. It can be null.


dtypes

public DemandTypesReader dtypes
For handling "demand types". If no demand types differentiation is required, this object will contain a "default" ("*") type.


env

public Environ env
Environment parameters. It is never null, though it may be empty.


pmreg

public PmRegistry<V,E> pmreg
Registry of processing modules.


node_label_to_id

public java.util.Map<java.lang.String,java.lang.String> node_label_to_id

id_to_node

public java.util.Map<java.lang.String,V> id_to_node

rnd_gen

public java.util.Random rnd_gen
Random number generator that processing modules can use. It is never null.


stats

public SimStatsCollector stats
Statistics collector. A single instance is meant to be shared among simulation threads.

Constructor Detail

SimGlobals

public SimGlobals()