Brunet.Simulator.Transport.SimulationEdgeListener.GetEdgeListenerList C# (CSharp) Method

GetEdgeListenerList() static protected method

Retrieve a given EL Dictionary for the TA Type. This could leak, though that would take the creation of many different EL types and in normal usage there will only be 1 or 2 types.
static protected GetEdgeListenerList ( TransportAddress type ) : SimulationEdgeListener>.Dictionary
type Brunet.Transport.TransportAddress
return SimulationEdgeListener>.Dictionary
    static protected Dictionary<int, SimulationEdgeListener> GetEdgeListenerList(TransportAddress.TAType type)
    {
      if(!_el_map.ContainsKey(type)) {
        _el_map[type] = new Dictionary<int, SimulationEdgeListener>();
      }
      return _el_map[type];
    }