drcl.net.traffic
Class tsPeriodic
java.lang.Object
drcl.DrclObj
drcl.net.traffic.TrafficShaper
drcl.net.traffic.tsPeriodic
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable
- public class tsPeriodic
- extends TrafficShaper
This class implements a traffic shaper that conforms to the periodic
traffic model.
- See Also:
traffic_Periodic,
Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tsPeriodic
public tsPeriodic()
tsPeriodic
public tsPeriodic(traffic_Periodic 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
setMaxPacketSize
public void setMaxPacketSize(int size_)
getMaxPacketSize
public int getMaxPacketSize()
setC
public void setC(int c_)
getC
public int getC()
setPeriod
public void setPeriod(double p_)
getPeriod
public double getPeriod()
set
public void set(int c_,
double p_,
int mtu_)
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~