AnyLogic
Expand
Font size
All Superinterfaces:
AgentExtension, ExtEnvironmentInteractive, ExtEnvironmentWithMetrics, ExtWithSpaceType, Serializable

public interface ExtEnvironmentGIS
extends ExtEnvironmentInteractive, ExtEnvironmentWithMetrics, ExtWithSpaceType
Agent environment extension for continuous 2D space based on GIS map
Author:
AnyLogic North America, LLC https://anylogic.com

Field Summary

Method Summary

Modifier and TypeMethodDescription
AbstractShapeGISMapgetGISMap()
Deprecated.
doublegetNetworkConnectionRange()
Returns the range of agent connections, it is measured in meters.
voidsetNetworkAllInRange(double connectionRange)
Sets network type to the one when agents are connected if the distance between them is not longer that a given one.
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

Methods inherited from interface com.anylogic.engine.ExtEnvironmentWithMetrics

connectAllInRange_xjal

Method Details

setupSpace

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

@Deprecated
AbstractShapeGISMap getGISMap()
Deprecated.
Returns AbstractShapeGISMap object used in this environment
Returns:
GIS map object used in this environment
Note, that returned object has the base GIS map type and for additional services it needs to be casted to ShapeGISMap

setNetworkAllInRange

void setNetworkAllInRange(double connectionRange)
Sets network type to the one when agents are connected if the distance between them is not longer that a given one. This network type is only possible in continuous space. Call applyNetwork() to actually create network connections.
Specified by:
setNetworkAllInRange in interface ExtEnvironmentWithMetrics
Parameters:
connectionRange - the maximum distance between connected agents, measured in meters

getNetworkConnectionRange

double getNetworkConnectionRange()
Returns the range of agent connections, it is measured in meters. Applies to "all in range" network.
Specified by:
getNetworkConnectionRange in interface ExtEnvironmentWithMetrics
Returns:
the range of agent connections, measured in meters