|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsleep.bridges.BasicNumbers
provides some of the basic number crunching functionality
| Field Summary | |
static Class |
TYPE_DOUBLE
|
static Class |
TYPE_INT
|
static Class |
TYPE_LONG
|
| Constructor Summary | |
BasicNumbers()
|
|
| Method Summary | |
boolean |
decide(String n,
ScriptInstance i,
Stack l)
decides the truthfulness of the proposition predicateName applied to the passedInTerms. |
Scalar |
operate(String o,
ScriptInstance i,
Stack locals)
apply operator operatorName on the values in the stack. |
boolean |
scriptLoaded(ScriptInstance aScript)
called when a script is loaded |
boolean |
scriptUnloaded(ScriptInstance aScript)
called when a script is unloaded |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static Class TYPE_LONG
public static Class TYPE_INT
public static Class TYPE_DOUBLE
| Constructor Detail |
public BasicNumbers()
| Method Detail |
public boolean scriptUnloaded(ScriptInstance aScript)
Loadable
scriptUnloaded in interface Loadablepublic boolean scriptLoaded(ScriptInstance aScript)
Loadable
scriptLoaded in interface Loadable
public boolean decide(String n,
ScriptInstance i,
Stack l)
Predicate
decide in interface Predicaten - a predicate i.e. ==i - an instance of the script asking about this predicate.l - a stack of terms i.e. [3, 4]. These arguments are passed in REVERSE ORDER i.e. [right hand side, left hand side]
public Scalar operate(String o,
ScriptInstance i,
Stack locals)
Operator
operate in interface Operatoro - the name of the operator, for example the String "+"i - instance of the script calling this operatorlocals - a stack containing values the operator is to be applied to: [left hand side, right hand side]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||