engine
Class Real
java.lang.Object
|
+--engine.Assignable
|
+--engine.DataHolder
|
+--engine.Real
- class Real
- extends DataHolder
Real type (just like in IEEE 754 )
- See Also:
- Serialized Form
|
Field Summary |
(package private) double |
data
|
| Fields inherited from class engine.Assignable |
data,
initValDefaults,
lookupTables,
lookupTableSupply0,
lookupTableSupply1,
lookupTableTri0,
lookupTableTri1,
lookupTableWand,
lookupTableWire,
lookupTableWor,
typeSupply0,
typeSupply1,
typeTri0,
typeTri1,
typeTrireg,
typeWand,
typeWire,
typeWor,
X,
Z |
| Methods inherited from class java.lang.Object |
,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
data
double data
Real
public Real()
Real
public Real(Real r)
Real
public Real(java.lang.String s)
Real
public Real(long l)
Real
public Real(double d)
clone
public java.lang.Object clone()
- Overrides:
- clone in class java.lang.Object
compute
public java.lang.Object[] compute()
- Does nothing, because a Real cannot be continuously assigned.
- Throws:
- java.lang.Error - because a Real cannot be assigned, so
the parser will catch this and terminate.
- Overrides:
- compute in class Assignable
attrib
public void attrib(Real r)
throws InterpretTimeException
getInt
public BitVector getInt()
- This is simillar to the
the $rtoi system function.
It may be nonstandard (i.e. I guess the
conversion isn't made to the nearest integer value)
getBits
public BitVector getBits()
- Also known as the $realtobits system function.
getLong
public long getLong()
getReal
public Real getReal()
- Returns a copy of this.
getBool
public int getBool()
- Returns 1 if this Real is not 0, and 0 otherwise.
isTrue
public boolean isTrue()
- Returns the truth value of tis Real;
duplicate
public Result duplicate()
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
toString
public java.lang.String toString(int base)
toDecimalString
public java.lang.String toDecimalString()
- Returns a brief representation of this real.
shl
public void shl(Result r)
throws InterpretTimeException
shr
public void shr(Result r)
throws InterpretTimeException
neg
public void neg()
bAndR
public void bAndR()
throws InterpretTimeException
bOrR
public void bOrR()
throws InterpretTimeException
bXOrR
public void bXOrR()
throws InterpretTimeException
bNAndR
public void bNAndR()
throws InterpretTimeException
bNOrR
public void bNOrR()
throws InterpretTimeException
bNXOrR
public void bNXOrR()
throws InterpretTimeException
bNot
public void bNot()
throws InterpretTimeException
lNot
public void lNot()
isDefined
public boolean isDefined()
lEq
public Result lEq(Result r)
lNEq
public Result lNEq(Result r)
bOr
public void bOr(Result r)
throws InterpretTimeException
bNOr
public void bNOr(Result r)
throws InterpretTimeException
bAnd
public void bAnd(Result r)
throws InterpretTimeException
bNAnd
public void bNAnd(Result r)
throws InterpretTimeException
bXor
public void bXor(Result r)
throws InterpretTimeException
bNXor
public void bNXor(Result r)
throws InterpretTimeException
cEq
public Result cEq(Result r)
throws InterpretTimeException
cNEq
public Result cNEq(Result r)
throws InterpretTimeException
lt
public Result lt(Result r)
ge
public Result ge(Result r)
gt
public Result gt(Result r)
le
public Result le(Result r)
add
public Result add(Result r)
sub
public Result sub(Result r)
mul
public Result mul(Result r)
mod
public Result mod(Result r)
throws InterpretTimeException
div
public Result div(Result r)
getType
public int getType()
length
public int length()