AnyLogic AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.markup.RoadConnectionPoint
All Implemented Interfaces:
java.io.Serializable

@AnyLogicInternalAPI
public class RoadConnectionPoint
extends java.lang.Object
implements java.io.Serializable
RoadConnectionPoint
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Method Summary

All Methods Instance Methods Concrete Methods 
boolean canConnectTo​(RoadConnectionPoint otherConnectionPoint)
Returns possibility of connection the otherConnectionPoint to this RoadConnectionPoint
void connectTo​(RoadConnectionPoint otherConnectionPoint)
Connects otherConnectionPoint to this RoadConnectionPoint
RoadConnectionPoint createConnectedPoint​(AbstractRoadConnectableElement parent)
Creates a new RoadConnectionPoint, connected to this RoadConnectionPoint
Point getCentralPoint()
Returns the start point of direction segment
RoadConnectionPoint getConnectedPoint()
Returns connection point, if exists.
MarkupSegmentLine getConnectionSegment()
Returns connection segment
MarkupSegmentLine getDirectionSegment()
Returns direction segment
AbstractRoadConnectableElement getOwner()
Returns AbstractRoadElement to which the created RoadConnectionPoint belongs to.
boolean isIncoming()
Returns incoming or outgoing direction of RoadConnectionPoint
Modifier and Type Method Description

Methods inherited from class java.lang.Object

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

Method Detail

getConnectionSegment

public MarkupSegmentLine getConnectionSegment()
Returns connection segment
Returns:
MarkupSegmentLine

getDirectionSegment

public MarkupSegmentLine getDirectionSegment()
Returns direction segment
Returns:
MarkupSegmentLine

getOwner

public AbstractRoadConnectableElement getOwner()
Returns AbstractRoadElement to which the created RoadConnectionPoint belongs to.
Returns:
AbstractRoadElement to which the created RoadConnectionPoint belongs to.

getConnectedPoint

public RoadConnectionPoint getConnectedPoint()
Returns connection point, if exists.
Returns:
connection point or null

isIncoming

public boolean isIncoming()
Returns incoming or outgoing direction of RoadConnectionPoint
Returns:
incoming or outgoing direction of RoadConnectionPoint

getCentralPoint

public Point getCentralPoint()
Returns the start point of direction segment
Returns:
the start point of direction segment

connectTo

public void connectTo​(RoadConnectionPoint otherConnectionPoint)
Connects otherConnectionPoint to this RoadConnectionPoint
Parameters:
otherConnectionPoint -

canConnectTo

public boolean canConnectTo​(RoadConnectionPoint otherConnectionPoint)
Returns possibility of connection the otherConnectionPoint to this RoadConnectionPoint
Parameters:
otherConnectionPoint - RoadConnectionPoint
Returns:
possibility of connection the otherConnectionPoint to this RoadConnectionPoint

createConnectedPoint

public RoadConnectionPoint createConnectedPoint​(AbstractRoadConnectableElement parent)
Creates a new RoadConnectionPoint, connected to this RoadConnectionPoint
Parameters:
parent - AbstractRoadElement, parent to the new RoadConnectionPoint
Returns:
new RoadConnectionPoint, connected to this RoadConnectionPoint
How can we improve this article?