AnyLogic
Expand
Font size
All Superinterfaces:
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 Serializable

Method Summary

Modifier and TypeMethodDescription
voiddoConnect_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.
voiddoDisconnect_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.
LinkToAgentAnimationSettingsgetLinkToAgentCommonAnimationSettings()
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
LinkToAgentAnimationSettingsgetLinkToAgentMyAnimationSettings()
Returns link animation settings for this particular agent.
Changes to these settings apply to drawing of this link only inside its agent
AgetOwner() 
booleanisDeliverToAgent_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.
voidonDestroy()
Discards the link and disconnects it if it is bidirectional.
voidonReceive(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

Method Details

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(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.