agentland.info
Interface StartInterface
- All Superinterfaces:
- Agent, Good, Managed, Mess, Remote, Spy
- All Known Implementing Classes:
- StartInterfaceAgent
- public interface StartInterface
- extends Mess
Interface for StartInterfaceAgent
.
- See Also:
Mess
Methods inherited from interface mess.Mess |
addUserfunction, assert, assert, assertAttribute, assertSpeechTag, clear, execCommand, facts, fetch, fetchInt, loadFacts, loadFile, loadScript, loadString, loadURL, newFact, newFact, reset, retract, retract, run, saveFacts, store |
Methods inherited from interface agentland.util.Spy |
tell |
doCommand
public boolean doCommand(String object,
String args)
throws RemoteException
- Execute a command.
- Parameters:
object
- the object you are asking aboutargs
- other parts of the command- Returns:
- true if successful, false otherwise
- Throws:
RemoteException
- if an error occurs
doQuery
public String doQuery(String object,
String args)
throws RemoteException
- Execute a query and return the result.
- Parameters:
object
- the object you are asking aboutargs
- other parts of the query- Returns:
- the answer to the query if successful, null otherwise
- Throws:
RemoteException
- if an error occurs
doAssert
public boolean doAssert(String assertion)
throws RemoteException
- Make an assertion.
- Parameters:
assertion
- the fact to be asserted- Returns:
- true if successful, false otherwise
- Throws:
RemoteException
- if an error occurs
hearStateChange
public void hearStateChange(Secret s)
throws RemoteException
help
public void help()
throws RemoteException
- Prints the queries and commands that this agent can handle on System.out.
- Throws:
RemoteException
- if an error occurs
showFacts
public void showFacts()
throws RemoteException
- Prints the facts in the system on System.out
- Throws:
RemoteException
- if an error occurs
connectToStart
public boolean connectToStart()
throws RemoteException
- Call this to set up connection to START
- Returns:
true
if successful- Throws:
RemoteException
- if an error occurs
fread
public String fread(String input)
throws RemoteException
- Call START's
fread
function.
- Parameters:
input
- a string to give to fread
- Returns:
- START's response
closeConnectionToStart
public void closeConnectionToStart()
throws RemoteException
- Close the connection to START.
- Throws:
RemoteException
- if an error occurs
isConnected
public boolean isConnected()
throws RemoteException