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
-
asInteger()
- Returns the encapsulated integer number.
-
asReal()
- Returns the encapsulated integer value converted to a floating point number.
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
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