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

ElevatorInfo Class Reference

data structure to represent the state of the physical elevator class is private to this module. More...

List of all members.

Public Methods

 ElevatorInfo ()
 ~ElevatorInfo ()
int OpenDoors ()
void CloseDoors ()
bool MoveTo (int goingToFloor)
bool Enter (int onFloor)
bool Exit (int onFloor)
bool ReachedNextFloor ()
bool CheckArrived ()

Public Attributes

Direction display
bool doorsOpen
bool inMotion
int lastFloor
int willArrive
int goingTo
List<Thread *>* riders


Detailed Description

data structure to represent the state of the physical elevator class is private to this module.

Definition at line 29 of file elevator.cc.


Constructor & Destructor Documentation

ElevatorInfo::ElevatorInfo ( ) [inline]
 

Definition at line 31 of file elevator.cc.

ElevatorInfo::~ElevatorInfo ( ) [inline]
 

Definition at line 36 of file elevator.cc.


Member Function Documentation

bool ElevatorInfo::CheckArrived ( ) [inline]
 

Definition at line 86 of file elevator.cc.

Referenced by ElevatorBank::CallBack().

void ElevatorInfo::CloseDoors ( ) [inline]
 

Definition at line 43 of file elevator.cc.

Referenced by ElevatorBank::CloseDoors().

bool ElevatorInfo::Enter ( int onFloor ) [inline]
 

Definition at line 59 of file elevator.cc.

Referenced by ElevatorBank::EnterElevator().

bool ElevatorInfo::Exit ( int onFloor ) [inline]
 

Definition at line 69 of file elevator.cc.

Referenced by ElevatorBank::ExitElevator().

bool ElevatorInfo::MoveTo ( int goingToFloor ) [inline]
 

Definition at line 48 of file elevator.cc.

Referenced by ElevatorBank::MoveTo().

int ElevatorInfo::OpenDoors ( ) [inline]
 

Definition at line 38 of file elevator.cc.

bool ElevatorInfo::ReachedNextFloor ( ) [inline]
 

Definition at line 79 of file elevator.cc.

Referenced by ElevatorBank::CallBack().


Member Data Documentation

Direction ElevatorInfo::display
 

Definition at line 94 of file elevator.cc.

bool ElevatorInfo::doorsOpen
 

Definition at line 95 of file elevator.cc.

int ElevatorInfo::goingTo
 

Definition at line 99 of file elevator.cc.

bool ElevatorInfo::inMotion
 

Definition at line 96 of file elevator.cc.

int ElevatorInfo::lastFloor
 

Definition at line 97 of file elevator.cc.

List< Thread *> * ElevatorInfo::riders<Thread *>
 

Definition at line 100 of file elevator.cc.

int ElevatorInfo::willArrive
 

Definition at line 98 of file elevator.cc.


The documentation for this class was generated from the following file:
Generated at Wed Jul 4 11:32:23 2001 for Nachos by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001