Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

elevator.h File Reference

#include "copyright.h"
#include "utility.h"
#include "callback.h"
#include "list.h"

Go to the source code of this file.

Compounds

class  ElevatorBank
 The following class defines a bank of elevators. More...


Typedefs

typedef List<PendingElevatorEvent *> ListOfEvents

Enumerations

enum  Direction { Down, Up, Neither }
 which direction the elevator or rider is going. More...

enum  ElevatorEvent {
  NoEvent, DoorsOpened, UpButtonPressed, DownButtonPressed,
  FloorButtonPressed, ElevatorArrived
}
 elevator events that require signalling rider (on DoorsOpened) or controllers (on ButtonPressed or ElevatorArrived). More...


Variables

const int MaxRiders = 4
 carrying capacity of each elevator. More...

const int DelayPerFloor = 100
 how long does an elevator take to move between floors? More...


Typedef Documentation

typedef List< PendingElevatorEvent *> ListOfEvents<PendingElevatorEvent *>
 

Definition at line 40 of file elevator.h.


Enumeration Type Documentation

enum Direction
 

which direction the elevator or rider is going.

Enumeration values:
Down  
Up  
Neither  

Definition at line 27 of file elevator.h.

enum ElevatorEvent
 

elevator events that require signalling rider (on DoorsOpened) or controllers (on ButtonPressed or ElevatorArrived).

Enumeration values:
NoEvent  
DoorsOpened  
UpButtonPressed  
DownButtonPressed  
FloorButtonPressed  
ElevatorArrived  

Definition at line 31 of file elevator.h.


Variable Documentation

const int DelayPerFloor = 100
 

how long does an elevator take to move between floors?

Definition at line 35 of file elevator.h.

const int MaxRiders = 4
 

carrying capacity of each elevator.

Definition at line 34 of file elevator.h.


Generated at Wed Jul 4 11:32:22 2001 for Nachos by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001