AnyLogic
Expand
Font size
All Implemented Interfaces:
IGeographicSearchEntry, AggregatableAnimationElement, AnimationStaticLocationProvider, INetworkMarkupElement, INode<GISNode,GISRoute>, SVGElement, Serializable
Direct Known Subclasses:
GISPoint, GISRegion

public abstract class GISNode
extends GISMarkupElement
implements INode<GISNode,GISRoute>, IGeographicSearchEntry
Implementation of INode for network in GIS space.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Method Summary

Modifier and TypeMethodDescription
voidaddConnection(GISRoute path, PathEndType type) 
final Class<? extends ExtAgentWithSpatialMetrics>getCompatibleAgentExtensionClass()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
final GISRoutegetConnection(int index)
Returns connection of this node with another node by index.
final intgetConnectionsCount()
Amount of the node's connections to other nodes.
ColorgetFillColor()
Returns the fill color of the shape, or null if shape has no fill color or has textured fill (in this case INode.getFillTexture() should be used instead)
TexturegetFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
StringgetTitle()
Returns the title of this geographic place
final doublegetTransferDistance(GISRoute path1, GISRoute path2) 
PositiongetTransferPositionByPercent(GISRoute path1, GISRoute path2, double percent, Position out) 
voidsetFillColor(Paint color)
Sets the fill color (or Texture) of the shape.
voidsetTitle(String title)
Sets the title of this geographic place

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement

postInitialize

Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider

getPosition, getSpace

Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement

contains, getNearestPoint, getNetwork, getSpace, randomPointInside, randomPointInside, randomPointInside, randomPointInside

Methods inherited from interface com.anylogic.engine.markup.INode

getLineColor, getLineTexture, getName, setLineColor

Method Details

addConnection

public void addConnection(GISRoute path,
 PathEndType type)
Specified by:
addConnection in interface INode<GISNode,GISRoute>

getConnectionsCount

public final int getConnectionsCount()
Description copied from interface: INode
Amount of the node's connections to other nodes.
Specified by:
getConnectionsCount in interface INode<GISNode,GISRoute>
Returns:
number of connections

getConnection

public final GISRoute getConnection(int index)
Description copied from interface: INode
Returns connection of this node with another node by index.
Specified by:
getConnection in interface INode<GISNode,GISRoute>
Parameters:
index - the index of required connection in range (0, this.getConnectionsCount() - 1)
Returns:
instance of com.anylogic.engine.markup.IPath interface

getTransferDistance

public final double getTransferDistance(GISRoute path1,
 GISRoute path2)
Specified by:
getTransferDistance in interface INode<GISNode,GISRoute>

getTransferPositionByPercent

public Position getTransferPositionByPercent(GISRoute path1,
 GISRoute path2,
 double percent,
 Position out)
Specified by:
getTransferPositionByPercent in interface INode<GISNode,GISRoute>

getFillColor

public Color getFillColor()
Description copied from interface: INode
Returns the fill color of the shape, or null if shape has no fill color or has textured fill (in this case INode.getFillTexture() should be used instead)
Specified by:
getFillColor in interface INode<GISNode,GISRoute>
Returns:
the fill color of the shape

getFillTexture

public Texture getFillTexture()
Description copied from interface: INode
Returns the fill texture of the shape, if the shape has fill texture
Specified by:
getFillTexture in interface INode<GISNode,GISRoute>
Returns:
the fill texture of the shape

setFillColor

public void setFillColor(Paint color)
Description copied from interface: INode
Sets the fill color (or Texture) of the shape.
Specified by:
setFillColor in interface INode<GISNode,GISRoute>

getTitle

public String getTitle()
Returns the title of this geographic place
Specified by:
getTitle in interface IGeographicSearchEntry
Returns:
information about this geographic place.

setTitle

public void setTitle(String title)
Sets the title of this geographic place
Parameters:
title - information about this geographic place

getCompatibleAgentExtensionClass

@AnyLogicInternalAPI
public final Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
Description copied from interface: INode
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Specified by:
getCompatibleAgentExtensionClass in interface INode<GISNode,GISRoute>