@AnyLogicInternalAPI public class RoadConnectionPoint extends java.lang.Object implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
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
|
public MarkupSegmentLine getConnectionSegment()
public MarkupSegmentLine getDirectionSegment()
public AbstractRoadConnectableElement getOwner()
public RoadConnectionPoint getConnectedPoint()
public boolean isIncoming()
public Point getCentralPoint()
public void connectTo(RoadConnectionPoint otherConnectionPoint)
otherConnectionPoint
- public boolean canConnectTo(RoadConnectionPoint otherConnectionPoint)
otherConnectionPoint
- RoadConnectionPointpublic RoadConnectionPoint createConnectedPoint(AbstractRoadConnectableElement parent)
parent
- AbstractRoadElement, parent to the new RoadConnectionPointCopyright © AnyLogic North America, LLC. All Rights Reserved.