agentland.help
Class AFAIKSpeechAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.resource.ManagedAgent
|
+--agentland.help.AFAIKSpeechAgent
- All Implemented Interfaces:
- AFAIKSpeech, Agent, Good, Managed, MetagluePrimitives, Remote, RemoteTagsListener, Serializable, Spy
- public class AFAIKSpeechAgent
- extends ManagedAgent
- implements AFAIKSpeech, RemoteTagsListener
AFAIKSpeechAgent is the primary speech interface for
AFAIK. This agent and its grammar can handle a wide
variety of requests, ranging from "what is CVS?" to "I need help".
- See Also:
AFAIKAgent,
AFAIKSpeech,
RemoteTagsListener, Serialized Form
|
Method Summary |
void |
acceptedTagsResult(Hashtable hTags)
acceptedTagsResult handles the different utterances
that are passed back from the speech system, and performs the
appropriate actions. |
void |
updateCurrentHelpFile(Secret s)
Updates the grammar with the names of the current help files. |
void |
updateKeywords()
Updates the grammar with the names of the current help files. |
void |
updateKeywords(Secret s)
Describe updateKeywords dynamically updates the "keyword"
rule in the main grammar. |
void |
updateSubtopicNames()
Updates the grammar with the names of the current subtopics. |
void |
updateSubtopicNames(Secret s)
updateSubtopicNames dynamically updates the "subtopic"
rule in the main grammar. |
| 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, 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, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou |
| Methods inherited from interface agentland.util.Spy |
tell |
AFAIKSpeechAgent
public AFAIKSpeechAgent()
throws RemoteException
- Creates a new
AFAIKSpeechAgent instance.
- Throws:
RemoteException - if an error occurs
acceptedTagsResult
public void acceptedTagsResult(Hashtable hTags)
acceptedTagsResult handles the different utterances
that are passed back from the speech system, and performs the
appropriate actions.
- Specified by:
acceptedTagsResult in interface RemoteTagsListener
- Parameters:
hTags - a Hashtable value- Throws:
RemoteException - if an error occurs
updateCurrentHelpFile
public void updateCurrentHelpFile(Secret s)
- Updates the grammar with the names of the current help files.
- Specified by:
updateCurrentHelpFile in interface AFAIKSpeech
- Parameters:
s - a Secret value
updateSubtopicNames
public void updateSubtopicNames()
- Updates the grammar with the names of the current subtopics.
- Specified by:
updateSubtopicNames in interface AFAIKSpeech
updateSubtopicNames
public void updateSubtopicNames(Secret s)
updateSubtopicNames dynamically updates the "subtopic"
rule in the main grammar. This allows voice access to any of
the subtopics present in any of the helpfiles.
- Specified by:
updateSubtopicNames in interface AFAIKSpeech
- Parameters:
s - a Secret value- Throws:
RemoteException - if an error occurs
updateKeywords
public void updateKeywords()
- Updates the grammar with the names of the current help files.
- Specified by:
updateKeywords in interface AFAIKSpeech
updateKeywords
public void updateKeywords(Secret s)
- Describe
updateKeywords dynamically updates the "keyword"
rule in the main grammar. This allows voice access to any of
the keywords present in any of the helpfiles.
- Specified by:
updateKeywords in interface AFAIKSpeech
- Parameters:
s - a Secret value