Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2db0ce5446
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (25 sloc) 0.527 kB
#ifndef FCFS_ELEVATOR_H
#define FCFS_ELEVATOR_H
/* 先来先服务电梯 */
#include "elevator.h"
#include "passenger.h"
#include "order.h"
#include "floor.h"
#include <queue>
using namespace std;
class Passenger;
class Order;
class FcfsElevator: public Elevator
{
private:
Passenger *passenger;
queue<Order*> orders;
void Letin(Order *order);
void Letout();
public:
FcfsElevator(int capacity_);
virtual void Move();
void PushOrder(Order *order);
};
typedef vector<FcfsElevator>::iterator FcfsEleIter;
#endif
Jump to Line
Something went wrong with that request. Please try again.