org.osm2world.core.world.modules.common
public abstract class BridgeOrTunnel extends Object implements WaySegmentWorldObject
Modifier and Type | Field and Description |
---|---|
protected AbstractNetworkWaySegmentWorldObject |
primaryRep |
protected MapWaySegment |
segment |
Constructor and Description |
---|
BridgeOrTunnel(MapWaySegment segment,
AbstractNetworkWaySegmentWorldObject primaryRepresentation) |
Modifier and Type | Method and Description |
---|---|
void |
defineEleConstraints(EleConstraintEnforcer enforcer)
lets this object add constraints for the relative elevations of its
EleConnector s. |
Iterable<EleConnector> |
getEleConnectors()
returns all
EleConnector s used by this WorldObject |
VectorXZ |
getEndPosition()
returns the end position.
|
MapWaySegment |
getPrimaryMapElement()
returns the "primary"
MapElement for this WorldObject;
i.e. |
VectorXZ |
getStartPosition()
returns the start position.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGroundState
protected final MapWaySegment segment
protected final AbstractNetworkWaySegmentWorldObject primaryRep
public BridgeOrTunnel(MapWaySegment segment, AbstractNetworkWaySegmentWorldObject primaryRepresentation)
public MapWaySegment getPrimaryMapElement()
WorldObject
MapElement
for this WorldObject;
i.e. the one it is most strongly associated with.
Can be null if there is no (clear) primary element for this feature.getPrimaryMapElement
in interface WaySegmentWorldObject
getPrimaryMapElement
in interface WorldObject
public VectorXZ getEndPosition()
WaySegmentWorldObject
WaySegmentWorldObject.getStartPosition()
for details.getEndPosition
in interface WaySegmentWorldObject
public VectorXZ getStartPosition()
WaySegmentWorldObject
MapWaySegment
's start position;
as node features such as crossings require space, too.getStartPosition
in interface WaySegmentWorldObject
public Iterable<EleConnector> getEleConnectors()
WorldObject
EleConnector
s used by this WorldObjectgetEleConnectors
in interface WorldObject
public void defineEleConstraints(EleConstraintEnforcer enforcer)
WorldObject
EleConnector
s. Called after WorldObject.getEleConnectors()
.defineEleConstraints
in interface WorldObject
public String toString()
toString
in class Object