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
|
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 |
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
startTime
public double startTime
fp
public java.util.Vector fp
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_)
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
finalize
protected void finalize()
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()
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~