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.DataHolder
monitors
 
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
 
Constructor Summary
Real()
           
Real(double d)
           
Real(long l)
           
Real(Real r)
           
Real(java.lang.String s)
           
 
Method Summary
 Result add(Result r)
           
 void attrib(Real r)
           
 void bAnd(Result r)
           
 void bAndR()
           
 void bNAnd(Result r)
           
 void bNAndR()
           
 void bNOr(Result r)
           
 void bNOrR()
           
 void bNot()
           
 void bNXor(Result r)
           
 void bNXOrR()
           
 void bOr(Result r)
           
 void bOrR()
           
 void bXor(Result r)
           
 void bXOrR()
           
 Result cEq(Result r)
           
 java.lang.Object clone()
           
 Result cNEq(Result r)
           
 java.lang.Object[] compute()
          Does nothing, because a Real cannot be continuously assigned.
 Result div(Result r)
           
 Result duplicate()
           
 Result ge(Result r)
           
 BitVector getBits()
          Also known as the $realtobits system function.
 int getBool()
          Returns 1 if this Real is not 0, and 0 otherwise.
 BitVector getInt()
          This is simillar to the the $rtoi system function.
 long getLong()
           
 Real getReal()
          Returns a copy of this.
 int getType()
           
 Result gt(Result r)
           
 boolean isDefined()
           
 boolean isTrue()
          Returns the truth value of tis Real;
 Result le(Result r)
           
 int length()
           
 Result lEq(Result r)
           
 Result lNEq(Result r)
           
 void lNot()
           
 Result lt(Result r)
           
 Result mod(Result r)
           
 Result mul(Result r)
           
 void neg()
           
 void shl(Result r)
           
 void shr(Result r)
           
 Result sub(Result r)
           
 java.lang.String toDecimalString()
          Returns a brief representation of this real.
 java.lang.String toString()
           
 java.lang.String toString(int base)
           
 
Methods inherited from class engine.DataHolder
addMonitor, getWatchMonitor, hasMonitor, notifyMonitors, removeMonitor
 
Methods inherited from class engine.Assignable
addAssignement, removeAssignement
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

data

double data
Constructor Detail

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)
Method Detail

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