J-Sim v1.2.1-p7 API

drcl.net.traffic
Class traffic_ParetoOnOff

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.net.traffic.TrafficModel
          extended bydrcl.net.traffic.traffic_ParetoOnOff
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable, TrafficPeriodic

public class traffic_ParetoOnOff
extends TrafficModel
implements TrafficPeriodic

This class describes the Pareto On/Off traffic model. On and off times are pareto distributed. It defines the following parameters:

On Time
Average length of on time (burst) intervals (second).
Off Time
Average length of off time (idle) intervals (second).
Burst Rate
Sending rate during on time (bps).
Packet Size
Size of packets (byte).
Shape
Pareto shape parameter.

See Also:
Serialized Form

Field Summary
 double aveOffTime
           
 double aveOnTime
           
 double burstRate
           
 int packetSize
           
 double shapeParaOff
           
 double shapeParaOn
           
 
Constructor Summary
traffic_ParetoOnOff()
           
traffic_ParetoOnOff(int mtu_, double brate_, double ontime_, double offtime_, double shape_)
           
traffic_ParetoOnOff(int mtu_, double brate_, double ontime_, double offtime_, double shapeOn_, double shapeOff_)
           
 
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.
 double getShapeParaOff()
           
 double getShapeParaOn()
           
 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_, double shapeOn_, double shapeOff_)
           
 void setAveOffTime(double offtime_)
           
 void setAveOnTime(double ontime_)
           
 void setBurstRate(double brate_)
           
 void setPacketSize(int size_)
           
 void setShapeParaOff(double shape_)
           
 void setShapeParaOn(double shape_)
           
 
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

burstRate

public double burstRate

aveOnTime

public double aveOnTime

aveOffTime

public double aveOffTime

shapeParaOn

public double shapeParaOn

shapeParaOff

public double shapeParaOff
Constructor Detail

traffic_ParetoOnOff

public traffic_ParetoOnOff()

traffic_ParetoOnOff

public traffic_ParetoOnOff(int mtu_,
                           double brate_,
                           double ontime_,
                           double offtime_,
                           double shape_)

traffic_ParetoOnOff

public traffic_ParetoOnOff(int mtu_,
                           double brate_,
                           double ontime_,
                           double offtime_,
                           double shapeOn_,
                           double shapeOff_)
Method Detail

set

public void set(int mtu_,
                double brate_,
                double ontime_,
                double offtime_,
                double shapeOn_,
                double shapeOff_)

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.

Specified by:
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).

Specified by:
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.

Specified by:
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().

Specified by:
duplicate in interface ObjectDuplicable
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.

Specified by:
oneline in class TrafficModel

setPacketSize

public void setPacketSize(int size_)

getPacketSize

public int getPacketSize()

setBurstRate

public void setBurstRate(double brate_)

getBurstRate

public double getBurstRate()

setAveOnTime

public void setAveOnTime(double ontime_)

getAveOnTime

public double getAveOnTime()

setAveOffTime

public void setAveOffTime(double offtime_)

getAveOffTime

public double getAveOffTime()

setShapeParaOn

public void setShapeParaOn(double shape_)

getShapeParaOn

public double getShapeParaOn()

setShapeParaOff

public void setShapeParaOff(double shape_)

getShapeParaOff

public double getShapeParaOff()

getMTU

public int getMTU()
Description copied from class: TrafficModel
Returns the maximum transmission unit (MTU) of this model instance (byte).

Specified by:
getMTU in class TrafficModel

J-Sim v1.2.1-p7 API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~