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

Method Summary

Modifier and TypeMethodDescription
voidaddAgent(Agent a) 
voidaddMovingAgent(com.anylogic.engine.AgentMovement amd) 
AbstractShapeGISMapgetGISMap()
In case of GIS space, returns AbstractShapeGISMap object
voidremoveAgent(Agent a) 
booleanremoveMovingAgent(com.anylogic.engine.AgentMovement amd) 
voidsetupSpace(AbstractShapeGISMap gisMap)
Sets the space to be based on given gisMap.

Methods inherited from interface com.anylogic.engine.AgentExtension

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

Method Details

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