Class ExtendedCrossSectionLink
java.lang.Object
org.djutils.event.EventProducer
org.opentrafficsim.core.network.OTSLink
org.opentrafficsim.road.network.lane.CrossSectionLink
org.opentrafficsim.road.network.factory.nwb.ExtendedCrossSectionLink
- All Implemented Interfaces:
Serializable,Locatable,EventProducerInterface,Identifiable,Drawable,Link
public class ExtendedCrossSectionLink extends CrossSectionLink
Augmented cross section link object.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 15 may 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opentrafficsim.road.network.lane.CrossSectionLink
CrossSectionLink.Priority -
Field Summary
Fields inherited from class org.opentrafficsim.road.network.lane.CrossSectionLink
LANE_ADD_EVENT, LANE_REMOVE_EVENTFields inherited from interface org.djutils.event.EventProducerInterface
FIRST_POSITION, LAST_POSITIONFields inherited from interface org.opentrafficsim.core.network.Link
GTU_ADD_EVENT, GTU_REMOVE_EVENT -
Constructor Summary
Constructors Constructor Description ExtendedCrossSectionLink(RoadNetwork network, String id, OTSRoadNode startNode, OTSRoadNode endNode, LinkType linkType, OTSLine3D designLine, OTSSimulatorInterface simulator, LaneKeepingPolicy laneKeepingPolicy)Construction of a cross section link with some extra data. -
Method Summary
Modifier and Type Method Description voidaddFeature(String key, Feature feature)Add a feature.Map<String,Feature>getFeatures()Retrieve the feature map.Methods inherited from class org.opentrafficsim.road.network.lane.CrossSectionLink
addCrossSectionElement, clearDemandWeight, clone, getCrossSectionElement, getCrossSectionElementList, getDemandWeight, getEndLine, getLaneKeepingPolicy, getLanes, getNetwork, getPriority, getStartLine, setDemandWeight, setPriority, toStringMethods inherited from class org.opentrafficsim.core.network.OTSLink
addGTU, equals, getBounds, getDesignLine, getDirectionality, getEndNode, getGTUCount, getGTUs, getId, getLength, getLinkType, getLocation, getSimulator, getSourceId, getStartNode, hashCode, removeGTUMethods inherited from class org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
-
Constructor Details
-
ExtendedCrossSectionLink
public ExtendedCrossSectionLink(RoadNetwork network, String id, OTSRoadNode startNode, OTSRoadNode endNode, LinkType linkType, OTSLine3D designLine, OTSSimulatorInterface simulator, LaneKeepingPolicy laneKeepingPolicy) throws NetworkExceptionConstruction of a cross section link with some extra data.- Parameters:
network- RoadNetwork; the networkid- String; the link id.startNode- OTSRoadNode; the start node (directional).endNode- OTSRoadNode; the end node (directional).linkType- LinkType; the link typedesignLine- OTSLine3D; the design line of the Linksimulator- OTSSimulatorInterface; the simulator on which events can be scheduledlaneKeepingPolicy- LaneKeepingPolicy; the policy to generally keep left, keep right, or keep lane- Throws:
NetworkException- if link already exists in the network, if name of the link is not unique, or if the start node or the end node of the link are not registered in the network.
-
-
Method Details
-
addFeature
Add a feature.- Parameters:
key- String; identifies the database / shape file from which this feature was retrievedfeature- Feature; the feature
-
getFeatures
Retrieve the feature map.- Returns:
- List<Feature>; the feature map
-