speech
Interface AppGrammar

All Superinterfaces:
Agent, Good, Managed, Remote, RemoteTagsListener, Spy
All Known Implementing Classes:
AppGrammarAgent

public interface AppGrammar
extends Managed, RemoteTagsListener

A agent representing a single grammar which can be turned on/off, etc.


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
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, Collection spokenText)
           
 void addNewRuleAlternatives(String ruleName)
           
 void addTagsListener(RemoteTagsListener 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 save()
           
 void setActive(boolean active)
          true = activate, false = deactivate
 void setAlternatives(String ruleName, Collection spokenText)
           
 
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, getOldLogs, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 
Methods inherited from interface speech.RemoteTagsListener
acceptedTagsResult
 

Method Detail

setActive

public void setActive(boolean active)
               throws RemoteException
true = activate, false = deactivate

activate

public void activate()
              throws RemoteException
Make folks able to say our stuff!

activate

public void activate(String ruleName)
              throws RemoteException
Activate given rule.

deactivate

public void deactivate()
                throws RemoteException

deactivate

public void deactivate(String ruleName)
                throws RemoteException

addTagsListener

public void addTagsListener(RemoteTagsListener suppliedListener)
                     throws RemoteException

addAlternative

public void addAlternative(String ruleName,
                           String spokenText)
                    throws RemoteException

addAlternatives

public void addAlternatives(String ruleName,
                            Collection spokenText)
                     throws RemoteException

save

public void save()
          throws RemoteException

listRuleNames

public Enumeration listRuleNames()
                          throws RemoteException

printRules

public void printRules()
                throws RemoteException

getActiveRules

public Vector getActiveRules()
                      throws RemoteException

getName

public String getName()
               throws RemoteException

getFile

public String getFile()
               throws RemoteException

requestWakeUp

public void requestWakeUp()
                   throws RemoteException

requestWakeUp

public void requestWakeUp(boolean playattention)
                   throws RemoteException

isEnabled

public boolean isEnabled()
                  throws RemoteException

addAlternativeRule

public void addAlternativeRule(String ruleName,
                               String ruleNameToAdd)
                        throws RemoteException

setAlternatives

public void setAlternatives(String ruleName,
                            Collection spokenText)
                     throws RemoteException

addNewRuleAlternatives

public void addNewRuleAlternatives(String ruleName)
                            throws RemoteException

hasRule

public boolean hasRule(String ruleName)
                throws RemoteException