sleep.bridges
Class BasicUtilities
- Function, Serializable, Loadable, Predicate
public class BasicUtilities
implementation of basic utility functions
decide
public boolean decide(String predName,
ScriptInstance anInstance,
Stack terms)
decides the truthfulness of the proposition predicateName applied to the passedInTerms.
- decide in interface Predicate
anInstance
- an instance of the script asking about this predicate.
- a boolean, in the case of a predicate == and the terms [3, 4] we know 3 == 4 is false so return false.