Package com.anylogic.engine
- 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)
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
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 |
---|
getAgent, next_xjal, onDestroy, onExtensionRemoved, priority, setNext_xjal, supportsInterface_xjal
@AnyLogicInternalAPI void addAgent(Agent a)
@AnyLogicInternalAPI void removeAgent(Agent a)
@AnyLogicInternalAPI void addMovingAgent(com.anylogic.engine.AgentMovement amd)
@AnyLogicInternalAPI boolean removeMovingAgent(com.anylogic.engine.AgentMovement amd)
@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 benull
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 toShapeGISMap
-
How can we improve this article?
-