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