public class SpeedSign extends AbstractLaneBasedObject
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
SpeedSign(String id,
Lane lane,
org.opentrafficsim.core.network.LongitudinalDirectionality direction,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator,
org.djunits.value.vdouble.scalar.Speed speed)
Speed sign active all day for all GTU types.
|
SpeedSign(String id,
Lane lane,
org.opentrafficsim.core.network.LongitudinalDirectionality direction,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Duration startTimeOfDay,
org.djunits.value.vdouble.scalar.Duration endTimeOfDay)
Speed sign for all GTU types.
|
SpeedSign(String id,
Lane lane,
org.opentrafficsim.core.network.LongitudinalDirectionality direction,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator,
org.djunits.value.vdouble.scalar.Speed speed,
org.opentrafficsim.core.gtu.GTUType gtuType)
Speed sign active all day.
|
SpeedSign(String id,
Lane lane,
org.opentrafficsim.core.network.LongitudinalDirectionality direction,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator,
org.djunits.value.vdouble.scalar.Speed speed,
org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Duration startTimeOfDay,
org.djunits.value.vdouble.scalar.Duration endTimeOfDay)
Speed sign.
|
| 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) |
org.djunits.value.vdouble.scalar.Speed |
getSpeed()
Returns the speed.
|
int |
hashCode() |
boolean |
isActive(org.opentrafficsim.core.gtu.GTUType gtuTypeIn,
org.djunits.value.vdouble.scalar.Duration time)
Return whether this speed limit is currently active.
|
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 SpeedSign(String id, Lane lane, org.opentrafficsim.core.network.LongitudinalDirectionality direction, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.core.gtu.GTUType gtuType, org.djunits.value.vdouble.scalar.Duration startTimeOfDay, org.djunits.value.vdouble.scalar.Duration endTimeOfDay) throws org.opentrafficsim.core.network.NetworkException
id - idlane - lanedirection - directionlongitudinalPosition - longitudinal positionsimulator - simulatorspeed - speedgtuType - GTU typestartTimeOfDay - start time-of-dayendTimeOfDay - end time-of-dayorg.opentrafficsim.core.network.NetworkException - when the position on the lane is out of boundspublic SpeedSign(String id, Lane lane, org.opentrafficsim.core.network.LongitudinalDirectionality direction, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, org.djunits.value.vdouble.scalar.Speed speed, org.opentrafficsim.core.gtu.GTUType gtuType) throws org.opentrafficsim.core.network.NetworkException
id - idlane - lanedirection - directionlongitudinalPosition - longitudinal positionsimulator - simulatorspeed - speedgtuType - GTU typeorg.opentrafficsim.core.network.NetworkException - when the position on the lane is out of boundspublic SpeedSign(String id, Lane lane, org.opentrafficsim.core.network.LongitudinalDirectionality direction, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Duration startTimeOfDay, org.djunits.value.vdouble.scalar.Duration endTimeOfDay) throws org.opentrafficsim.core.network.NetworkException
id - idlane - lanedirection - directionlongitudinalPosition - longitudinal positionsimulator - simulatorspeed - speedstartTimeOfDay - start time-of-dayendTimeOfDay - end time-of-dayorg.opentrafficsim.core.network.NetworkException - when the position on the lane is out of boundspublic SpeedSign(String id, Lane lane, org.opentrafficsim.core.network.LongitudinalDirectionality direction, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, org.djunits.value.vdouble.scalar.Speed speed) throws org.opentrafficsim.core.network.NetworkException
id - idlane - lanedirection - directionlongitudinalPosition - longitudinal positionsimulator - simulatorspeed - speedorg.opentrafficsim.core.network.NetworkException - when the position on the lane is out of boundspublic boolean isActive(org.opentrafficsim.core.gtu.GTUType gtuTypeIn,
org.djunits.value.vdouble.scalar.Duration time)
gtuTypeIn - GTU typetime - current time-of-daypublic org.djunits.value.vdouble.scalar.Speed getSpeed()
public 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 failspublic String toString()
toString in class AbstractLaneBasedObjectCopyright © 2014–2017 Delft University of Technology. All rights reserved.