|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void sendAgentBorn(java.lang.Object sender, Agent agent)
sender
- the object that wishes to send this notification outagent
- the agent which has just come alivepublic void sendAgentDying(java.lang.Object sender, Agent agent)
sender
- the object that wishes to send this notification outthe
- agent which has gone downpublic void sendAgentMovingTo(java.lang.Object sender, Agent agent, CellAddress destinationAddress)
sender
- the object that wishes to send this notification outthe
- agent which has gone downpublic void sendAgentMovingFrom(java.lang.Object sender, Agent agent, CellAddress sourceAddress)
sender
- the object that wishes to send this notification outthe
- agent which has gone downpublic void sendAgentsConnecting(java.lang.Object sender, Agent from, Agent to)
public void sendAgentsConnecting(java.lang.Object sender, Agent from, CellAddress fromAddress, Agent to, CellAddress toAddress)
sender
- the object that wishes to send this notification outfrom
- the agent the connection is coming fromto
- the agent the connection is going topublic void sendAgentsDisconnecting(java.lang.Object sender, Agent from, Agent to)
sender
- the object that wishes to send this notification outfrom
- the agent the connection is coming fromto
- the agent the connection is going topublic void sendAgentDisconnectingAll(java.lang.Object sender, Agent from)
sender
- the object that wishes to send this notification outfrom
- the agent which is disconnecting from allpublic void sendAgentMessage(java.lang.Object sender, java.lang.String message, Agent from, Agent to)
sender
- the object that wishes to send this information outfrom
- the agent which the message is coming fromto
- the agent which the message is going topublic void sendCellGoingDown(java.lang.Object sender)
sender
- the object that wishes to send this information outpublic void sendCellWithdrawing(java.lang.Object sender)
sender
- the object that wishes to send this information outpublic void sendCellReport(java.lang.Object sender, java.lang.String message)
sender
- the object that wishes to send this information outmess
- the message to display
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |