speech
Class AppGrammarAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--speech.AppGrammarAgent
- public class AppGrammarAgent
- extends AgentAgent
- implements AppGrammar, TagsListener
- See Also:
- Serialized Form
Methods inherited from class metaglue.AgentAgent |
addMonitor,
alive,
defrost,
defrostAll,
defrostBoolean,
defrostInt,
defrostString,
fixAttribute,
fixAttribute,
freeze,
freeze,
freeze,
freezeAll,
freezeVar,
getAgentID,
getAttribute,
getCatalog,
getCatalogID,
getDesignation,
getFrozenVariables,
getLogLevel,
getMetaglueAgent,
getMetaglueAgentID,
getOccupation,
getProperties,
getSociety,
log,
log,
log,
obtainMetaglueAgent,
obtainMetaglueAgent,
obtainMetaglueAgentByName,
reliesOn,
reliesOn,
reliesOn,
reliesOnSynch,
removeFrozen,
replaceExceptionHandler,
setFreezeName,
setLogLevel,
setLogName,
shutdown,
startAgent,
startAgentOn,
startAgentOn,
startup,
status,
tiedTo,
tiedTo,
tiedTo,
tiedTo,
tieToDesignation,
whereAreYou |
AppGrammarAgent
public AppGrammarAgent()
throws RemoteException
- Set me up!
tellHeard
public void tellHeard(String s)
save
public void save()
- Specified by:
- save in interface AppGrammar
addTagsListener
public void addTagsListener(RemoteTagsListener suppliedListener)
throws RemoteException
- Specified by:
- addTagsListener in interface AppGrammar
addAlternative
public void addAlternative(String ruleName,
String spokenText)
throws RemoteException
- Specified by:
- addAlternative in interface AppGrammar
addAlternatives
public void addAlternatives(String ruleName,
Vector spokenText)
throws RemoteException
- Specified by:
- addAlternatives in interface AppGrammar
listRuleNames
public Enumeration listRuleNames()
throws RemoteException
- Specified by:
- listRuleNames in interface AppGrammar
printRules
public void printRules()
throws RemoteException
- Specified by:
- printRules in interface AppGrammar
addTagsListener
public void addTagsListener(String tag,
TagsListener suppliedListener)
throws RemoteException
requestWakeUp
public void requestWakeUp()
throws RemoteException
- Specified by:
- requestWakeUp in interface AppGrammar
requestWakeUp
public void requestWakeUp(boolean playattention)
throws RemoteException
- Specified by:
- requestWakeUp in interface AppGrammar
setActive
public void setActive(boolean active)
throws RemoteException
- Description copied from interface: AppGrammar
- true = activate, false = deactivate
- Specified by:
- setActive in interface AppGrammar
activate
public void activate()
throws RemoteException
- Description copied from interface: AppGrammar
- Make folks able to say our stuff!
- Specified by:
- activate in interface AppGrammar
activate
public void activate(String ruleName)
throws RemoteException
- Description copied from interface: AppGrammar
- Activate given rule.
- Specified by:
- activate in interface AppGrammar
deactivate
public void deactivate()
throws RemoteException
- Specified by:
- deactivate in interface AppGrammar
deactivate
public void deactivate(String ruleName)
throws RemoteException
- Specified by:
- deactivate in interface AppGrammar
getActiveRules
public Vector getActiveRules()
throws RemoteException
- Specified by:
- getActiveRules in interface AppGrammar
getName
public String getName()
throws RemoteException
- Specified by:
- getName in interface AppGrammar
getFile
public String getFile()
throws RemoteException
- Specified by:
- getFile in interface AppGrammar
resultAccepted
public void resultAccepted(Hashtable tags)
- This is what is called by my application grammar.
- Specified by:
- resultAccepted in interface TagsListener
isEnabled
public boolean isEnabled()
throws RemoteException
- Specified by:
- isEnabled in interface AppGrammar
addAlternativeRule
public void addAlternativeRule(String ruleName,
String ruleNameToAdd)
throws RemoteException
- Specified by:
- addAlternativeRule in interface AppGrammar
setAlternatives
public void setAlternatives(String ruleName,
Vector spokenText)
throws RemoteException
- Specified by:
- setAlternatives in interface AppGrammar
addNewRuleAlternatives
public void addNewRuleAlternatives(String ruleName)
throws RemoteException
- Specified by:
- addNewRuleAlternatives in interface AppGrammar
hasRule
public boolean hasRule(String ruleName)
throws RemoteException
- Specified by:
- hasRule in interface AppGrammar
say
public void say(String s)
throws RemoteException
- Specified by:
- say in interface AppGrammar
saySync
public void saySync(String s)
throws RemoteException
- Specified by:
- saySync in interface AppGrammar