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
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 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 interface agentland.util.Spy |
tell |
ShutUpAgent
public ShutUpAgent()
throws RemoteException
- Creates a new
ShutUpAgent
instance.
- Throws:
RemoteException
- if an error occurs
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