39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
//
|
||
// Created by ricardo on 2022/5/6.
|
||
//
|
||
|
||
#ifndef AUTO_PILOT_BUS_CONTROLLER_H
|
||
#define AUTO_PILOT_BUS_CONTROLLER_H
|
||
#include "rail.h"
|
||
#include "query.h"
|
||
|
||
/**
|
||
* å…ˆæ<CB86>¥å…ˆæœ<C3A6>务的ç–略控制函数
|
||
* @param rails 轨é<C2A8>“链表
|
||
* @param up_queries 上车请求队列
|
||
* @param down_queries 下车请求队列
|
||
* @return 车å‰<C3A5>进的方å<C2B9>‘
|
||
*/
|
||
int FCFSFunction(rail_node_t rails, up_bus_t up_queries, down_bus_t down_queries);
|
||
|
||
/**
|
||
* 朢ãçŸå¯»æ‰¾æ—¶é—´ä¼˜å…ˆçš„ç–略控制函数
|
||
* @param rails 轨é<C2A8>“链表
|
||
* @param up_queries 上车请求队列
|
||
* @param down_queries 下车请求队列
|
||
* @return 车å‰<C3A5>进的方å<C2B9>‘
|
||
*/
|
||
int SSTFFunction(rail_node_t rails, up_bus_t up_queries, down_bus_t down_queries);
|
||
|
||
/**
|
||
* 顺便æœ<C3A6>务的ç–略控制函敄1¤7
|
||
* @param rails 轨é<C2A8>“链表
|
||
* @param up_queries 上车请求队列
|
||
* @param down_queries 下车请求队列
|
||
* @return 车å‰<C3A5>进的方å<C2B9>‘
|
||
*/
|
||
int SCANFunction(rail_node_t rails, up_bus_t up_queries, down_bus_t down_queries);
|
||
int add(int a,int b);
|
||
|
||
#endif //AUTO_PILOT_BUS_CONTROLLER_H
|