1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/sxx1111-elevator_simulation

Клонировать/Скачать
Rule.h 1018
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Shixinxin Отправлено 07.01.2019 20:52 9b3613b
#ifndef CONSTANT_H
#define CONSTANT_H
class Rule {
private:
Rule () {}
~Rule () {}
public:
static const int FloorNumber = 40; // 层数
static const int FloorSpace = 25; // 中间间隔楼层数
static const int ElevatorNumber = 10; // 电梯数
static int MaxK; // 电梯最大载客量 13
static int MaxN; // 最大人数 50
static int M; // 仿真时间 2*60
static const int MaxL = 10; // 最大乘梯次数
static int S; // 电梯运行速度 2
static int T; // 每人上下时间 4
static const int EventT = 1; // 事件周期
static const int minWaitTime = 10; // 最小停留时间
static const int maxWaitTime = 30; // 最大停留时间
static const int CloseTime = 3; // 电梯关门时间
// 五条电梯停留规则,参数为楼层数
static bool rule1 (int);
static bool rule2 (int);
static bool rule3 (int);
static bool rule4 (int);
static bool rule5 (int);
// 初始化项目
static void init(int k, int n, int m, int s, int t);
// 生成在[Left, Right]中的随机数
static int random (int, int Left = 1);
};
#endif

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/sxx1111-elevator_simulation.git
git@api.gitlife.ru:oschina-mirror/sxx1111-elevator_simulation.git
oschina-mirror
sxx1111-elevator_simulation
sxx1111-elevator_simulation
master