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() |
getWaterwayLocationgetNamegetBounds, getLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCoordinate, getOTSPoint3D, getPoint3dpublic 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 Operatedpublic final int getOperationDaysPerWeek()
getOperationDaysPerWeek in interface Operatedpublic 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 DynamicCopyright © 2014–2017 Delft University of Technology. All rights reserved.