public class MovableBridge extends FixedBridge implements OperatedObstacle
Copyright (c) 2013-2019 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(DEVSSimulatorInterface.TimeDoubleUnit simulator,
String name,
Waterway waterway,
Length distance,
int operationHoursPerDay,
int operationDaysPerWeek,
Length maxHeightClosed,
Length maxHeightOpened) |
MovableBridge(DEVSSimulatorInterface.TimeDoubleUnit simulator,
String name,
WaterwayLocation waterwayLocation,
int operationHoursPerDay,
int operationDaysPerWeek,
Length maxHeightClosed,
Length maxHeightOpened) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
drawOpeningDelay() |
Duration |
estimateOpeningDelay() |
Length |
getMaxHeightClosed() |
Length |
getMaxHeightOpened() |
int |
getOperationDaysPerWeek() |
int |
getOperationHoursPerDay() |
DEVSSimulatorInterface.TimeDoubleUnit |
getSimulator() |
String |
toString() |
getMaxHeightgetWaterwayLocationgetNamegetBounds, getLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCoordinate, getOTSPoint3D, getPoint3dpublic MovableBridge(DEVSSimulatorInterface.TimeDoubleUnit simulator, String name, WaterwayLocation waterwayLocation, int operationHoursPerDay, int operationDaysPerWeek, Length maxHeightClosed, Length maxHeightOpened)
simulator - DEVSSimulatorInterface.TimeDoubleUnit; the simulator to schedule onname - String; the name of the bridgewaterwayLocation - WaterwayLocation; the location along a waterwayoperationHoursPerDay - int; hours per day operatedoperationDaysPerWeek - int; days per week operatedmaxHeightClosed - Length; max height when bridge is closedmaxHeightOpened - Length; max height when bridge is openedpublic MovableBridge(DEVSSimulatorInterface.TimeDoubleUnit simulator, String name, Waterway waterway, Length distance, int operationHoursPerDay, int operationDaysPerWeek, Length maxHeightClosed, Length maxHeightOpened)
simulator - DEVSSimulatorInterface.TimeDoubleUnit; the simulator to schedule onname - String; the name of the bridgewaterway - Waterway; the waterwaydistance - Length; the distance along the waterway in the design directionoperationHoursPerDay - int; hours per day operatedoperationDaysPerWeek - int; days per week operatedmaxHeightClosed - Length; max height when bridge is closedmaxHeightOpened - Length; max height when bridge is openedpublic final Duration estimateOpeningDelay()
public final Duration drawOpeningDelay()
public final int getOperationHoursPerDay()
getOperationHoursPerDay in interface Operatedpublic final int getOperationDaysPerWeek()
getOperationDaysPerWeek in interface Operatedpublic final Length getMaxHeightClosed()
public final Length getMaxHeightOpened()
public final DEVSSimulatorInterface.TimeDoubleUnit getSimulator()
getSimulator in interface Dynamicpublic String toString()
toString in class FixedBridgeCopyright © 2014–2019 Delft University of Technology. All rights reserved.