AnyLogic AnyLogic
Expand
Font size

Field Summary

Fields 
static int P_AGENT_INTERACTIVE_DELEGATE  
static int P_AGENT_WITH_SPATIAL_METRICS_DELEGATE  
static int P_AGENT_WITH_SPECIFIC_SPACE  
static int P_AGENT_WITH_SPECIFIC_SPACE_DELEGATE  
static int P_ENTITY_DELEGATE  
static int P_ENV_WITH_SPECIFIC_SPACE  
static int P_ROOT  
static int P_SPACE  
static int P_USER_EXT  
Modifier and Type Field Description

Method Summary

All Methods Instance Methods Abstract Methods 
Agent getAgent()
Returns the agent this extension belongs to
AgentExtension next_xjal()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
void onDestroy()
This method is called when the owner of this extension is destroyed.
Should be overridden when custom destroy is required.
Default implementation does nothing
void onExtensionRemoved​(AgentExtension ext)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Callback invoked when some other agent extension is removed.
int priority()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
This function is used for sorting extensions (in order for the overriding delegation to work)
void setNext_xjal​(AgentExtension next)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
boolean supportsInterface_xjal​(java.lang.Class<?> itfs)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Modifier and Type Method Description

Field Detail

P_AGENT_WITH_SPECIFIC_SPACE

@AnyLogicInternalAPI
static final int P_AGENT_WITH_SPECIFIC_SPACE
See Also:
Constant Field Values

P_AGENT_WITH_SPECIFIC_SPACE_DELEGATE

@AnyLogicInternalAPI
static final int P_AGENT_WITH_SPECIFIC_SPACE_DELEGATE
See Also:
Constant Field Values

P_AGENT_WITH_SPATIAL_METRICS_DELEGATE

@AnyLogicInternalAPI
static final int P_AGENT_WITH_SPATIAL_METRICS_DELEGATE
See Also:
Constant Field Values

P_AGENT_INTERACTIVE_DELEGATE

@AnyLogicInternalAPI
static final int P_AGENT_INTERACTIVE_DELEGATE
See Also:
Constant Field Values

P_ENTITY_DELEGATE

@AnyLogicInternalAPI
static final int P_ENTITY_DELEGATE
See Also:
Constant Field Values

P_ENV_WITH_SPECIFIC_SPACE

@AnyLogicInternalAPI
static final int P_ENV_WITH_SPECIFIC_SPACE
See Also:
Constant Field Values

P_USER_EXT

@AnyLogicInternalAPI
static final int P_USER_EXT
See Also:
Constant Field Values

P_ROOT

@AnyLogicInternalAPI
static final int P_ROOT
See Also:
Constant Field Values

P_SPACE

@AnyLogicInternalAPI
static final int P_SPACE
See Also:
Constant Field Values

Method Detail

next_xjal

@AnyLogicInternalAPI
AgentExtension next_xjal()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future

setNext_xjal

@AnyLogicInternalAPI
void setNext_xjal​(AgentExtension next)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future

getAgent

Agent getAgent()
Returns the agent this extension belongs to
Returns:
the agent this extension belongs to

onDestroy

@AnyLogicInternalAPI
void onDestroy()
This method is called when the owner of this extension is destroyed.
Should be overridden when custom destroy is required.
Default implementation does nothing

supportsInterface_xjal

@AnyLogicInternalAPI
boolean supportsInterface_xjal​(java.lang.Class<?> itfs)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

priority

@AnyLogicInternalAPI
int priority()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
This function is used for sorting extensions (in order for the overriding delegation to work)
Returns:
int value, see also P_* constants

onExtensionRemoved

@AnyLogicInternalAPI
void onExtensionRemoved​(AgentExtension ext)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Callback invoked when some other agent extension is removed. Invoked for all extensions (including the removed one). Note that onDestroy() isn't called when extension is removed.
Parameters:
ext - the extension which has just been removed
How can we improve this article?