public class Hoistway
extends java.lang.Object
Constructor and Description |
---|
Hoistway(java.util.List<ControlPanel.FloorControlPanel> floors)
Creates a basic hoistway.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
flatten()
Flattens this object's components into a single list
|
EnvironmentSensor.CabinSpeedSensor |
getCabinSpeedSensor()
The current cabin speed as driven by the motor
|
EnvironmentSensor.CabinWeightSensor |
getCabinWeightSensor()
The current cabin weight as lifted by the counterweight
|
java.util.List<java.lang.Object> |
getComponents()
The stored list of components of this Component wrapper
|
EnvironmentSensor.FireSensor |
getFireSensor()
The hoistway fire sensor
|
java.util.List<Indicator.FloorIndicator> |
getFloorIndicators() |
EnvironmentSensor.MotorSensor |
getMotorSensor()
The motor sensor
|
EnvironmentSensor.VibrationSensor |
getVibrationSensor()
Earthquake detection sensor
|
Hoistway |
moveCabinDown()
Signals the motor to let the occupants down
|
Hoistway |
moveCabinUp()
Signals the motor to pull the cabin up
|
io.elevator.building.Component |
setComponents(java.util.List<java.lang.Object> components)
Sets the stored list of this Component wrapper's components to be the passed param
|
io.elevator.building.Component |
setComponents(java.lang.Object... components)
Sets the stored list of this Component wrapper's components to be the passed params
|
Hoistway |
setFloorIndicators(java.util.List<java.lang.Object> list)
Sets the FloorIndicator references to update on cabin floor change.
Thank Anna for this one, I was going to let you figure it out as software |
Hoistway |
stopCabin()
Signals the motor to stop
|
public Hoistway(java.util.List<ControlPanel.FloorControlPanel> floors)
floors
- the list of all floors already setuppublic final EnvironmentSensor.MotorSensor getMotorSensor()
public final EnvironmentSensor.FireSensor getFireSensor()
public final EnvironmentSensor.CabinSpeedSensor getCabinSpeedSensor()
public final EnvironmentSensor.CabinWeightSensor getCabinWeightSensor()
public final EnvironmentSensor.VibrationSensor getVibrationSensor()
public java.util.List<Indicator.FloorIndicator> getFloorIndicators()
public Hoistway moveCabinUp() throws java.lang.Exception
java.lang.Exception
- When the motor is reversed without stopping or attempts to travel to a nonexistent floorpublic Hoistway moveCabinDown() throws java.lang.Exception
java.lang.Exception
- When the motor is reversed without stopping or attempts to travel to a nonexistent floorpublic Hoistway stopCabin()
public Hoistway setFloorIndicators(java.util.List<java.lang.Object> list)
list
- the FloorIndicators to updatepublic java.util.List<java.lang.Object> flatten()
public io.elevator.building.Component setComponents(java.lang.Object... components)
components
- The array of components to addpublic io.elevator.building.Component setComponents(java.util.List<java.lang.Object> components)
components
- The list of components to addpublic java.util.List<java.lang.Object> getComponents()