net.hivecell.hive.agent.desktop
Class AudioClipAgentImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--net.hivecell.hive.agent.AgentImpl
|
+--net.hivecell.hive.agent.EventReceivingAgentImpl
|
+--net.hivecell.hive.agent.desktop.AudioClipAgentImpl
- public class AudioClipAgentImpl
- extends EventReceivingAgentImpl
- implements AudioClipAgent
- See Also:
- Serialized Form
Fields inherited from class net.hivecell.hive.agent.AgentImpl |
AGENTKILLED,
AGENTMOVED,
agentThreadGroup,
commandList,
commands,
description,
icon,
iconName,
myAddress,
myCell,
readyFlag,
stopCode,
timeToStop |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
void |
doBehavior()
Do the basic behavior for an agent, the agent's main loop. |
java.lang.Class[] |
getAgentSpecificEventClasses()
this is saying that we do not look for a specific type of event
class -- anything will do just fine |
java.lang.String |
getAudioURL()
Get the value of audioURL. |
void |
notify(HiveEvent event)
Called whenever the agent receives an event. |
void |
setAudioURL(java.lang.String v)
Set the value of audioURL. |
Methods inherited from class net.hivecell.hive.agent.AgentImpl |
addActionCommand,
blockUntilReady,
configure,
doLocalCleanup,
getActionCommands,
getAddress,
getCell,
getComponentManagerShadow,
getDescription,
getIcon,
getIconName,
getName,
getThreadGroup,
invokeActionCommand,
isReady,
isTimeToStop,
listAllOutgoingConnections,
loadIcon,
moveTo,
onDying,
onMoving,
setCell,
setDescription,
setIconName,
setIsReady,
setThreadGroup,
setTimeToStop,
waitUntilDeath |
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 |
AudioClipAgentImpl
public AudioClipAgentImpl()
throws java.rmi.RemoteException
getAudioURL
public java.lang.String getAudioURL()
- Get the value of audioURL.
- Specified by:
- getAudioURL in interface AudioClipAgent
- Returns:
- Value of audioURL.
setAudioURL
public void setAudioURL(java.lang.String v)
- Set the value of audioURL.
- Specified by:
- setAudioURL in interface AudioClipAgent
- Parameters:
v
- Value to assign to audioURL.
doBehavior
public void doBehavior()
- Description copied from class: 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.
- Overrides:
- doBehavior in class AgentImpl
- Tags copied from class: AgentImpl
- See Also:
timeToStop
,
doLocalSetup
getAgentSpecificEventClasses
public java.lang.Class[] getAgentSpecificEventClasses()
- this is saying that we do not look for a specific type of event
class -- anything will do just fine
notify
public void notify(HiveEvent event)
- Description copied from class: EventReceivingAgentImpl
- Called whenever the agent receives an event. By default, just
notifies the server of the message. Override with agent's behaviour,
but remember to call this superclass method!
- Overrides:
- notify in class EventReceivingAgentImpl