2 * CS356 Project 01 -- Elevator Simulator
4 * Stop Class Specification
10 #include "position.hpp"
11 #include "direction.hpp"
13 class Stop : public Position
16 /* PURPOSE: Construct a new Stop object, and set the floor and direction
20 * PROMISE: A new Stop object will be created
22 Stop (int floor, enum direction mydirection);
25 Stop (Position pos, enum direction mydirection);
28 * PURPOSE: Check if this and another Stop object is equivalent
30 * REQUIRE: rhs is a valid Stop object
32 * PROMISE: Return true if this and rhs are equivalent, false otherwise
34 bool operator== (Stop& rhs);
35 friend std::ostream& operator<< (std::ostream& os, Stop& rhs);
39 /* Storage for the direction */
40 enum direction _direction;
45 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */