bsh.commands
Class assertObject

java.lang.Object
  |
  +--bsh.commands.assertObject

public class assertObject
extends java.lang.Object

Assert an object into the working memory.

Author:
bob mcwhirter
See Also:
WorkingMemory

Constructor Summary
assertObject()
           
 
Method Summary
static void invoke(bsh.Interpreter interp, bsh.NameSpace namespace, java.lang.Object object)
          Invoke the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

assertObject

public assertObject()
Method Detail

invoke

public static void invoke(bsh.Interpreter interp,
                          bsh.NameSpace namespace,
                          java.lang.Object object)
                   throws bsh.EvalError,
                          FactException
Invoke the command.

Parameters:
interp - The bsh interpreter.
namespace - The bsh namespace.
object - The object to assert.
Throws:
bsh.EvalError - If a bsh evaluation error occurs.
AssertionException - If there is a RETE fact assertion exception.
FactException