Package sleep.bridges
Class BasicStrings
- java.lang.Object
-
- sleep.bridges.BasicStrings
-
-
Constructor Summary
Constructors Constructor Description BasicStrings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
decide(java.lang.String n, ScriptInstance i, java.util.Stack l)
decides the truthfulness of the proposition predicateName applied to the passedInTerms.void
scriptLoaded(ScriptInstance aScript)
called when a script is loadedvoid
scriptUnloaded(ScriptInstance aScript)
called when a script is unloaded
-
-
-
Method Detail
-
scriptUnloaded
public void scriptUnloaded(ScriptInstance aScript)
Description copied from interface:Loadable
called when a script is unloaded- Specified by:
scriptUnloaded
in interfaceLoadable
-
scriptLoaded
public void scriptLoaded(ScriptInstance aScript)
Description copied from interface:Loadable
called when a script is loaded- Specified by:
scriptLoaded
in interfaceLoadable
-
decide
public boolean decide(java.lang.String n, ScriptInstance i, java.util.Stack l)
Description copied from interface:Predicate
decides the truthfulness of the proposition predicateName applied to the passedInTerms.- Specified by:
decide
in interfacePredicate
- Parameters:
n
- 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]- Returns:
- a boolean, in the case of a predicate == and the terms [3, 4] we know 3 == 4 is false so return false.
-
-