drcl.net.traffic
Class traffic_RTSmooth
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.net.traffic.TrafficModel
|
+--drcl.net.traffic.traffic_RTSmooth
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable, TrafficPeriodic
- public class traffic_RTSmooth
- extends TrafficModel
- implements TrafficPeriodic
This class describes the (r,T)-smooth traffic model.
It defines the following parameters:
- Frame Length
- Length of frames (second). The time axis is sliced into frames.
- Time Origin
- The start time of the first frame (second) .
- Maximum Allowance Per Frame
- Maximum number of bits that can be served in a frame.
- Maximum Transmit Unit (MTU)
- The maximum size of a packet (byte).
- See Also:
- Serialized Form
|
Method Summary |
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object. |
int |
getBurst()
Returns the maximum burstness that can be generated from this model instance (byte). |
double |
getFrameLength()
|
double |
getLoad()
Returns the load of this traffic model instance (bps). |
int |
getMTU()
Returns the maximum transmission unit (MTU) of this model instance (byte). |
int |
getNBitsPerFrame()
|
double |
getOrigin()
|
double |
getPeriod()
Returns the period in second. |
TrafficModel |
merge(TrafficModel that_)
Merges this instance with the specified one and returns this instance. |
java.lang.String |
oneline()
Prints and returns the parameters of this model instance in one line of String. |
void |
setFrameLength(double time_)
|
void |
setMTU(int mtu_)
|
void |
setNBitsPerFrame(int nbits_)
|
void |
setOrigin(double time_)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
frameLength
public double frameLength
nbits
public int nbits
origin
public double origin
mtu
public int mtu
traffic_RTSmooth
public traffic_RTSmooth()
traffic_RTSmooth
public traffic_RTSmooth(int nbits_,
double flen_,
double forigin_,
int mtu_)
getPeriod
public double getPeriod()
- Description copied from interface:
TrafficPeriodic
- Returns the period in second.
- Specified by:
getPeriod in interface TrafficPeriodic
getLoad
public double getLoad()
- Description copied from class:
TrafficModel
- Returns the load of this traffic model instance (bps).
It provides a general sense of how much
traffic there is in this model instance.
- Overrides:
getLoad in class TrafficModel
getBurst
public int getBurst()
- Description copied from class:
TrafficModel
- Returns the maximum burstness that can be generated from this model instance (byte).
- Overrides:
getBurst in class TrafficModel
merge
public TrafficModel merge(TrafficModel that_)
- Description copied from class:
TrafficModel
- Merges this instance with the specified one and returns this instance.
- Overrides:
merge in class TrafficModel
duplicate
public void duplicate(java.lang.Object source_)
- Description copied from class:
DrclObj
- opies the content of the
source_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
- Overrides:
duplicate in class DrclObj
oneline
public java.lang.String oneline()
- Description copied from class:
TrafficModel
- Prints and returns the parameters of this model instance in one line of String.
- Overrides:
oneline in class TrafficModel
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()
- Description copied from class:
TrafficModel
- Returns the maximum transmission unit (MTU) of this model instance (byte).
- Overrides:
getMTU in class TrafficModel
setMTU
public void setMTU(int mtu_)
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~