bcds.phison.gentraf
Class TrafficGenerator

java.lang.Object
  extended by 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.


Constructor Summary
TrafficGenerator(int[][] m, RndGen gen_cap, RndGen gen_holding_time)
           
 
Method Summary
 int getMinCap()
           
 int getMinHoldingTime()
           
 bcds.phison.gentraf.TrafficGenerator.NextDem getNextDemand()
           
 void setDemandTypeGen(RndGen gen_demtype)
           
 void setMinCap(int cap)
          The minimum holding time, which is added to each capacity generated.
 void setMinHoldingTime(int ht)
          The minimum holding time, which is added to each holding time generated.
 void setPoissonAlpha(double a)
           
 void setPoissonBeta(double a)
           
 void setPoissonLambda(double a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrafficGenerator

public TrafficGenerator(int[][] m,
                        RndGen gen_cap,
                        RndGen gen_holding_time)
Method Detail

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)