public class Lock extends Obstacle implements OperatedObstacle
Constructor and Description |
---|
Lock(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
String name,
WaterwayLocation waterwayLocation,
int numberChambers,
int operationHoursPerDay,
int operationDaysPerWeek,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length width,
boolean cargoPriority) |
Modifier and Type | Method and Description |
---|---|
org.djunits.value.vdouble.scalar.Duration |
drawLockageDelay() |
org.djunits.value.vdouble.scalar.Duration |
estimateLockageDelay() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
int |
getNumberChambers() |
int |
getOperationDaysPerWeek() |
int |
getOperationHoursPerDay() |
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
getSimulator() |
org.djunits.value.vdouble.scalar.Length |
getWidth() |
boolean |
isCargoPriority() |
String |
toString() |
getWaterwayLocation
getName
getBounds, getLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCoordinate, getOTSPoint3D, getPoint3d
public Lock(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, String name, WaterwayLocation waterwayLocation, int numberChambers, int operationHoursPerDay, int operationDaysPerWeek, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Length width, boolean cargoPriority)
simulator
- the simulator to schedule onname
- the name of the lockwaterwayLocation
- the location along the waterwaynumberChambers
- the number of lock chambersoperationHoursPerDay
- hours per dayoperationDaysPerWeek
- days per weeklength
- the lengthwidth
- the widthcargoPriority
- does cargo have priority?public final org.djunits.value.vdouble.scalar.Duration estimateLockageDelay()
public final org.djunits.value.vdouble.scalar.Duration drawLockageDelay()
public final int getOperationHoursPerDay()
getOperationHoursPerDay
in interface Operated
public final int getOperationDaysPerWeek()
getOperationDaysPerWeek
in interface Operated
public final org.djunits.value.vdouble.scalar.Length getLength()
public final org.djunits.value.vdouble.scalar.Length getWidth()
public final int getNumberChambers()
public final boolean isCargoPriority()
public final org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface getSimulator()
getSimulator
in interface Dynamic
Copyright © 2014–2017 Delft University of Technology. All rights reserved.