DRCL JavaSim API

drcl.net.traffic
Class traffic_PeakRate

java.lang.Object
  |
  +--drcl.DrclObj
        |
        +--drcl.net.traffic.TrafficModel
              |
              +--drcl.net.traffic.traffic_PeakRate
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable, TrafficPeriodic
Direct Known Subclasses:
traffic_FixedPoints

public class traffic_PeakRate
extends TrafficModel
implements TrafficPeriodic

This class describes the peak rate traffic model. It defines the following parameters:

Maximum Inte-rarrival Time
Maximum packet inter-arrival time (second).
Minimum Inte-rarrival Time
Minimum packet inter-arrival time (second).
Minimum Transmit Unit
The minimum size of a packet (byte).
Maximum Transmit Unit (MTU)
The maximum size of a packet (byte).

See Also:
Serialized Form

Field Summary
 double maxIntArrivalTime
           
 int maxPktSize
           
 double minIntArrivalTime
           
 int minPktSize
           
 
Constructor Summary
traffic_PeakRate()
           
traffic_PeakRate(int min_, int max_, double miniat_, double maxiat_)
           
 
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 getLoad()
          Returns the load of this traffic model instance (bps).
 double getMaxIntArrivalTime()
           
 int getMaxPktSize()
           
 double getMinIntArrivalTime()
           
 int getMinPktSize()
           
 int getMTU()
          Returns the maximum transmission unit (MTU) of this model instance (byte).
 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 setMaxIntArrivalTime(double time_)
           
 void setMaxPktSize(int size_)
           
 void setMinIntArrivalTime(double time_)
           
 void setMinPktSize(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

maxPktSize

public int maxPktSize

minPktSize

public int minPktSize

maxIntArrivalTime

public double maxIntArrivalTime

minIntArrivalTime

public double minIntArrivalTime
Constructor Detail

traffic_PeakRate

public traffic_PeakRate()

traffic_PeakRate

public traffic_PeakRate(int min_,
                        int max_,
                        double miniat_,
                        double maxiat_)
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

setMaxPktSize

public void setMaxPktSize(int size_)

getMaxPktSize

public int getMaxPktSize()

setMinPktSize

public void setMinPktSize(int size_)

getMinPktSize

public int getMinPktSize()

setMaxIntArrivalTime

public void setMaxIntArrivalTime(double time_)

getMaxIntArrivalTime

public double getMaxIntArrivalTime()

setMinIntArrivalTime

public void setMinIntArrivalTime(double time_)

getMinIntArrivalTime

public double getMinIntArrivalTime()

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 ~