ru.igis.omtab.scenario
Class JessScenario

java.lang.Object
  extended by ru.igis.omtab.scenario.JessScenario

public class JessScenario
extends java.lang.Object

Reference implementation of scenario mechanism Implement execution of Jess commands For now implement execution of command "batch" and also execution of arrbitrary Jess command

Author:
ru

Constructor Summary
JessScenario()
          Creates a new instance of JessScenario
 
Method Summary
 void batch(java.lang.String path)
          Method to execute Jess command "batch"
 void executeCommand(java.lang.String cmd)
          Method to execute arbitrary Jess command
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JessScenario

public JessScenario()
Creates a new instance of JessScenario

Method Detail

batch

public void batch(java.lang.String path)
           throws jess.JessException
Method to execute Jess command "batch"

Parameters:
path - - path to batch file
Throws:
jess.JessException - -

executeCommand

public void executeCommand(java.lang.String cmd)
                    throws jess.JessException
Method to execute arbitrary Jess command

Parameters:
cmd - - command string, for example "(bind ?x(* 2 2))"
Throws:
jess.JessException - -