Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
F
L
M
N
R
S
T
U
A
arrayOfFloors
- Variable in class cscie160.hw2.
Elevator
Stores the array of floors that the Elevator travels upon.
B
boardPassenger(int)
- Method in class cscie160.hw2.
Elevator
This increments number of passenger destined there by one, and increase the number of passengers in elevator by one.
C
Capacity
- Variable in class cscie160.hw2.
Elevator
The maximum number of people in an Elevator.
currentDirection
- Variable in class cscie160.hw2.
Elevator
The current direction of the elevator: 1=up, -1=down and 0=not moving.
currentFloor
- Variable in class cscie160.hw2.
Elevator
The current floor that the Elevator is on.
D
destRequests
- Variable in class cscie160.hw2.
Elevator
Stores the destination requests for each floor and the value would be boolean.
E
Elevator
- class cscie160.hw2.
Elevator
.
CSCIE160
Elevator()
- Constructor for class cscie160.hw2.
Elevator
Initializes class by creating an array with size of numOfFloors + 1.
ElevatorFullException
- exception cscie160.hw2.
ElevatorFullException
.
ElevatorFullException Class an exception class
F
Floor
- class cscie160.hw2.
Floor
.
CSCIE160
Floor(int)
- Constructor for class cscie160.hw2.
Floor
Floor constructor:
floorIdentifier
- Variable in class cscie160.hw2.
Floor
This is the floor number of the floor.
L
loadPassengers(Elevator, int)
- Method in class cscie160.hw2.
Floor
loadPassengers This is not called by the elevator, but used as test method to load in passengers.
M
main(String[])
- Static method in class cscie160.hw2.
Elevator
Starts the main part of the class, start with adding passengers in the Elevator and then add a bunch of passengers on some floors.
move()
- Method in class cscie160.hw2.
Elevator
Moves Elevator from its current floor to the next floor.
N
numOfFloors
- Variable in class cscie160.hw2.
Elevator
The number of floors in the building.
numOfPassDestForEachFloor
- Variable in class cscie160.hw2.
Elevator
Stores the number of passengers destined for each floor.
numOfPassengers
- Variable in class cscie160.hw2.
Elevator
The number of passengers currently in the elevator
R
registerRequest(int)
- Method in class cscie160.hw2.
Elevator
Sets the destRequests array.
S
stop()
- Method in class cscie160.hw2.
Elevator
Does not actually stop the elevator in real time but just to allow the simulation to process the numbers when stop is called.
T
toString()
- Method in class cscie160.hw2.
Elevator
Prints the current status of the elevator.
toString()
- Method in class cscie160.hw2.
Floor
toString
U
unloadPassengers(Elevator)
- Method in class cscie160.hw2.
Floor
unloadPassengers:
A
B
C
D
E
F
L
M
N
R
S
T
U
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES