be.ac.ulg.montefiore.run.totem.topgen.traffic.model
Class SyntheticTrafficModel

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.topgen.traffic.model.SyntheticTrafficModel
All Implemented Interfaces:
TrafficModel

public class SyntheticTrafficModel
extends java.lang.Object
implements TrafficModel

This class generates traffic using the probability distributions.

Creation date: 2004

Author:
Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

Constructor Summary
SyntheticTrafficModel(Distribution distribution)
          Initialises a newly created SyntheticTrafficModel object.
 
Method Summary
 double generate(Node origin, Node destination)
          Generates traffic between the two nodes according to the given distribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntheticTrafficModel

public SyntheticTrafficModel(Distribution distribution)
Initialises a newly created SyntheticTrafficModel object.

Parameters:
distribution - The distribution to be used.
Method Detail

generate

public double generate(Node origin,
                       Node destination)
Generates traffic between the two nodes according to the given distribution. The parameters are not taken into account.

Specified by:
generate in interface TrafficModel
Returns:
The amount of traffic between the two nodes.


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