Class HeadwayBusStop
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadway
org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadwayCopy
org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadwayLaneBasedObject
org.opentrafficsim.road.gtu.lane.perception.headway.HeadwayBusStop
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Headway>
,Identifiable
,PerceivedObject
,Headway
,HeadwayLaneBasedObject
public class HeadwayBusStop extends AbstractHeadwayLaneBasedObject
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 27 jan. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.perception.headway.Headway
Headway.ObjectType
-
Constructor Summary
Constructors Constructor Description HeadwayBusStop(BusStop busStop, Length distance, RelativeLane relativeLane, java.util.Set<java.lang.String> conflictIds, Lane lane)
-
Method Summary
Modifier and Type Method Description java.util.Set<java.lang.String>
getConflictIds()
ImmutableSet<java.lang.String>
getLines()
RelativeLane
getRelativeLane()
java.lang.String
toString()
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadwayLaneBasedObject
getLane
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadwayCopy
equals, getAcceleration, getId, getLength, getObjectType, getSpeed, hashCode
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.headway.AbstractHeadway
getDistance, getOverlap, getOverlapFront, getOverlapRear, isAhead, isBehind, isParallel
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opentrafficsim.road.gtu.lane.perception.headway.Headway
compareTo, getAcceleration, getDistance, getId, getLength, getObjectType, getOverlap, getOverlapFront, getOverlapRear, getSpeed, isAhead, isBehind, isParallel
-
Constructor Details
-
HeadwayBusStop
public HeadwayBusStop(BusStop busStop, Length distance, RelativeLane relativeLane, java.util.Set<java.lang.String> conflictIds, Lane lane) throws GTUException- Parameters:
busStop
- BusStop; bus stopdistance
- Length; distancerelativeLane
- RelativeLane; relative laneconflictIds
- Set<String>; conflicts downstream of the bus stoplane
- Lane; lane- Throws:
GTUException
- when id is null, or parameters are inconsistent
-
-
Method Details
-
getRelativeLane
- Returns:
- relativeLane.
-
getLines
- Returns:
- lines.
-
getConflictIds
public final java.util.Set<java.lang.String> getConflictIds()- Returns:
- conflictIds.
-
toString
public final java.lang.String toString()- Overrides:
toString
in classAbstractHeadway
-