public class ElevatorSimulator
extends javafx.application.Application
Constructor and Description |
---|
ElevatorSimulator() |
Modifier and Type | Method and Description |
---|---|
javafx.scene.layout.StackPane |
createCabin(ControlPanel.FloorControlPanel f)
Created display for cabin
|
javafx.scene.layout.FlowPane |
createCabinControlButtons(Building buildingMCP,
java.lang.Boolean isCCP)
Created the buttons on the cabin control panel
|
javafx.scene.layout.HBox |
createCCPPanel(Building building)
Created the Cabin Control Panel
|
javafx.scene.layout.HBox |
createCtrlPnlDrBtns(Building b)
Creates the buttons on the control panel in the cabin
|
javafx.scene.layout.HBox |
createFKState(ControlPanel.FloorControlPanel f)
Created the display for the Fire key
|
javafx.scene.image.ImageView[] |
createHallButtons(ControlPanel.FloorControlPanel f)
Created the hall buttons shown dor display
|
javafx.scene.image.ImageView[] |
createHallLights(Building b,
java.lang.Boolean isMCP,
java.lang.Boolean isCCP,
java.lang.Integer id)
Creates the hall lights that are displayed in multiple places
|
javafx.scene.layout.VBox |
createLeftPanel(Building b)
Builds the left side of the panel
|
javafx.scene.layout.VBox |
createMCPPanel(Building buildingMCP)
Creates MCP for right side of display
|
javafx.scene.layout.VBox |
createRightPanel(Building b)
Creates the right side of our panel
|
static void |
main(java.lang.String[] args) |
void |
start(javafx.stage.Stage primaryStage)
BuildingControl and Simulator threads are launched from the GUI thread to avoid overlap issues
|
public static void main(java.lang.String[] args)
public void start(javafx.stage.Stage primaryStage) throws java.lang.Exception
start
in class javafx.application.Application
primaryStage
- This holds our entire display of the GUIjava.lang.Exception
- TODOpublic javafx.scene.layout.VBox createRightPanel(Building b)
b
- The current building instancepublic javafx.scene.layout.HBox createCCPPanel(Building building)
building
- Takes in the current building instancepublic javafx.scene.layout.VBox createMCPPanel(Building buildingMCP)
buildingMCP
- Takes in the building instancepublic javafx.scene.layout.HBox createCtrlPnlDrBtns(Building b)
b
- Takes in the instance of the current buildingpublic javafx.scene.layout.StackPane createCabin(ControlPanel.FloorControlPanel f)
f
- Takes the current floor panelpublic javafx.scene.image.ImageView[] createHallButtons(ControlPanel.FloorControlPanel f)
f
- Instance of the current floorpublic javafx.scene.image.ImageView[] createHallLights(Building b, java.lang.Boolean isMCP, java.lang.Boolean isCCP, java.lang.Integer id)
b
- The instance of the buildingisMCP
- Will change look depending if it is MCPid
- Floor idisCCP
- Will change look depending if it is CCPpublic javafx.scene.layout.HBox createFKState(ControlPanel.FloorControlPanel f)
f
- Takes the floor control panel to set the fire key for each floorpublic javafx.scene.layout.VBox createLeftPanel(Building b)
b
- Passes the building componentpublic javafx.scene.layout.FlowPane createCabinControlButtons(Building buildingMCP, java.lang.Boolean isCCP)
buildingMCP
- Passes in the building component to connect the gui to active componentsisCCP
- Determines the Control Panel to the Maintenance Control Panel