AnyLogic AnyLogic
Expand
Font size
All Superinterfaces:
AgentExtension, java.io.Serializable

public interface ExtSpace
extends AgentExtension
This extension:
  • Tracks moving agents (either straight movement or through network or on the GIS map)
  • Owns animator for agents created dynamically in flowcharts and for agents which jumped from their original space (implemented using replicated embedded object presentation shape)

Field Summary

Fields inherited from interface com.anylogic.engine.AgentExtension

P_AGENT_INTERACTIVE_DELEGATE, P_AGENT_WITH_SPATIAL_METRICS_DELEGATE, P_AGENT_WITH_SPECIFIC_SPACE, P_AGENT_WITH_SPECIFIC_SPACE_DELEGATE, P_ENTITY_DELEGATE, P_ENV_WITH_SPECIFIC_SPACE, P_ROOT, P_SPACE, P_USER_EXT

Method Summary

All Methods Instance Methods Abstract Methods 
void addAgent​(Agent a)  
void addMovingAgent​(com.anylogic.engine.AgentMovement amd)  
AbstractShapeGISMap getGISMap()
In case of GIS space, returns AbstractShapeGISMap object
void removeAgent​(Agent a)  
boolean removeMovingAgent​(com.anylogic.engine.AgentMovement amd)  
void setupSpace​(AbstractShapeGISMap gisMap)
Sets the space to be based on given gisMap.
Modifier and Type Method Description

Methods inherited from interface com.anylogic.engine.AgentExtension

getAgent, next_xjal, onDestroy, onExtensionRemoved, priority, setNext_xjal, supportsInterface_xjal

Method Detail

addAgent

@AnyLogicInternalAPI
void addAgent​(Agent a)

removeAgent

@AnyLogicInternalAPI
void removeAgent​(Agent a)

addMovingAgent

@AnyLogicInternalAPI
void addMovingAgent​(com.anylogic.engine.AgentMovement amd)

removeMovingAgent

@AnyLogicInternalAPI
boolean removeMovingAgent​(com.anylogic.engine.AgentMovement amd)

setupSpace

@AnyLogicInternalAPI
void setupSpace​(AbstractShapeGISMap gisMap)
Sets the space to be based on given gisMap. This method should only be called when the environment is empty.
Parameters:
gisMap - the GIS map to use in this environment, should not be null

getGISMap

AbstractShapeGISMap getGISMap()
In case of GIS space, returns AbstractShapeGISMap object
Returns:
GIS map object used in this GIS space or null for other space types
Note, that returned object has the base GIS map type and for additional services it needs to be casted to ShapeGISMap
How can we improve this article?