J-Sim v1.2.1-p7 API

drcl.net.traffic
Class TrafficAssistant

java.lang.Object
  extended bydrcl.net.traffic.TrafficAssistant

public class TrafficAssistant
extends java.lang.Object

TrafficAssistant is a utility class which helps to get the corresponding TrafficShaper or TrafficSourceComponent from a TrafficModel.            

To ease the task, TrafficAssistant expects:

  1. The name of a traffic model class starts with "traffic_". For example, traffic_TokenBucket.
  2. The name of a TrafficShaper class or a TrafficSourceComponent class starts with "ts". For example, tsTokenBucket.


Constructor Summary
TrafficAssistant()
           
 
Method Summary
static TrafficComponent getTrafficComponent(TrafficModel traffic_)
          Returns a TrafficComponent instance for the given traffic model.
static TrafficShaper getTrafficShaper(TrafficModel traffic_)
          Returns a TrafficShaper instance for the given traffic model.
static TrafficSourceComponent getTrafficSource(TrafficModel traffic_, TrafficModel shaperTraffic_)
          Returns a TrafficSourceComponent instance for the given source traffic model and the shaper traffic model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrafficAssistant

public TrafficAssistant()
Method Detail

getTrafficSource

public static TrafficSourceComponent getTrafficSource(TrafficModel traffic_,
                                                      TrafficModel shaperTraffic_)
Returns a TrafficSourceComponent instance for the given source traffic model and the shaper traffic model.


getTrafficComponent

public static TrafficComponent getTrafficComponent(TrafficModel traffic_)
Returns a TrafficComponent instance for the given traffic model. The component returned may be a TrafficSourceComponent or a TrafficShaperComponent, depending on the nature of the traffic model.


getTrafficShaper

public static TrafficShaper getTrafficShaper(TrafficModel traffic_)
Returns a TrafficShaper instance for the given traffic model.


J-Sim v1.2.1-p7 API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~