net.hivecell.hive.shadow.cell
Interface CellEventMonitor

All Known Implementing Classes:
CellEventMonitorImpl

public interface CellEventMonitor
extends EventPublisherShadow

Monitor class that tells listeners about server events.


Method Summary
 void sendAgentBorn(java.lang.Object sender, Agent agent)
          Tell subscribers that an agent was born.
 void sendAgentDisconnectingAll(java.lang.Object sender, Agent from)
          Tell subscribers that an agent is disconnecting from all.
 void sendAgentDying(java.lang.Object sender, Agent agent)
          Tell subscribers that an agent is dying.
 void sendAgentMessage(java.lang.Object sender, java.lang.String message, Agent from, Agent to)
          Tell subscribes that an agent is messaging another.
 void sendAgentMovingFrom(java.lang.Object sender, Agent agent, CellAddress sourceAddress)
          Tell subscribers that an agent is dying.
 void sendAgentMovingTo(java.lang.Object sender, Agent agent, CellAddress destinationAddress)
          Tell subscribers that an agent is dying.
 void sendAgentsConnecting(java.lang.Object sender, Agent from, Agent to)
           
 void sendAgentsConnecting(java.lang.Object sender, Agent from, CellAddress fromAddress, Agent to, CellAddress toAddress)
          Tell subscribers that two agents are connecting.
 void sendAgentsDisconnecting(java.lang.Object sender, Agent from, Agent to)
          Tell subscribers that two agents are disconnecting.
 void sendCellGoingDown(java.lang.Object sender)
          Tell subscribers that we're about to go down.
 void sendCellReport(java.lang.Object sender, java.lang.String message)
          Tell subscribers of a report.
 void sendCellWithdrawing(java.lang.Object sender)
          Tell subscribers that we're about to go down.
 
Methods inherited from interface net.hivecell.hive.shadow.EventPublisherShadow
addListener, getCount, notifySubscribers, notifySubscribers, removeListener
 
Methods inherited from interface net.hivecell.hive.description.Describable
getDescription, setDescription
 

Method Detail

sendAgentBorn

public void sendAgentBorn(java.lang.Object sender,
                          Agent agent)
Tell subscribers that an agent was born.
Parameters:
sender - the object that wishes to send this notification out
agent - the agent which has just come alive

sendAgentDying

public void sendAgentDying(java.lang.Object sender,
                           Agent agent)
Tell subscribers that an agent is dying.
Parameters:
sender - the object that wishes to send this notification out
the - agent which has gone down

sendAgentMovingTo

public void sendAgentMovingTo(java.lang.Object sender,
                              Agent agent,
                              CellAddress destinationAddress)
Tell subscribers that an agent is dying.
Parameters:
sender - the object that wishes to send this notification out
the - agent which has gone down

sendAgentMovingFrom

public void sendAgentMovingFrom(java.lang.Object sender,
                                Agent agent,
                                CellAddress sourceAddress)
Tell subscribers that an agent is dying.
Parameters:
sender - the object that wishes to send this notification out
the - agent which has gone down

sendAgentsConnecting

public void sendAgentsConnecting(java.lang.Object sender,
                                 Agent from,
                                 Agent to)

sendAgentsConnecting

public void sendAgentsConnecting(java.lang.Object sender,
                                 Agent from,
                                 CellAddress fromAddress,
                                 Agent to,
                                 CellAddress toAddress)
Tell subscribers that two agents are connecting.
Parameters:
sender - the object that wishes to send this notification out
from - the agent the connection is coming from
to - the agent the connection is going to

sendAgentsDisconnecting

public void sendAgentsDisconnecting(java.lang.Object sender,
                                    Agent from,
                                    Agent to)
Tell subscribers that two agents are disconnecting.
Parameters:
sender - the object that wishes to send this notification out
from - the agent the connection is coming from
to - the agent the connection is going to

sendAgentDisconnectingAll

public void sendAgentDisconnectingAll(java.lang.Object sender,
                                      Agent from)
Tell subscribers that an agent is disconnecting from all.
Parameters:
sender - the object that wishes to send this notification out
from - the agent which is disconnecting from all

sendAgentMessage

public void sendAgentMessage(java.lang.Object sender,
                             java.lang.String message,
                             Agent from,
                             Agent to)
Tell subscribes that an agent is messaging another.
Parameters:
sender - the object that wishes to send this information out
from - the agent which the message is coming from
to - the agent which the message is going to

sendCellGoingDown

public void sendCellGoingDown(java.lang.Object sender)
Tell subscribers that we're about to go down.
Parameters:
sender - the object that wishes to send this information out

sendCellWithdrawing

public void sendCellWithdrawing(java.lang.Object sender)
Tell subscribers that we're about to go down.
Parameters:
sender - the object that wishes to send this information out

sendCellReport

public void sendCellReport(java.lang.Object sender,
                           java.lang.String message)
Tell subscribers of a report.
Parameters:
sender - the object that wishes to send this information out
mess - the message to display