AnyLogic
Expand
Font size
All Known Subinterfaces:
DensityMapCompatibleNode, DensityMapCompatiblePath
All Known Implementing Classes:
AreaNode, ConveyorCustomStation, ConveyorNode, ConveyorPath, ConveyorPointNode, ConveyorPortImpl, ConveyorSimpleStation, ConveyorSpur, ConveyorTransferTable, ConveyorTransitionalNode, ConveyorTurnStation, ConveyorTurntable, NetworkPortImpl, Node, Path, PointNode, PolygonalNode, QueueArea, RailwaySwitch, RailwayTrack, RectangularNode

@AnyLogicInternalLibraryAPI
public interface DensityMapCompatibleNetworkElement

Nested Class Summary

Modifier and TypeInterfaceDescription
static final record DensityMapCompatibleNetworkElement.NDimensionalSpatialMetric 

Method Summary

Modifier and TypeMethodDescription
DensityMapCompatibleNetworkgetDensityMapCompatibleNetwork()
Returns density map compatible network where this network element is located
DensityMapCompatibleNetworkElement.NDimensionalSpatialMetricgetDensitySpatialMetric(AreaUnits units)
Returns n-dimensional space metric (0 - 1.0, 1 - length, 2 - area, 3 - volume).
voidsetDensityMapColor(Paint color)
Sets the network element's density map color.

Method Details

getDensitySpatialMetric

DensityMapCompatibleNetworkElement.NDimensionalSpatialMetric getDensitySpatialMetric(AreaUnits units)
Returns n-dimensional space metric (0 - 1.0, 1 - length, 2 - area, 3 - volume).
Parameters:
units -
Returns:
n-dimensional space metric (0 - 1.0, 1 - length, 2 - area, 3 - volume).

setDensityMapColor

void setDensityMapColor(Paint color)
Sets the network element's density map color.
Parameters:
color -

getDensityMapCompatibleNetwork

DensityMapCompatibleNetwork getDensityMapCompatibleNetwork()
Returns density map compatible network where this network element is located
Returns:
network