mess
Interface Mess

All Known Implementing Classes:
MessAgent

public interface Mess
extends Managed

An Agent for interfacing with Jess, the Java Expert System Shell. This effectively creates the basis of the Metaglue Expert System Shell (MESS).


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 void addUserfunction(Serializable uf)
           
 void assert(Fact f)
           
 void assert(String s)
           
 void assertAttribute(String attrName)
           
 void assertSpeechTag(String tagName, String tagValue)
           
 void clear()
           
 void execCommand(String cmd)
          Passes a JESS command to the engine.
 Vector facts()
           
 String fetch(String name)
           
 int fetchInt(String name)
           
 void loadFacts()
           
 boolean loadFile(String fname)
          Loads a set of definitions into the interpreter from a filename.
 boolean loadScript(String packageList)
           
 boolean loadString(String s)
          Loads a set of definitions into the interpreter from a string.
 boolean loadURL(String url)
          Loads a set of definitions into the interpreter from a URL.
 Fact newFact(Fact f)
           
 Fact newFact(String s)
           
 void reset()
           
 void retract(Fact f)
           
 void retract(String s)
           
 Hashtable run()
           
 void saveFacts()
           
 void store(String name, Object value)
           
 
Methods inherited from interface agentland.resource.Managed
getNeed, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface agentland.util.Spy
tell
 

Method Detail

loadURL

public boolean loadURL(String url)
                throws RemoteException
Loads a set of definitions into the interpreter from a URL. If the URL is not fully specified, an intelligent base URL will be used to resolve ambiguity. If the loaded code includes the `(run)' directive, this will also run the expert system to completion.

loadScript

public boolean loadScript(String packageList)
                   throws RemoteException

loadFile

public boolean loadFile(String fname)
                 throws RemoteException
Loads a set of definitions into the interpreter from a filename.

loadString

public boolean loadString(String s)
                   throws RemoteException
Loads a set of definitions into the interpreter from a string.

reset

public void reset()
           throws RemoteException

clear

public void clear()
           throws RemoteException

run

public Hashtable run()
              throws RemoteException

newFact

public Fact newFact(String s)
             throws RemoteException

newFact

public Fact newFact(Fact f)
             throws RemoteException

assert

public void assert(String s)
            throws RemoteException

assert

public void assert(Fact f)
            throws RemoteException

retract

public void retract(String s)
             throws RemoteException

retract

public void retract(Fact f)
             throws RemoteException

store

public void store(String name,
                  Object value)
           throws RemoteException

fetch

public String fetch(String name)
             throws RemoteException

fetchInt

public int fetchInt(String name)
             throws RemoteException

facts

public Vector facts()
             throws RemoteException

saveFacts

public void saveFacts()
               throws RemoteException

loadFacts

public void loadFacts()
               throws RemoteException

execCommand

public void execCommand(String cmd)
                 throws RemoteException
Passes a JESS command to the engine.

addUserfunction

public void addUserfunction(Serializable uf)
                     throws RemoteException

assertAttribute

public void assertAttribute(String attrName)
                     throws RemoteException

assertSpeechTag

public void assertSpeechTag(String tagName,
                            String tagValue)
                     throws RemoteException