speech.test
Class RandomThoughtAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.resource.ManagedAgent
|
+--speech.test.RandomThoughtAgent
- All Implemented Interfaces:
- Agent, Good, Managed, MetagluePrimitives, RandomThought, Remote, Serializable, Spy
- public class RandomThoughtAgent
- extends ManagedAgent
- implements RandomThought
- See Also:
- Serialized Form
Methods inherited from class agentland.resource.ManagedAgent |
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, yank, yank, yank |
Methods inherited from class agentland.util.GoodAgent |
addSpy, addSpy, alert, alertString, beep, error, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell |
Methods inherited from class metaglue.AgentAgent |
addMonitor, alive, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, lookupClass, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
Methods inherited from interface agentland.util.Spy |
tell |
rand
protected Random rand
RandomThoughtAgent
public RandomThoughtAgent()
throws RemoteException
loadGrammar
public boolean loadGrammar(String sPackageName)
- Specified by:
loadGrammar
in interface RandomThought
getRandomSentence
public String getRandomSentence(String sGrammarName,
String sRuleName)
- Specified by:
getRandomSentence
in interface RandomThought
containsRule
public boolean containsRule(String sGrammarName,
String sRuleName)
- Specified by:
containsRule
in interface RandomThought
isGrammarLoaded
public boolean isGrammarLoaded(String sGrammarName)
- Specified by:
isGrammarLoaded
in interface RandomThought
listRuleNames
public ArrayList listRuleNames(String sGrammarName)
- Specified by:
listRuleNames
in interface RandomThought