drcl.net.traffic
Class tsRTSmooth
java.lang.Object
drcl.DrclObj
drcl.net.traffic.TrafficShaper
drcl.net.traffic.tsRTSmooth
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
- public class tsRTSmooth
- extends TrafficShaper
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tsRTSmooth
public tsRTSmooth()
tsRTSmooth
public tsRTSmooth(traffic_RTSmooth traffic_)
reset
public void reset()
- Overrides:
reset in class TrafficShaper
info
public java.lang.String info(java.lang.String prefix_)
- Description copied from class:
TrafficShaper
- Prints out the content of this traffic shaper instance.
This class prints out the associated traffic model and the buffer.
A subclass only needs to call
super.info(prefix_) and
then supply the content of the parameters defined in the subclass.
- Overrides:
info in class TrafficShaper
- Parameters:
prefix_ - prefix_ that should be prepended at each line.
getTrafficModel
public TrafficModel getTrafficModel()
- Description copied from class:
TrafficShaper
- Returns the associated traffic model.
- Specified by:
getTrafficModel in class TrafficShaper
setTrafficModel
public void setTrafficModel(TrafficModel traffic_)
- Description copied from class:
TrafficShaper
- Sets the associated traffic model.
- Specified by:
setTrafficModel in class TrafficShaper
adjust
protected double adjust(double now_,
int size_)
- Description copied from class:
TrafficShaper
- Returns the time adjustment (relative to the current time
now_)
for outputing the packet.
This is the main method a subclass must override to regulate the incoming packets.
The current time passed to this method is maintained relatively to the time
when this component starts.
- Specified by:
adjust in class TrafficShaper
- Parameters:
now_ - current time, relative to the start time of the shaper.size_ - the packet size.
setFrameLength
public void setFrameLength(double time_)
getFrameLength
public double getFrameLength()
setNBitsPerFrame
public void setNBitsPerFrame(int nbits_)
getNBitsPerFrame
public int getNBitsPerFrame()
setOrigin
public void setOrigin(double time_)
getOrigin
public double getOrigin()
getMTU
public int getMTU()
setMTU
public void setMTU(int mtu_)
set
public void set(int nbits_,
double flen_,
double forigin_,
int mtu_)
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~