|
J-Sim v1.2.1-p7 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_ExpOnOff
This class describes an On/Off traffic model. On and off time intervals are exponentially distributed. It defines the following parameters:
| Field Summary | |
double |
aveOffTime
|
double |
aveOnTime
|
double |
burstRate
|
int |
packetSize
|
| Constructor Summary | |
traffic_ExpOnOff()
|
|
traffic_ExpOnOff(int mtu_,
double brate_,
double ontime_,
double offtime_)
|
|
| Method Summary | |
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object. |
double |
getAveOffTime()
|
double |
getAveOnTime()
|
int |
getBurst()
Returns the maximum burstness that can be generated from this model instance (byte). |
double |
getBurstRate()
|
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 |
getPacketSize()
|
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 mtu_,
double brate_,
double ontime_,
double offtime_)
|
void |
setAveOffTime(double offtime_)
|
void |
setAveOnTime(double ontime_)
|
void |
setBurstRate(double brate_)
|
void |
setPacketSize(int size_)
|
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int packetSize
public double burstRate
public double aveOnTime
public double aveOffTime
| Constructor Detail |
public traffic_ExpOnOff()
public traffic_ExpOnOff(int mtu_,
double brate_,
double ontime_,
double offtime_)
| Method Detail |
public void set(int mtu_,
double brate_,
double ontime_,
double offtime_)
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 setPacketSize(int size_)
public int getPacketSize()
public void setBurstRate(double brate_)
public double getBurstRate()
public void setAveOnTime(double ontime_)
public double getAveOnTime()
public void setAveOffTime(double offtime_)
public double getAveOffTime()
public int getMTU()
TrafficModel
getMTU in class TrafficModel
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||