public static class ControlPanel.MaintenanceControlPanel extends ControlPanel<java.lang.Integer>
ControlPanel.CabinControlPanel, ControlPanel.FloorControlPanel, ControlPanel.MaintenanceControlPanel| Constructor and Description |
|---|
MaintenanceControlPanel(int numOfFloors,
java.lang.Object floorChime,
java.lang.Object emergencyChime,
java.util.List<EnvironmentSensor.BooleanSensor> sensors,
java.util.List<ControlPanel.FloorControlPanel> floors)
The ControlPanel mainButtonsOnPanel stores the floor buttons [null, 1, ..., n] so that the button at index 1
will send you to floor 1.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Object> |
flatten()
Flattens this object's components into a single list
|
java.util.List<java.lang.Object> |
getComponents()
The stored list of components of this Component wrapper
|
Indicator.ArrivalIndicator |
getCurrDirDownIndicator()
If active, represents that this cabin is traveling down
|
Indicator.ArrivalIndicator |
getCurrDirUpIndicator()
If active, represents that the cabin is traveling up
|
Indicator.FloorIndicator |
getCurrFloorIndicator()
If active, displays the current or next landing the cabin is stopped at or passing
|
Indicator.DoorIndicator |
getDoorIndicator()
If active, represents that the doors of the cabin are open
|
Indicator.EmergencyIndicator |
getEmergencyModeIndicator()
If active, represents that the cabin is in emergency mode.
|
java.util.List<EnvironmentSensor> |
getSensors()
A list of all the sensors connected to the elevator system, in order to display their status
|
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
|
java.lang.String |
toString() |
ControlPanel.MaintenanceControlPanel |
updateDoorIndicator(boolean doorsOpen)
Updates the door indicator relative to the received state
|
getFireKey, getMainButtonsOnPanelpublic MaintenanceControlPanel(int numOfFloors,
java.lang.Object floorChime,
java.lang.Object emergencyChime,
java.util.List<EnvironmentSensor.BooleanSensor> sensors,
java.util.List<ControlPanel.FloorControlPanel> floors)
numOfFloors - the number of floors in a building (should be 2 to n)floorChime - The chime (or chimes) to play when at a flooremergencyChime - The chime (or chimes) to play when at a floorsensors - List of all sensors for the elevatorfloors - List of all floors for the elevatorpublic final Indicator.ArrivalIndicator getCurrDirUpIndicator()
public final Indicator.ArrivalIndicator getCurrDirDownIndicator()
public final Indicator.FloorIndicator getCurrFloorIndicator()
public final Indicator.EmergencyIndicator getEmergencyModeIndicator()
public final Indicator.DoorIndicator getDoorIndicator()
public final java.util.List<EnvironmentSensor> getSensors()
public ControlPanel.MaintenanceControlPanel updateDoorIndicator(boolean doorsOpen)
doorsOpen - true if the doors are openpublic java.util.List<java.lang.Object> flatten()
flatten in class ControlPanel<java.lang.Integer>public java.lang.String toString()
toString in class ControlPanel<java.lang.Integer>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()