be.ac.ulg.montefiore.run.totem.topgen.traffic
Class RandomTrafficGenerator

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.topgen.traffic.AbstractTrafficGenerator
      extended by be.ac.ulg.montefiore.run.totem.topgen.traffic.AbstractDistributionTrafficGenerator
          extended by be.ac.ulg.montefiore.run.totem.topgen.traffic.RandomTrafficGenerator
All Implemented Interfaces:
TrafficGeneratorInterface

public class RandomTrafficGenerator
extends AbstractDistributionTrafficGenerator

Implemention of a traffic generator. It generates traffic matrix elements randomly according to a Distribution.

Creation date: 8 janv. 07

Author:
Georges Nimubona (nimubonageorges@hotmail.com)

Field Summary
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.topgen.traffic.AbstractDistributionTrafficGenerator
dis
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.topgen.traffic.AbstractTrafficGenerator
domain, nodes, parameters
 
Constructor Summary
RandomTrafficGenerator()
          Initializes a newly created RandomTrafficGenerator object.
RandomTrafficGenerator(java.util.HashMap<java.lang.String,java.lang.String> parameters)
           
 
Method Summary
protected  TrafficMatrix buildTM()
          Build a TrafficMatrix.
protected  void initialize_generation()
          Initialize the generation of traffic matrices.
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.topgen.traffic.AbstractDistributionTrafficGenerator
getAvailableParameters
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.topgen.traffic.AbstractTrafficGenerator
findParam, generate, getParam, setParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomTrafficGenerator

public RandomTrafficGenerator()
Initializes a newly created RandomTrafficGenerator object.


RandomTrafficGenerator

public RandomTrafficGenerator(java.util.HashMap<java.lang.String,java.lang.String> parameters)
                       throws InvalidParameterException
Throws:
InvalidParameterException
Method Detail

buildTM

protected TrafficMatrix buildTM()
                         throws TMBuildingException
Description copied from class: AbstractTrafficGenerator
Build a TrafficMatrix.

Specified by:
buildTM in class AbstractTrafficGenerator
Returns:
Throws:
TMBuildingException

initialize_generation

protected void initialize_generation()
                              throws InvalidParameterException
Description copied from class: AbstractTrafficGenerator
Initialize the generation of traffic matrices. Should fetch class specific parameters and prepare the data structures.

Overrides:
initialize_generation in class AbstractDistributionTrafficGenerator
Throws:
InvalidParameterException


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.