DRCL J-Sim API

drcl.util.random
Class RandomNumberGenerator

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.util.random.RandomNumberGenerator
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable
Direct Known Subclasses:
Constant, ExponentialDistribution, GaussianDistribution, LognormalDistribution, LognormalParetoDistribution, ParetoDistribution, TruncatedLognormalDistribution, TruncatedParetoDistribution, UniformDistribution

public abstract class RandomNumberGenerator
extends DrclObj

See Also:
Serialized Form

Constructor Summary
RandomNumberGenerator()
           
RandomNumberGenerator(long seed_)
           
 
Method Summary
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 double getMean()
           
abstract  java.lang.String getName()
           
 long getSeed()
           
 double getStd()
           
 java.lang.String info()
           
 java.lang.String info(java.lang.String prefix_)
           
abstract  double nextDouble()
           
abstract  int nextInt()
           
abstract  long nextLong()
           
 java.lang.String oneline()
           
 void reset()
          Resets the generator .
 void setSeed(long seed_)
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomNumberGenerator

public RandomNumberGenerator()

RandomNumberGenerator

public RandomNumberGenerator(long seed_)
Method Detail

getName

public abstract java.lang.String getName()

nextDouble

public abstract double nextDouble()

nextInt

public abstract int nextInt()

nextLong

public abstract long nextLong()

reset

public void reset()
Resets the generator .


duplicate

public void duplicate(java.lang.Object source_)
Description copied from class: DrclObj
opies the content of the source_ object to this object. he subclass must implement this method to realize DrclObj.clone().

Specified by:
duplicate in interface ObjectDuplicable
Overrides:
duplicate in class DrclObj

setSeed

public void setSeed(long seed_)

getSeed

public long getSeed()

info

public java.lang.String info()

getMean

public double getMean()

getStd

public double getStd()

info

public java.lang.String info(java.lang.String prefix_)

toString

public java.lang.String toString()
Overrides:
toString in class DrclObj

oneline

public java.lang.String oneline()

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~