bcds.phison.gentraf
Class TrafficGenerator
java.lang.Object
bcds.phison.gentraf.TrafficGenerator
public class TrafficGenerator
- extends java.lang.Object
This class is a transcription of TrafficGenerator.cpp, which is included in
the "convert" project of János Tapolcai .
I have simplified it, just to adapt it to my needs. The main changes are:
1) When a TrafficGenerator object is created, I assume that some of
the attributes have default values.
2) I have (for now) ignored the Pareto distribution.
Manzano, Marc
2009-04-27 Added support for non-square traffic matrices. This is
necessary for allowing ingress/egress pairs.
2010-09-29 Replaced java.util.PriorityQueue wity tools.PQWithNumericKey.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrafficGenerator
public TrafficGenerator(int[][] m,
RndGen gen_cap,
RndGen gen_holding_time)
setDemandTypeGen
public void setDemandTypeGen(RndGen gen_demtype)
setMinCap
public void setMinCap(int cap)
- The minimum holding time, which is added to each capacity
generated. The default value es 1.
getMinCap
public int getMinCap()
setMinHoldingTime
public void setMinHoldingTime(int ht)
- The minimum holding time, which is added to each holding time
generated. The default value es 1.
getMinHoldingTime
public int getMinHoldingTime()
getNextDemand
public bcds.phison.gentraf.TrafficGenerator.NextDem getNextDemand()
setPoissonLambda
public void setPoissonLambda(double a)
setPoissonAlpha
public void setPoissonAlpha(double a)
setPoissonBeta
public void setPoissonBeta(double a)