All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class simula.random.IntegerValue

java.lang.Object
   |
   +----simula.random.Value
           |
           +----simula.random.IntegerValue

public class IntegerValue
extends Value
Implementation of the class Value that encapsulate real values.

See Also:
Value

Method Index

 o asInteger()
Returns the encapsulated integer number.
 o asReal()
Returns the encapsulated integer value converted to a floating point number.

Methods

 o asInteger
 public int asInteger() throws TypeDrawnException
Returns the encapsulated integer number.

Returns:
the encapsulated integer number.
Throws: TypeDrawnException
Fired whenever meaningless
Overrides:
asInteger in class Value
 o asReal
 public double asReal() throws TypeDrawnException
Returns the encapsulated integer value converted to a floating point number.

Returns:
the encapsulated integer value converted to a floating point number.
Throws: TypeDrawnException
Fired whenever meaningless
Overrides:
asReal in class Value

All Packages  Class Hierarchy  This Package  Previous  Next  Index