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() |
getWaterwayLocation
getName
getBounds, getLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCoordinate, getOTSPoint3D, getPoint3d
public Lock(DEVSSimulatorInterface.TimeDoubleUnit simulator, String name, WaterwayLocation waterwayLocation, int numberChambers, int operationHoursPerDay, int operationDaysPerWeek, Length length, 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 Duration estimateLockageDelay()
public final Duration drawLockageDelay()
public final int getOperationHoursPerDay()
getOperationHoursPerDay
in interface Operated
public final int getOperationDaysPerWeek()
getOperationDaysPerWeek
in interface Operated
public final Length getLength()
public final Length getWidth()
public final int getNumberChambers()
public final boolean isCargoPriority()
public final DEVSSimulatorInterface.TimeDoubleUnit getSimulator()
getSimulator
in interface Dynamic
Copyright © 2014–2018 Delft University of Technology. All rights reserved.