speech.tools
Class ManagedAskerAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.resource.ManagedAgent
                                      |
                                      +--speech.tools.ManagedSpeechAgent
                                            |
                                            +--speech.tools.ManagedAskerAgent

public class ManagedAskerAgent
extends ManagedSpeechAgent
implements ManagedSpeech, ManagedAsker

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class speech.tools.ManagedSpeechAgent
voice
 
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
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Fields inherited from interface speech.tools.Asker
ERROR, MAYBE, NO, UNKNOWN, YES
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
ManagedAskerAgent()
           
 
Method Summary
 void acceptedTagsResult(Hashtable tags)
           
 int analyze(Hashtable response)
           
 int ask(String q)
          Asks q, looks for a yes/no/maybe/unknown response
 int ask(String q, int timeout)
           
 String askFree(String q)
          Ask free response question--this is not all that usefull given the getDictation method of grammars, but it is better form? Maybe?
 
Methods inherited from class speech.tools.ManagedSpeechAgent
getDictation, loadGrammar, loadGrammar, say, saySync
 
Methods inherited from class agentland.resource.ManagedAgent
connect, getAlert, getNeed, reliesOn, reliesOn, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, 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, 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
 

Constructor Detail

ManagedAskerAgent

public ManagedAskerAgent()
                  throws RemoteException
Method Detail

ask

public int ask(String q)
        throws RemoteException
Description copied from interface: ManagedAsker
Asks q, looks for a yes/no/maybe/unknown response
Specified by:
ask in interface ManagedAsker

ask

public int ask(String q,
               int timeout)
        throws RemoteException
Specified by:
ask in interface ManagedAsker
Tags copied from interface: ManagedAsker
Parameters:
timeout - number of seconds until it gives up on your sorry ass.

askFree

public String askFree(String q)
               throws RemoteException
Description copied from interface: ManagedAsker
Ask free response question--this is not all that usefull given the getDictation method of grammars, but it is better form? Maybe?
Specified by:
askFree in interface ManagedAsker

analyze

public int analyze(Hashtable response)

acceptedTagsResult

public void acceptedTagsResult(Hashtable tags)
Overrides:
acceptedTagsResult in class ManagedSpeechAgent