Package com.anylogic.engine.markup
- 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
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MarkupSegmentLine getConnectionSegment()
Returns connection segment
- Returns:
- MarkupSegmentLine
public MarkupSegmentLine getDirectionSegment()
Returns direction segment
- Returns:
- MarkupSegmentLine
public AbstractRoadConnectableElement getOwner()
Returns AbstractRoadElement to which the created RoadConnectionPoint belongs to.
- Returns:
- AbstractRoadElement to which the created RoadConnectionPoint belongs to.
public RoadConnectionPoint getConnectedPoint()
Returns connection point, if exists.
- Returns:
- connection point or null
public boolean isIncoming()
Returns incoming or outgoing direction of RoadConnectionPoint
- Returns:
- incoming or outgoing direction of RoadConnectionPoint
public Point getCentralPoint()
Returns the start point of direction segment
- Returns:
- the start point of direction segment
public void connectTo(RoadConnectionPoint otherConnectionPoint)
Connects otherConnectionPoint to this RoadConnectionPoint
- Parameters:
otherConnectionPoint
-
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
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?
-