AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable

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

Method Summary

Modifier and TypeMethodDescription
booleancanConnectTo(RoadConnectionPoint otherConnectionPoint)
Returns possibility of connection the otherConnectionPoint to this RoadConnectionPoint
voidconnectTo(RoadConnectionPoint otherConnectionPoint)
Connects otherConnectionPoint to this RoadConnectionPoint
RoadConnectionPointcreateConnectedPoint(AbstractRoadConnectableElement parent)
Creates a new RoadConnectionPoint, connected to this RoadConnectionPoint
PointgetCentralPoint()
Returns the start point of direction segment
RoadConnectionPointgetConnectedPoint()
Returns connection point, if exists.
MarkupSegmentLinegetConnectionSegment()
Returns connection segment
MarkupSegmentLinegetDirectionSegment()
Returns direction segment
AbstractRoadConnectableElementgetOwner()
Returns AbstractRoadElement to which the created RoadConnectionPoint belongs to.
booleanisIncoming()
Returns incoming or outgoing direction of RoadConnectionPoint

Methods inherited from class java.lang.Object

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

Method Details

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