public interface LinkToAgent<T extends Agent,A extends Agent> extends AbstractLinkToAgent<T,A>
Modifier and Type | Method and Description |
---|---|
void |
connectTo(T a)
Creates a uni-directional connection between this agent and a given
other agent.
|
void |
deliver(java.lang.Object msg)
Delivers a message to connected given agent immediately during this method call.
|
boolean |
disconnect()
Disconnects this agent from another given agent.
|
T |
getConnectedAgent()
Returns connected agent
|
boolean |
isConnected()
Tests if this link is connected to some agent.
|
void |
send(java.lang.Object msg)
Sends a message to connected agent.
|
doConnect_xjal, doDisconnect_xjal, getBidirectionalPeer_xjal, getLinkToAgentCommonAnimationSettings, getLinkToAgentMyAnimationSettings, getOwner, isDeliverToAgent_xjal, onDestroy, onReceive
T getConnectedAgent()
null
if this link isn't connectedboolean isConnected()
true
if the link is connected, false
otherwisegetConnectedAgent()
void connectTo(T a)
a
- another agentboolean disconnect()
a
- another agenttrue
if the agents were connected, false
otherwisevoid send(java.lang.Object msg)
msg
- a messagevoid deliver(java.lang.Object msg)
msg
- a messageCopyright © AnyLogic North America, LLC. All Rights Reserved.