AnyLogic
Expand
Font size
All Superinterfaces:
AgentExtension, ExtEnvironmentInteractive, Serializable
All Known Subinterfaces:
ExtEnvironmentContinuous, ExtEnvironmentGIS

public interface ExtEnvironmentWithMetrics
extends ExtEnvironmentInteractive

Field Summary

Method Summary

Modifier and TypeMethodDescription
voidconnectAllInRange_xjal() 
doublegetNetworkConnectionRange()
Returns the range of agent connections.
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.

Methods inherited from interface com.anylogic.engine.AgentExtension

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

Method Details

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.
Parameters:
connectionRange - the maximum distance between connected agents

getNetworkConnectionRange

double getNetworkConnectionRange()
Returns the range of agent connections. Applies to "all in range" network.
Returns:
the range of agent connections

connectAllInRange_xjal

@AnyLogicInternalAPI
void connectAllInRange_xjal()