Class PerceivedBusStop
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObjectBase
org.opentrafficsim.road.gtu.lane.perception.object.PerceivedLaneBasedObjectBase
org.opentrafficsim.road.gtu.lane.perception.object.PerceivedBusStop
- All Implemented Interfaces:
Comparable<PerceivedObject>,Identifiable,PerceivedLaneBasedObject,PerceivedObject
Perceived bus stop.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObject
PerceivedObject.Kinematics, PerceivedObject.ObjectType -
Constructor Summary
ConstructorsConstructorDescriptionPerceivedBusStop(BusStop busStop, Length distance, RelativeLane relativeLane, Set<String> conflictIds, Lane lane) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns conflict ids.final ImmutableSet<String>getLines()Returns lines.final RelativeLaneReturns relative lane.final StringtoString()Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.object.PerceivedLaneBasedObjectBase
equals, getLane, hashCodeMethods inherited from class org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObjectBase
getId, getKinematics, getLength, getObjectTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.object.PerceivedObject
compareTo, getAcceleration, getDistance, getKinematics, getLength, getObjectType, getSpeed
-
Constructor Details
-
PerceivedBusStop
public PerceivedBusStop(BusStop busStop, Length distance, RelativeLane relativeLane, Set<String> conflictIds, Lane lane) throws GtuException Constructor.- Parameters:
busStop- bus stopdistance- distancerelativeLane- relative laneconflictIds- conflicts downstream of the bus stoplane- lane- Throws:
GtuException- when id is null, or parameters are inconsistent
-
-
Method Details
-
getRelativeLane
Returns relative lane.- Returns:
- relativeLane.
-
getLines
Returns lines.- Returns:
- lines.
-
getConflictIds
Returns conflict ids.- Returns:
- conflictIds.
-
toString
Description copied from class:PerceivedLaneBasedObjectBase- Overrides:
toStringin classPerceivedLaneBasedObjectBase
-