Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
B
C
D
E
M
N
S
T
B
boardPassenger(int)
- Method in class cscie160.hw1.
Elevator
This increments numb of passenger destined there by one, and increase the number of passengers in elevator by one.
C
Capacity
- Variable in class cscie160.hw1.
Elevator
The maximum number of people in an Elevator.
currentDirection
- Variable in class cscie160.hw1.
Elevator
The current direction of the elevator: 1=up, -1=down and 0=not moving.
currentFloor
- Variable in class cscie160.hw1.
Elevator
The current floor that the Elevator is on.
D
destRequests
- Variable in class cscie160.hw1.
Elevator
Stores the destination requests for each floor and the value would be boolean.
E
Elevator
- class cscie160.hw1.
Elevator
.
CSCIE160
Elevator()
- Constructor for class cscie160.hw1.
Elevator
Initializes class by creating an array with size of numOfFloors + 1.
M
main(String[])
- Static method in class cscie160.hw1.
Elevator
Starts the main part of the class, start with adding passengers and then use a FOR loop to do a 1-round sweep.
move()
- Method in class cscie160.hw1.
Elevator
Moves Elevator from its current floor to the next floor.
N
numOfFloors
- Variable in class cscie160.hw1.
Elevator
The number of floors in the building.
numOfPassDestForEachFloor
- Variable in class cscie160.hw1.
Elevator
Stores the number of passengers destined for each floor.
numOfPassengers
- Variable in class cscie160.hw1.
Elevator
The number of passengers currently in the elevator
S
stop()
- Method in class cscie160.hw1.
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.hw1.
Elevator
Prints the current status of the elevator.
B
C
D
E
M
N
S
T
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES