Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
E
F
G
L
M
N
P
R
S
T
U
A
addOnePassenger(Elevator, Passenger)
- Method in class cscie160.hw3.
Floor
addOnePassenger
arrayOfFloors
- Variable in class cscie160.hw3.
Elevator
Stores the array of floors that the Elevator travels upon.
arrayOfFloors
- Variable in class cscie160.hw3.
Building
arrive()
- Method in class cscie160.hw3.
Passenger
arrive()
B
boardPassenger(Passenger)
- Method in class cscie160.hw3.
Elevator
This increments number of passenger destined there by one, and increase the number of passengers in elevator by one.
Building
- class cscie160.hw3.
Building
.
CSCIE160
Building()
- Constructor for class cscie160.hw3.
Building
E
Elevator
- class cscie160.hw3.
Elevator
.
CSCIE160
Elevator(Floor[])
- Constructor for class cscie160.hw3.
Elevator
Initializes class by creating an array with size of numOfFloors + 1.
ElevatorFullException
- exception cscie160.hw3.
ElevatorFullException
.
ElevatorFullException Class an exception class
F
Floor
- class cscie160.hw3.
Floor
.
CSCIE160
Floor(int)
- Constructor for class cscie160.hw3.
Floor
Floor constructor:
G
getCurrentDirection()
- Method in class cscie160.hw3.
Elevator
getCurrentDirection returns the integer value of the direction: 1 = up, -1 = down, 0 = idle.
getCurrentFloor()
- Method in class cscie160.hw3.
Elevator
getCurrentFloor gets the current floor of the elevator
getCurrentFloor()
- Method in class cscie160.hw3.
Passenger
getCurrentFloor;
getDestFloor()
- Method in class cscie160.hw3.
Passenger
getDestFloor;
getFloorIdentifier()
- Method in class cscie160.hw3.
Floor
getFloorIdentifier
getNumOfPassengers()
- Method in class cscie160.hw3.
Elevator
The number of passengers currently in the elevator
L
llDown
- Variable in class cscie160.hw3.
Floor
llDown
llPassDestForEachFloor
- Variable in class cscie160.hw3.
Elevator
Stores passengers destined for each floor.
llResidential
- Variable in class cscie160.hw3.
Floor
llResidential
llUp
- Variable in class cscie160.hw3.
Floor
staUp
loadPassengers(Elevator, int)
- Method in class cscie160.hw3.
Floor
loadPassengers
loadPassengers(LinkedList)
- Method in class cscie160.hw3.
Floor
loadPassenger
M
main(String[])
- Static method in class cscie160.hw3.
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.
main(String[])
- Static method in class cscie160.hw3.
Passenger
Main: Test purposes only.
main(String[])
- Static method in class cscie160.hw3.
Building
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.hw3.
Elevator
Moves Elevator from its current floor to the next floor.
N
numOfFloors
- Variable in class cscie160.hw3.
Building
P
Passenger
- class cscie160.hw3.
Passenger
.
CSCIE160
Passenger(int)
- Constructor for class cscie160.hw3.
Passenger
Constructors:
Passenger(int, int)
- Constructor for class cscie160.hw3.
Passenger
PrintPassengers()
- Method in class cscie160.hw3.
Floor
PrintPassengers
R
registerDownRequest(int)
- Method in class cscie160.hw3.
Elevator
Sets the destRequests array.
registerUpRequest(int)
- Method in class cscie160.hw3.
Elevator
Sets the destUpRequests array.
S
setCurrFloor(int)
- Method in class cscie160.hw3.
Passenger
setCurrentFloor;
setDestFloor(int)
- Method in class cscie160.hw3.
Passenger
setDestFloor;
stop()
- Method in class cscie160.hw3.
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
theElevator
- Variable in class cscie160.hw3.
Building
toString()
- Method in class cscie160.hw3.
Floor
toString
toString()
- Method in class cscie160.hw3.
Elevator
Prints the current status of the elevator.
toString()
- Method in class cscie160.hw3.
Passenger
toString()
U
unloadPassengers(Elevator)
- Method in class cscie160.hw3.
Floor
unloadPassengers:
A
B
E
F
G
L
M
N
P
R
S
T
U
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES