public class BusStop extends AbstractLaneBasedObject
BusStop pertains to only one such location. The bus stop
in reality is represented by a shared name over a few BusStop's, with different lines. As lines may also be set
dynamically, the name and lines are insufficient to identify a specific BusStop. Hence there is a fixed unique id per
BusStop.
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
BusStop(String id,
Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
String name,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
AbstractLaneBasedObject |
clone(CrossSectionElement newCSE,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation)
Clone the LaneBasedObject for e.g., copying a network.
|
boolean |
equals(Object obj) |
Set<Conflict> |
getConflicts()
Returns the downstream conflicts of the bus stop.
|
nl.tudelft.simulation.immutablecollections.ImmutableSet<String> |
getLines()
Returns the lines set.
|
int |
hashCode() |
void |
setLines(Set<String> lines)
Sets the lines.
|
String |
toString() |
clone, getDirection, getFullId, getLane, getLocation, getLongitudinalPositiongetBounds, getGeometry, getHeight, getIdaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBounds, makeGeometrypublic BusStop(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, String name, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) throws org.opentrafficsim.core.network.NetworkException
id - idlane - lanelongitudinalPosition - positionname - name of stopsimulator - the simulator to schedule onorg.opentrafficsim.core.network.NetworkException - when the position on the lane is out of boundspublic final void setLines(Set<String> lines)
lines - lines that stop at this locationpublic final nl.tudelft.simulation.immutablecollections.ImmutableSet<String> getLines()
public final Set<Conflict> getConflicts()
public final String toString()
toString in class AbstractLaneBasedObjectpublic final AbstractLaneBasedObject clone(CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
clone in class AbstractLaneBasedObjectnewCSE - CrossSectionElement; the new cross section element to which the clone belongsnewSimulator - OTSSimulatorInterface; the new simulator for this networkanimation - boolean; whether to (re)create animation or notorg.opentrafficsim.core.network.NetworkException - in case the cloning failsCopyright © 2014–2018 Delft University of Technology. All rights reserved.