class RoadPolyline extends MapPolyline implements RoadSegment {

	@Override
	@Pure
	public boolean isConnectedTo(RoadSegment otherSegment) {
		final RoadConnection startPoint = getBeginPoint(StandardRoadConnection.class);
		final RoadConnection endPoint = getEndPoint(StandardRoadConnection.class);
		if (otherSegment != this) {
			if (startPoint != null && startPoint.isConnectedSegment(otherSegment)) {
				return true;
			}
			if (endPoint != null && endPoint.isConnectedSegment(otherSegment)) {
				return true;
			}
		} else if (startPoint != null && startPoint.equals(endPoint)) {
			return true;
		}
		return false;
	}

	public  RoadPolyline();
	public  RoadPolyline(AttributeCollection attributeProvider);
	public  RoadPolyline(UUID id);
	public  RoadPolyline(UUID id, AttributeCollection attributeProvider);

}