speech.tools
Class ShutUpAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--speech.tools.SpeechAgent
                                      |
                                      +--speech.tools.ShutUpAgent
All Implemented Interfaces:
Agent, Good, MetagluePrimitives, Remote, RemoteTagsListener, Serializable, ShutUp, Speech, Spy

public class ShutUpAgent
extends SpeechAgent
implements ShutUp

The ShutUpAgent is a simple agent that allows for the user to "interrupt" the computer while it is talking, and in essence, shut the computer up. The stopTalking command of speech.SpeechOutAgent will only work if the computer is using saySafe or other variation of saySafe.

See Also:
SpeechOutAgent, SpeechAgent, ShutUp, Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class speech.tools.SpeechAgent
voice
 
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
ShutUpAgent()
          Creates a new ShutUpAgent instance.
 
Method Summary
 void acceptedTagsResult(Hashtable tags)
          This is called by the speech system after the user says something.
 void jabber()
          Used to test the "shut up" feature.
 void shutup()
          Stops speech out (if saySafe was used).
 
Methods inherited from class speech.tools.SpeechAgent
getDictation, loadGrammar, loadGrammar, say, saySync
 
Methods inherited from class agentland.util.GoodAgent
addSpy, addSpy, alert, alertString, beep, error, getAlert, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, lookupClass, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, 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, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

ShutUpAgent

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

acceptedTagsResult

public void acceptedTagsResult(Hashtable tags)
                        throws RemoteException
This is called by the speech system after the user says something.
Overrides:
acceptedTagsResult in class SpeechAgent
Parameters:
tags - a Hashtable value
Throws:
RemoteException - if an error occurs

shutup

public void shutup()
            throws RemoteException
Stops speech out (if saySafe was used).
Specified by:
shutup in interface ShutUp
Throws:
RemoteException - if an error occurs
See Also:
SpeechOutAgent.saySafe(String)

jabber

public void jabber()
            throws RemoteException
Used to test the "shut up" feature. Jabber reads a long article taken from CNN.
Specified by:
jabber in interface ShutUp
Throws:
RemoteException - if an error occurs