drcl.net.traffic
Class TrafficAssistant
java.lang.Object
|
+--drcl.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:
- The name of a traffic model class starts with "traffic_". For example, traffic_TokenBucket.
- The name of a TrafficShaper class or a TrafficSourceComponent class starts with "ts".
For example, tsTokenBucket.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrafficAssistant
public TrafficAssistant()
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.
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~