Uses of Class
models.Direction

Packages that use Direction
interfaces   
models   
 

Uses of Direction in interfaces
 

Methods in interfaces that return Direction
 Direction ControllerForElevator.calculateDirection()
           
 Direction ElevatorForController.currentDirection()
           
 

Uses of Direction in models
 

Methods in models that return Direction
 Direction StupidController.calculateDirection()
          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
 Direction EmergencyController.calculateDirection()
          In an emergency situation the controller must always stay at the current floor
Tested by JUnit_EmergencyController.test_calculateDirection()
 Direction Elevator.currentDirection()
           
static Direction Direction.valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Direction[] Direction.values()
          Returns an array containing the constants of this enum type, in the order they are declared.