DRCL JavaSim API

drcl.net.traffic
Class traffic_OnOff

java.lang.Object
  |
  +--drcl.DrclObj
        |
        +--drcl.net.traffic.TrafficModel
              |
              +--drcl.net.traffic.traffic_OnOff
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable, TrafficPeriodic

public class traffic_OnOff
extends TrafficModel
implements TrafficPeriodic

This class describes an On/Off traffic model. On and off time intervals are exponentially distributed. It defines the following parameters:

On Time
Fixed length of on time (burst) intervals (second).
Off Time
Fixed length of off time (idle) intervals (second).
Average Sending Rate
Sending rate over the period of the on time plus off time (bps).
Packet Size
Size of packets (byte).

See Also:
Serialized Form

Field Summary
 double OffTime
           
 double OnTime
           
 int packetSize
           
 int rate
           
 
Constructor Summary
traffic_OnOff()
           
traffic_OnOff(int mtu_, int rate_, double ontime_, double offtime_)
           
 
Method Summary
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 int getAvgRate()
           
 int getBurst()
          Returns the maximum burstness that can be generated from this model instance (byte).
 double getLoad()
          Returns the load of this traffic model instance (bps).
 int getMTU()
          Returns the maximum transmission unit (MTU) of this model instance (byte).
 double getOffTime()
           
 double getOnTime()
           
 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 setAvgRate(int rate_)
           
 void setOffTime(double offtime_)
           
 void setOnTime(double ontime_)
           
 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

packetSize

public int packetSize

rate

public int rate

OnTime

public double OnTime

OffTime

public double OffTime
Constructor Detail

traffic_OnOff

public traffic_OnOff()

traffic_OnOff

public traffic_OnOff(int mtu_,
                     int rate_,
                     double ontime_,
                     double offtime_)
Method Detail

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

setPacketSize

public void setPacketSize(int size_)

getPacketSize

public int getPacketSize()

setAvgRate

public void setAvgRate(int rate_)

getAvgRate

public int getAvgRate()

setOnTime

public void setOnTime(double ontime_)

getOnTime

public double getOnTime()

setOffTime

public void setOffTime(double offtime_)

getOffTime

public double getOffTime()

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

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~