be.ac.ulg.montefiore.run.totem.util.distribution
Class ConstantDistribution

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.util.distribution.ConstantDistribution
All Implemented Interfaces:
Distribution

public class ConstantDistribution
extends java.lang.Object
implements Distribution

This class implements a constant distribution.

Creation date: 1-Jan-2004

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

Constructor Summary
ConstantDistribution(double value)
           
 
Method Summary
 double generate()
          Returns a double value equal to value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantDistribution

public ConstantDistribution(double value)
Method Detail

generate

public double generate()
Returns a double value equal to value.

Specified by:
generate in interface Distribution


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