AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
IGeographicSearchEntry, AggregatableAnimationElement, AnimationStaticLocationProvider, INetworkMarkupElement, INode<GISNode,​GISRoute>, SVGElement, java.io.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

All Methods Instance Methods Concrete Methods 
void addConnection​(GISRoute path, PathEndType type)  
java.lang.Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
GISRoute getConnection​(int index)
Returns connection of this node with another node by index.
int getConnectionsCount()
Amount of the node's connections to other nodes.
java.awt.Color getFillColor()
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)
Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
java.lang.String getTitle()
Returns the title of this geographic place
double getTransferDistance​(GISRoute path1, GISRoute path2)  
Position getTransferPositionByPercent​(GISRoute path1, GISRoute path2, double percent, Position out)  
void setFillColor​(java.awt.Paint color)
Sets the fill color (or Texture) of the shape.
void setTitle​(java.lang.String title)
Sets the title of this geographic place
Modifier and Type Method Description

Methods inherited from class com.anylogic.engine.markup.GISMarkupElement

createOMGraphicObject, discardOwner, error, getFromOMGraphic, getLineColor, getLineStyle, getLineTexture, getLineWidth, getNetwork, getOmGraphic, getSpace, initialize, onAggregatorVisibilityChanged, remove, setLineColor, setLineStyle, setLineWidth, setOwner, setVisible

Methods inherited from class com.anylogic.engine.markup.AbstractMarkup

executeUserAction, findSVGElement, getDrawMode, getName, getSVGId, initializeInternal, isPublic, isVisible, onAggregatorInitialized, removeSVGFromOwner, resetSVGState, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties

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 Detail

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 java.awt.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​(java.awt.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 java.lang.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​(java.lang.String title)
Sets the title of this geographic place
Parameters:
title - information about this geographic place

getCompatibleAgentExtensionClass

@AnyLogicInternalAPI
public final java.lang.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>
How can we improve this article?