From 2c73b1d2ed5d32df9e41883013b971bb259b80fe Mon Sep 17 00:00:00 2001 From: jackfiled Date: Sat, 11 Jun 2022 19:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=B8=B8=E9=87=8F?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=A4=B4=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/define.h | 19 +++++++++++++++++++ include/queryModel.h | 6 +++--- include/railsModel.h | 6 +++--- 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 include/define.h diff --git a/include/define.h b/include/define.h new file mode 100644 index 0000000..f202102 --- /dev/null +++ b/include/define.h @@ -0,0 +1,19 @@ +// +// Created by ricardo on 2022/6/11. +// + +#ifndef AUTO_BUS_GUI_DEFINE_H +#define AUTO_BUS_GUI_DEFINE_H + +#define BUS_CLOCK_WISE 0 // 顺时针 +#define BUS_COUNTER_CLOCK_WISE 1 // 逆时针 +#define BUS_TARGET 2 // 目标 +#define BUS_STOP 2 // 停止 +#define IO_CLOCK 0 // 读取时钟指令 +#define IO_READING 1 // 读取请求指令 +#define IO_END 2 // 读取结束指令 +#define BUS_FCFS 0 // 先来先服务 +#define BUS_SSTF 1 // 最短寻找时间优先 +#define BUS_SCAN 2 // 顺便服务 + +#endif //AUTO_BUS_GUI_DEFINE_H diff --git a/include/queryModel.h b/include/queryModel.h index 0f3312c..b11791b 100644 --- a/include/queryModel.h +++ b/include/queryModel.h @@ -2,8 +2,8 @@ // Created by ricardo on 2022/6/10. // -#ifndef AUTO_BUS_GUI_QUERYMODEL_H -#define AUTO_BUS_GUI_QUERYMODEL_H +#ifndef AUTO_BUS_GUI_QUERY_MODEL_H +#define AUTO_BUS_GUI_QUERY_MODEL_H #include "railsModel.h" struct bus_query { @@ -53,4 +53,4 @@ public: }; -#endif //AUTO_BUS_GUI_QUERYMODEL_H +#endif //AUTO_BUS_GUI_QUERY_MODEL_H diff --git a/include/railsModel.h b/include/railsModel.h index 53ce16f..b57a7b7 100644 --- a/include/railsModel.h +++ b/include/railsModel.h @@ -2,8 +2,8 @@ // Created by ricardo on 2022/6/10. // -#ifndef AUTO_BUS_GUI_RAILSMODEL_H -#define AUTO_BUS_GUI_RAILSMODEL_H +#ifndef AUTO_BUS_GUI_RAILS_MODEL_H +#define AUTO_BUS_GUI_RAILS_MODEL_H #include "cstdlib" struct rail_node{ @@ -59,4 +59,4 @@ public: }; -#endif //AUTO_BUS_GUI_RAILSMODEL_H +#endif //AUTO_BUS_GUI_RAILS_MODEL_H