public class MovableBridge extends FixedBridge implements OperatedObstacle
Copyright (c) 2013-2018 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, 2016Constructor 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() |
getMaxHeight
getWaterwayLocation
getName
getBounds, getLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCoordinate, getOTSPoint3D, getPoint3d
public MovableBridge(DEVSSimulatorInterface.TimeDoubleUnit simulator, String name, WaterwayLocation waterwayLocation, int operationHoursPerDay, int operationDaysPerWeek, Length maxHeightClosed, 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(DEVSSimulatorInterface.TimeDoubleUnit simulator, String name, Waterway waterway, Length distance, int operationHoursPerDay, int operationDaysPerWeek, Length maxHeightClosed, 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 Duration estimateOpeningDelay()
public final Duration drawOpeningDelay()
public final int getOperationHoursPerDay()
getOperationHoursPerDay
in interface Operated
public final int getOperationDaysPerWeek()
getOperationDaysPerWeek
in interface Operated
public final Length getMaxHeightClosed()
public final Length getMaxHeightOpened()
public final DEVSSimulatorInterface.TimeDoubleUnit getSimulator()
getSimulator
in interface Dynamic
public String toString()
toString
in class FixedBridge
Copyright © 2014–2018 Delft University of Technology. All rights reserved.