|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.net.traffic.TrafficModel
drcl.net.traffic.traffic_RTSmooth
This class describes the (r,T)-smooth traffic model. It defines the following parameters:
| Field Summary | |
double |
frameLength
|
int |
mtu
|
int |
nbits
|
double |
origin
|
| Constructor Summary | |
traffic_RTSmooth()
|
|
traffic_RTSmooth(int nbits_,
double flen_,
double forigin_,
int mtu_)
|
|
| 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 |
set(int nbits_,
double flen_,
double forigin_,
int mtu_)
|
void |
setFrameLength(double time_)
|
void |
setMTU(int mtu_)
|
void |
setNBitsPerFrame(int nbits_)
|
void |
setOrigin(double time_)
|
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double frameLength
public int nbits
public double origin
public int mtu
| Constructor Detail |
public traffic_RTSmooth()
public traffic_RTSmooth(int nbits_,
double flen_,
double forigin_,
int mtu_)
| Method Detail |
public void set(int nbits_,
double flen_,
double forigin_,
int mtu_)
public double getPeriod()
TrafficPeriodic
getPeriod in interface TrafficPeriodicpublic double getLoad()
TrafficModel
getLoad in class TrafficModelpublic int getBurst()
TrafficModel
getBurst in class TrafficModelpublic TrafficModel merge(TrafficModel that_)
TrafficModel
merge in class TrafficModelpublic void duplicate(java.lang.Object source_)
DrclObjsource_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
duplicate in interface ObjectDuplicableduplicate in class DrclObjpublic java.lang.String oneline()
TrafficModel
oneline in class TrafficModelpublic void setFrameLength(double time_)
public double getFrameLength()
public void setNBitsPerFrame(int nbits_)
public int getNBitsPerFrame()
public void setOrigin(double time_)
public double getOrigin()
public int getMTU()
TrafficModel
getMTU in class TrafficModelpublic void setMTU(int mtu_)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||