J-Sim v1.2.1-p7 API

drcl.util.random
Class RandomNumberGenerator

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.util.random.RandomNumberGenerator
All Implemented Interfaces:
java.lang.Cloneable, 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

Field Summary
protected  java.util.Random r
           
protected  long seed
           
 
Constructor Summary
RandomNumberGenerator()
           
RandomNumberGenerator(long seed_)
           
 
Method Summary
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
abstract  java.lang.String getName()
           
 long getSeed()
           
 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

r

protected java.util.Random r

seed

protected long seed
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()

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()

J-Sim v1.2.1-p7 API

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