public class MovableBridge extends FixedBridge implements OperatedObstacle
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.
Based on software from the IDVV project, which is Copyright (c) 2013 Rijkswaterstaat - Dienst Water, Verkeer en Leefomgeving and licensed without restrictions to Delft University of Technology, including the right to sub-license sources and derived products to third parties.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 6, 2016| Constructor and Description |
|---|
MovableBridge(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
String name,
Waterway waterway,
org.djunits.value.vdouble.scalar.Length distance,
int operationHoursPerDay,
int operationDaysPerWeek,
org.djunits.value.vdouble.scalar.Length maxHeightClosed,
org.djunits.value.vdouble.scalar.Length maxHeightOpened) |
MovableBridge(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
String name,
WaterwayLocation waterwayLocation,
int operationHoursPerDay,
int operationDaysPerWeek,
org.djunits.value.vdouble.scalar.Length maxHeightClosed,
org.djunits.value.vdouble.scalar.Length maxHeightOpened) |
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.Duration |
drawOpeningDelay() |
org.djunits.value.vdouble.scalar.Duration |
estimateOpeningDelay() |
org.djunits.value.vdouble.scalar.Length |
getMaxHeightClosed() |
org.djunits.value.vdouble.scalar.Length |
getMaxHeightOpened() |
int |
getOperationDaysPerWeek() |
int |
getOperationHoursPerDay() |
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
getSimulator() |
String |
toString() |
getMaxHeightgetWaterwayLocationgetNamegetBounds, getLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCoordinate, getOTSPoint3D, getPoint3dpublic MovableBridge(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
String name,
WaterwayLocation waterwayLocation,
int operationHoursPerDay,
int operationDaysPerWeek,
org.djunits.value.vdouble.scalar.Length maxHeightClosed,
org.djunits.value.vdouble.scalar.Length maxHeightOpened)
simulator - the simulator to schedule onname - the name of the bridgewaterwayLocation - the location along a waterwayoperationHoursPerDay - hours per day operatedoperationDaysPerWeek - days per week operatedmaxHeightClosed - max height when bridge is closedmaxHeightOpened - max height when bridge is openedpublic MovableBridge(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
String name,
Waterway waterway,
org.djunits.value.vdouble.scalar.Length distance,
int operationHoursPerDay,
int operationDaysPerWeek,
org.djunits.value.vdouble.scalar.Length maxHeightClosed,
org.djunits.value.vdouble.scalar.Length maxHeightOpened)
simulator - the simulator to schedule onname - the name of the bridgewaterway - the waterwaydistance - the distance along the waterway in the design directionoperationHoursPerDay - hours per day operatedoperationDaysPerWeek - days per week operatedmaxHeightClosed - max height when bridge is closedmaxHeightOpened - max height when bridge is openedpublic final org.djunits.value.vdouble.scalar.Duration estimateOpeningDelay()
public final org.djunits.value.vdouble.scalar.Duration drawOpeningDelay()
public final int getOperationHoursPerDay()
getOperationHoursPerDay in interface Operatedpublic final int getOperationDaysPerWeek()
getOperationDaysPerWeek in interface Operatedpublic final org.djunits.value.vdouble.scalar.Length getMaxHeightClosed()
public final org.djunits.value.vdouble.scalar.Length getMaxHeightOpened()
public final org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface getSimulator()
getSimulator in interface Dynamicpublic String toString()
toString in class FixedBridgeCopyright © 2014–2017 Delft University of Technology. All rights reserved.