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

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
AppGrammarAgent()
          Set me up!
 
Method Summary
 void activate()
          Make folks able to say our stuff!
 void activate(String ruleName)
          Activate given rule.
 void addAlternative(String ruleName, String spokenText)
           
 void addAlternativeRule(String ruleName, String ruleNameToAdd)
           
 void addAlternatives(String ruleName, Vector spokenText)
           
 void addNewRuleAlternatives(String ruleName)
           
 void addTagsListener(RemoteTagsListener suppliedListener)
           
 void addTagsListener(String tag, TagsListener suppliedListener)
           
 void deactivate()
           
 void deactivate(String ruleName)
           
 Vector getActiveRules()
           
 String getFile()
           
 String getName()
           
 boolean hasRule(String ruleName)
           
 boolean isEnabled()
           
 Enumeration listRuleNames()
           
 void printRules()
           
 void requestWakeUp()
           
 void requestWakeUp(boolean playattention)
           
 void resultAccepted(Hashtable tags)
          This is what is called by my application grammar.
 void save()
           
 void say(String s)
           
 void saySync(String s)
           
 void setActive(boolean active)
          true = activate, false = deactivate
 void setAlternatives(String ruleName, Vector spokenText)
           
 void tellHeard(String s)
           
 
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
 

Constructor Detail

AppGrammarAgent

public AppGrammarAgent()
                throws RemoteException
Set me up!
Method Detail

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