java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.mit.media.hive.agent.AgentImpl
edu.mit.media.hive.agent.EventReceivingAgentImpl
edu.mit.media.hive.agent.EventTransceivingAgentImpl
edu.mit.media.hive.agent.EventTranslatingAgentImpl
edu.mit.media.hive.agent.filter.HoneyIShrunkTheCDs
- All Implemented Interfaces:
- edu.mit.media.hive.agent.Agent, edu.mit.media.hive.rdf.Describable, java.util.EventListener, edu.mit.media.hive.agent.EventReceivingAgent, edu.mit.media.hive.agent.EventSendingAgent, edu.mit.media.hive.agent.EventSendingErrorListener, edu.mit.media.hive.agent.EventTransceivingAgent, java.rmi.Remote, edu.mit.media.hive.event.RemoteEventListener, java.io.Serializable
- public class HoneyIShrunkTheCDs
- extends edu.mit.media.hive.agent.EventTranslatingAgentImpl
Fields inherited from class edu.mit.media.hive.agent.AgentImpl |
AGENTKILLED, AGENTMOVED, agentThreadGroup, commandList, commands, description, icon, iconName, myCell, readyFlag, stopCode, timeToStop |
Method Summary |
void |
doBehavior()
Do the basic behavior for an agent, the agent's main loop. |
void |
doLocalSetup()
When we arrive, create an event sending helper. |
private void |
loadMap()
|
void |
translate(edu.mit.media.hive.event.HiveEvent event)
The translator method - called with the event data of a HiveEvent,
this method should repropagate the event data through
eventSendingHelper.notifySubscribers(). |
Methods inherited from class edu.mit.media.hive.agent.AgentImpl |
addActionCommand, blockUntilReady, configure, doBehaviour, doLocalCleanup, getActionCommands, getCell, getComponentManagerShadow, getDescription, getIcon, getIconName, getName, getThreadGroup, invokeActionCommand, isReady, isTimeToStop, loadIcon, moveTo, onDying, onMoving, setCell, setDescription, setIconName, setIsReady, setThreadGroup, setTimeToStop, waitUntilDeath |
Methods inherited from interface edu.mit.media.hive.agent.Agent |
blockUntilReady, configure, connectTo, diePlease, disconnectFrom, disconnectFromAll, getActionCommands, getCell, getDescription, getIcon, getName, invokeActionCommand, isReady |
tagSongMap
transient java.util.Hashtable tagSongMap
lastsong
java.lang.String lastsong
continuous
boolean continuous
HoneyIShrunkTheCDs
public HoneyIShrunkTheCDs()
throws java.rmi.RemoteException
doLocalSetup
public void doLocalSetup()
- Description copied from class:
edu.mit.media.hive.agent.EventTransceivingAgentImpl
- When we arrive, create an event sending helper.
loadMap
private void loadMap()
doBehavior
public void doBehavior()
- Description copied from class:
edu.mit.media.hive.agent.AgentImpl
- Do the basic behavior for an agent, the agent's main loop.
Override this to provide your particular agent's behavior.
Note: the doBehavior loop should not exit. Please call
waitUntilDeath() at the end of this method, this will prevent
the Cell from believing this agent prematurely exited.
translate
public void translate(edu.mit.media.hive.event.HiveEvent event)
- Description copied from class:
edu.mit.media.hive.agent.EventTranslatingAgentImpl
- The translator method - called with the event data of a HiveEvent,
this method should repropagate the event data through
eventSendingHelper.notifySubscribers().