WDMSim

wdmsim
Class TrafficGenerator

java.lang.Object
  extended by wdmsim.TrafficGenerator

public class TrafficGenerator
extends java.lang.Object

Generates the network's traffic based on the information passed through the command line arguments and the XML simulation file.

Author:
andred

Constructor Summary
TrafficGenerator(org.w3c.dom.Element xml, double forcedLoad)
          Creates a new TrafficGenerator object.
 
Method Summary
 void generateTraffic(PhysicalTopology pt, EventScheduler events, int seed)
          Generates the network's traffic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrafficGenerator

public TrafficGenerator(org.w3c.dom.Element xml,
                        double forcedLoad)
Creates a new TrafficGenerator object. Extracts the traffic information from the XML file and takes the chosen load and seed from the command line arguments.

Parameters:
xml - file that contains all information about the simulation
forcedLoad - range of offered loads for several simulations
Method Detail

generateTraffic

public void generateTraffic(PhysicalTopology pt,
                            EventScheduler events,
                            int seed)
Generates the network's traffic.

Parameters:
events - EventScheduler object that will contain the simulation events
pt - the network's Physical Topology
seed - a number in the interval [1,25] that defines up to 25 different random simulations

WDMSim