DRCL JavaSim API

drcl.net.traffic
Class traffic_FixedPoints

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

public class traffic_FixedPoints
extends traffic_PeakRate

This class allows one to specify packets to be generated at fixed time points. The sizes of packets are in the uniform distribution as specified in the peak rate model. In addition to the parameters defined in the peak rate model, this class also defines:

Start Time
Time to start generating packets according to the peak-rate model.
Fixed time points
The time points to generate packets.

See Also:
Serialized Form

Field Summary
 java.util.Vector fp
           
 double startTime
           
 
Fields inherited from class drcl.net.traffic.traffic_PeakRate
maxIntArrivalTime, maxPktSize, minIntArrivalTime, minPktSize
 
Constructor Summary
traffic_FixedPoints()
           
traffic_FixedPoints(int min_, int max_, double miniat_, double maxiat_)
           
traffic_FixedPoints(int min_, int max_, double miniat_, double maxiat_, double startTime_, double[] timepoints_)
           
 
Method Summary
 void addTimePoint(double tp_)
           
 void addTimePoints(double[] atp_)
           
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
protected  void finalize()
           
 double getStartTime()
           
 double[] getTimePoints()
           
 java.lang.String oneline()
          Prints and returns the parameters of this model instance in one line of String.
 void setStartTime(double time_)
           
 void setTimePoints(double[] atp_)
           
 
Methods inherited from class drcl.net.traffic.traffic_PeakRate
getBurst, getLoad, getMaxIntArrivalTime, getMaxPktSize, getMinIntArrivalTime, getMinPktSize, getMTU, getPeriod, merge, setMaxIntArrivalTime, setMaxPktSize, setMinIntArrivalTime, setMinPktSize
 
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

startTime

public double startTime

fp

public java.util.Vector fp
Constructor Detail

traffic_FixedPoints

public traffic_FixedPoints()

traffic_FixedPoints

public traffic_FixedPoints(int min_,
                           int max_,
                           double miniat_,
                           double maxiat_)

traffic_FixedPoints

public traffic_FixedPoints(int min_,
                           int max_,
                           double miniat_,
                           double maxiat_,
                           double startTime_,
                           double[] timepoints_)
Method Detail

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 traffic_PeakRate

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 traffic_PeakRate

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

setStartTime

public void setStartTime(double time_)

getStartTime

public double getStartTime()

addTimePoint

public void addTimePoint(double tp_)

addTimePoints

public void addTimePoints(double[] atp_)

setTimePoints

public void setTimePoints(double[] atp_)

getTimePoints

public double[] getTimePoints()

DRCL JavaSim API

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