DRCL JavaSim API

drcl.util.random
Class Constant

java.lang.Object
  |
  +--drcl.DrclObj
        |
        +--drcl.util.random.RandomNumberGenerator
              |
              +--drcl.util.random.Constant
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable

public class Constant
extends RandomNumberGenerator

See Also:
Serialized Form

Fields inherited from class drcl.util.random.RandomNumberGenerator
r, seed
 
Constructor Summary
Constant()
           
Constant(double value_)
           
Constant(long seed_)
           
 
Method Summary
 java.lang.String getName()
           
 double getValue()
           
 java.lang.String info(java.lang.String prefix_)
           
 double nextDouble()
           
 int nextInt()
           
 long nextLong()
           
 java.lang.String oneline()
           
 void setValue(double v_)
           
 
Methods inherited from class drcl.util.random.RandomNumberGenerator
duplicate, getSeed, info, reset, setSeed
 
Methods inherited from class drcl.DrclObj
clone, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Constant

public Constant(double value_)

Constant

public Constant()

Constant

public Constant(long seed_)
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class RandomNumberGenerator

nextDouble

public double nextDouble()
Overrides:
nextDouble in class RandomNumberGenerator

nextInt

public int nextInt()
Overrides:
nextInt in class RandomNumberGenerator

nextLong

public long nextLong()
Overrides:
nextLong in class RandomNumberGenerator

setValue

public void setValue(double v_)

getValue

public double getValue()

info

public java.lang.String info(java.lang.String prefix_)
Overrides:
info in class RandomNumberGenerator

oneline

public java.lang.String oneline()
Overrides:
oneline in class RandomNumberGenerator

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~