public abstract class GISNode extends GISMarkupElement implements INode<GISNode,GISRoute>, IGeographicSearchEntry
INode
for network in GIS space.Modifier and Type | Method and Description |
---|---|
void |
addConnection(GISRoute path,
PathEndType type) |
java.lang.Class<? extends ExtAgentWithSpatialMetrics> |
getCompatibleAgentExtensionClass()
This method is internal and shouldn't be called by user.
|
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
|
createOMGraphicObject, error, getFromOMGraphic, getLineColor, getLineStyle, getLineTexture, getLineWidth, getNetwork, getOmGraphic, getSpace, initialize, setLineColor, setLineStyle, setLineWidth, setOwner, setVisible
executeUserAction, findSVGElement, getDrawMode, getName, getSVGId, isVisible, resetSVGState, updateDynamicProperties, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLineColor, getLineTexture, getName, setLineColor
contains, getNearestPoint, getNetwork, getSpace, randomPointInside, randomPointInside, randomPointInside, randomPointInside
getPosition, getSpace
public void addConnection(GISRoute path, PathEndType type)
addConnection
in interface INode<GISNode,GISRoute>
public final int getConnectionsCount()
INode
getConnectionsCount
in interface INode<GISNode,GISRoute>
public final GISRoute getConnection(int index)
INode
getConnection
in interface INode<GISNode,GISRoute>
index
- the index of required connection in range (0
, this.getConnectionsCount() - 1
)com.anylogic.engine.markup.IPath
interfacepublic final double getTransferDistance(GISRoute path1, GISRoute path2)
getTransferDistance
in interface INode<GISNode,GISRoute>
public Position getTransferPositionByPercent(GISRoute path1, GISRoute path2, double percent, Position out)
getTransferPositionByPercent
in interface INode<GISNode,GISRoute>
public java.awt.Color getFillColor()
INode
null
if shape has no fill color or
has textured fill (in this case INode.getFillTexture()
should be used instead)getFillColor
in interface INode<GISNode,GISRoute>
public Texture getFillTexture()
INode
getFillTexture
in interface INode<GISNode,GISRoute>
public void setFillColor(java.awt.Paint color)
INode
Texture
) of the shape.setFillColor
in interface INode<GISNode,GISRoute>
public java.lang.String getTitle()
getTitle
in interface IGeographicSearchEntry
public void setTitle(java.lang.String title)
title
- information about this geographic place@AnyLogicInternalAPI public final java.lang.Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
INode
getCompatibleAgentExtensionClass
in interface INode<GISNode,GISRoute>
Copyright © AnyLogic North America, LLC. All Rights Reserved.