public class Lock extends Obstacle implements OperatedObstacle
| Constructor and Description |
|---|
Lock(DEVSSimulatorInterface.TimeDoubleUnit simulator,
String name,
WaterwayLocation waterwayLocation,
int numberChambers,
int operationHoursPerDay,
int operationDaysPerWeek,
Length length,
Length width,
boolean cargoPriority) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
drawLockageDelay() |
Duration |
estimateLockageDelay() |
Length |
getLength() |
int |
getNumberChambers() |
int |
getOperationDaysPerWeek() |
int |
getOperationHoursPerDay() |
DEVSSimulatorInterface.TimeDoubleUnit |
getSimulator() |
Length |
getWidth() |
boolean |
isCargoPriority() |
String |
toString() |
getWaterwayLocationgetNamegetBounds, getLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCoordinate, getOTSPoint3D, getPoint3dpublic Lock(DEVSSimulatorInterface.TimeDoubleUnit simulator, String name, WaterwayLocation waterwayLocation, int numberChambers, int operationHoursPerDay, int operationDaysPerWeek, Length length, Length width, boolean cargoPriority)
simulator - DEVSSimulatorInterface.TimeDoubleUnit; the simulator to schedule onname - String; the name of the lockwaterwayLocation - WaterwayLocation; the location along the waterwaynumberChambers - int; the number of lock chambersoperationHoursPerDay - int; hours per dayoperationDaysPerWeek - int; days per weeklength - Length; the lengthwidth - Length; the widthcargoPriority - boolean; does cargo have priority?public final Duration estimateLockageDelay()
public final Duration drawLockageDelay()
public final int getOperationHoursPerDay()
getOperationHoursPerDay in interface Operatedpublic final int getOperationDaysPerWeek()
getOperationDaysPerWeek in interface Operatedpublic final Length getLength()
public final Length getWidth()
public final int getNumberChambers()
public final boolean isCargoPriority()
public final DEVSSimulatorInterface.TimeDoubleUnit getSimulator()
getSimulator in interface DynamicCopyright © 2014–2019 Delft University of Technology. All rights reserved.