speech
Class GrammarCenterAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--speech.GrammarCenterAgent

public class GrammarCenterAgent
extends AgentAgent
implements GrammarCenter

This is the center where it listens to the user and farms out stuff to various AppGrammars.

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
 boolean divertToTypeWriter
           
 TypeWriter tw
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
GrammarCenterAgent()
           
 
Method Summary
 String getDictation()
           
 void nap(int ms)
          Take a short nap--to let the dictation voice play.
 String processString(String text)
           
 void requestWakeUp()
           
 void requestWakeUp(boolean playattention)
           
 void setDictionFromTypeWriter(boolean b)
           
 void setTypeWriter(String agentID)
           
 
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
 
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
 

Field Detail

tw

public TypeWriter tw

divertToTypeWriter

public boolean divertToTypeWriter
Constructor Detail

GrammarCenterAgent

public GrammarCenterAgent()
                   throws RemoteException
Method Detail

nap

public void nap(int ms)
Take a short nap--to let the dictation voice play.

getDictation

public String getDictation()
                    throws RemoteException
Specified by:
getDictation in interface GrammarCenter

requestWakeUp

public void requestWakeUp()
                   throws RemoteException
Specified by:
requestWakeUp in interface GrammarCenter

requestWakeUp

public void requestWakeUp(boolean playattention)
                   throws RemoteException
Specified by:
requestWakeUp in interface GrammarCenter

processString

public String processString(String text)
                     throws RemoteException
Specified by:
processString in interface GrammarCenter

setDictionFromTypeWriter

public void setDictionFromTypeWriter(boolean b)
                              throws RemoteException
Specified by:
setDictionFromTypeWriter in interface GrammarCenter

setTypeWriter

public void setTypeWriter(String agentID)
                   throws RemoteException
Specified by:
setTypeWriter in interface GrammarCenter