DRCL J-Sim API

drcl.net.traffic
Class traffic_FixedPoints

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.net.traffic.TrafficModel
          extended bydrcl.net.traffic.traffic_PeakRate
              extended bydrcl.net.traffic.traffic_FixedPoints
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, 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.
 double getStartTime()
           
 double[] getTimePoints()
           
 java.lang.String oneline()
          Prints and returns the parameters of this model instance in one line of String.
 void set(int min_, int max_, double miniat_, double maxiat_)
           
 void set(int min_, int max_, double miniat_, double maxiat_, double startTime_, double[] timepoints_)
           
 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

set

public void set(int min_,
                int max_,
                double miniat_,
                double maxiat_)
Overrides:
set in class traffic_PeakRate

set

public void set(int min_,
                int max_,
                double miniat_,
                double maxiat_,
                double startTime_,
                double[] timepoints_)

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 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

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 J-Sim API

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