AnyLogic
Expand
Font size
All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
LinkToAgent<T,​A>, LinkToAgentCollection<T,​A>
All Known Implementing Classes:
LinkToAgentCollectionImpl, LinkToAgentImpl, LinkToAgentStandardImpl

public interface AbstractLinkToAgent<T extends Agent,​A extends Agent>
extends java.io.Serializable

Method Summary

All Methods Instance Methods Abstract Methods 
void doConnect_xjal​(T a)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
void doDisconnect_xjal​(T a)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
AbstractLinkToAgent<A,​T> getBidirectionalPeer_xjal​(T agent)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
LinkToAgentAnimationSettings getLinkToAgentCommonAnimationSettings()
Returns link animation settings shared by the all the agents having this link.
Changes to these settings apply to drawing of all links of this type
LinkToAgentAnimationSettings getLinkToAgentMyAnimationSettings()
Returns link animation settings for this particular agent.
Changes to these settings apply to drawing of this link only inside its agent
A getOwner()  
boolean isDeliverToAgent_xjal()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
void onDestroy()
Discards the link and disconnects it if it is bidirectional.
void onReceive​(java.lang.Object msg, Agent sender)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
Override for custom on receive action
Modifier and Type Method Description

Method Detail

doConnect_xjal

@AnyLogicInternalAPI
void doConnect_xjal​(T a)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.

doDisconnect_xjal

@AnyLogicInternalAPI
void doDisconnect_xjal​(T a)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.

onReceive

@AnyLogicInternalCodegenAPI
void onReceive​(java.lang.Object msg,
               Agent sender)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
Override for custom on receive action

getLinkToAgentMyAnimationSettings

LinkToAgentAnimationSettings getLinkToAgentMyAnimationSettings()
Returns link animation settings for this particular agent.
Changes to these settings apply to drawing of this link only inside its agent
Returns:
link animation settings for this particular agent

getLinkToAgentCommonAnimationSettings

LinkToAgentAnimationSettings getLinkToAgentCommonAnimationSettings()
Returns link animation settings shared by the all the agents having this link.
Changes to these settings apply to drawing of all links of this type
Returns:
shared link animation settings

getBidirectionalPeer_xjal

@AnyLogicInternalCodegenAPI
AbstractLinkToAgent<A,​T> getBidirectionalPeer_xjal​(T agent)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.

isDeliverToAgent_xjal

@AnyLogicInternalCodegenAPI
boolean isDeliverToAgent_xjal()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.

getOwner

A getOwner()

onDestroy

@AnyLogicInternalCodegenAPI
void onDestroy()
Discards the link and disconnects it if it is bidirectional. Must be called when the agent is destroyed.
How can we improve this article?