Inheritance diagram for ElevatorInspector::

Public Methods | |
| ElevatorInspector () | |
| ~ElevatorInspector () | |
| void | RiderTest () |
| void | ControllerTest () |
| void | CallBack () |
Private Methods | |
| ElevatorEvent | WaitForNextRiderEvent (int *floor, int *elevator) |
| ElevatorEvent | WaitForNextControllerEvent (int *floor, int *elevator) |
Private Attributes | |
| ElevatorBank* | elevators |
| Semaphore* | riderWakeup |
| Semaphore* | controllerWakeup |
Definition at line 19 of file elevatortest.cc.
|
|
ElevatorInspector::ElevatorInspector Allocate and initialize data structures for testing the elevator simulation. Definition at line 87 of file elevatortest.cc. |
|
|
ElevatorInspector::~ElevatorInspector Deallocate data structures for testing the elevator simulation. Definition at line 99 of file elevatortest.cc. |
|
|
ElevatorInspector::CallBack Handle an event; since we don't know whether it is a rider event or a controller event, just wake them both up. If there's no event pending, they'll just go right back to sleep. Reimplemented from CallBackObj. Definition at line 169 of file elevatortest.cc. |
|
|
ElevatorInspector::ControllerTest Behave like an elevator controller, for testing the elevator simulation. Definition at line 136 of file elevatortest.cc. Referenced by ControllerTest().
|
|
|
ElevatorInspector::RiderTest Behave like a rider, going from floor 0 to floor 1. Definition at line 112 of file elevatortest.cc. Referenced by ElevatorSelfTest().
|
|
|
Definition at line 48 of file elevatortest.cc. Referenced by ControllerTest().
|
|
|
Definition at line 39 of file elevatortest.cc. Referenced by RiderTest().
|
|
|
Definition at line 33 of file elevatortest.cc. |
|
|
Definition at line 31 of file elevatortest.cc. |
|
|
Definition at line 32 of file elevatortest.cc. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001