B C D E F G H I M N P R S T U V

C

calculateDirection() - Method in interface interfaces.ControllerForElevator
 
calculateDirection() - Method in class models.EmergencyController
In an emergency situation the controller must always stay at the current floor
Tested by JUnit_EmergencyController.test_calculateDirection()
calculateDirection() - Method in class models.StupidController
If the elevator is on the top floor then set the direction to down
If the elevator is on the bottom floor then set the direction to up
If the elevator is moving up then keep moving up until it reaches the top floor
If the elevator is moving down then keep moving down until it reaches the top floor
If the elevator is not moving then start it moving down towards the bottom floor
cancelDownRequest(int) - Method in class models.DirectionRequestButtonsOnFloors
Cancel the down request at the specified floor
Tested by JUnit_DirectionRequestButtonsOnFloors.test_Down_presses_cancels()
cancelFloorRequestInElevator(int) - Method in class models.FloorButtonsInElevator
Tested by JUnit_FloorButtonsInElevator.test_presses_cancels() Update the state when a request for the specified floor has been served
cancelUpRequest(int) - Method in class models.DirectionRequestButtonsOnFloors
Cancel the up request at the specified floor
Tested by JUnit_DirectionRequestButtonsOnFloors.test_Up_presses_cancels()
Clock - Class in models
 
Clock() - Constructor for class models.Clock
 
Clock(int) - Constructor for class models.Clock
 
ClockSpecification - Interface in interfaces
A clock used to count time increments
Tested by JUnit_ClockSpecification
ControllerForElevator - Interface in interfaces
The interface defining the methods offered by the controller to the elevator (see ElevatorSpecification)
currentDirection() - Method in interface interfaces.ElevatorForController
 
currentDirection() - Method in class models.Elevator
 
currentFloor() - Method in interface interfaces.ElevatorForController
 
currentFloor() - Method in class models.Elevator
 

B C D E F G H I M N P R S T U V