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)

Nested Class Summary

Modifier and TypeInterfaceDescription
static interface ExtSpace.SpaceAgentIterable 

Field Summary

Method Summary

Modifier and TypeMethodDescription
voidaddAgent(Agent a) 
voidaddMovingAgent(com.anylogic.engine.AgentMovement amd) 
ExtSpace.SpaceAgentIterableagents() 
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 space is empty.
Parameters:
gisMap - the GIS map to use in this space, 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

agents

@AnyLogicInternalAPI
ExtSpace.SpaceAgentIterable agents()