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

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

public class ConstantTrafficModel
extends java.lang.Object
implements TrafficModel

This class generates a constant traffic for all origin-destination pairs

Creation date: 6 sept. 2006

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Constructor Summary
ConstantTrafficModel(float value)
           
 
Method Summary
 double generate(Node origin, Node destination)
          Generates traffic between origin and destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantTrafficModel

public ConstantTrafficModel(float value)
Method Detail

generate

public double generate(Node origin,
                       Node destination)
Generates traffic between origin and destination.

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.