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

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class agentland.resource.ManagedAgent
rm, society
 
Fields inherited from class agentland.util.GoodAgent
alert, notifier
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
AFAIKSpeechAgent()
          Creates a new AFAIKSpeechAgent instance.
 
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 class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface agentland.resource.Managed
getNeed, replace, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Constructor Detail

AFAIKSpeechAgent

public AFAIKSpeechAgent()
                 throws RemoteException
Creates a new AFAIKSpeechAgent instance.
Throws:
RemoteException - if an error occurs
Method Detail

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