Package com.anylogic.engine.markup
          
          
- java.lang.Object
- com.anylogic.engine.markup.RoadConnectionPoint
- 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
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | canConnectTo | Returns possibility of connection the otherConnectionPoint to this RoadConnectionPoint | 
| void | connectTo | Connects otherConnectionPoint to this RoadConnectionPoint | 
| RoadConnectionPoint | createConnectedPoint | 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()
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