23 lines
		
	
	
		
			434 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			434 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| //
 | |
| // Created by ricardo on 2022/6/27.
 | |
| //
 | |
| 
 | |
| #ifndef AUTO_BUS_GUI_BUS_SSTF_STRATEGY_H
 | |
| #define AUTO_BUS_GUI_BUS_SSTF_STRATEGY_H
 | |
| #include "BusStrategyBase.h"
 | |
| 
 | |
| /**
 | |
|  * 实现最短寻找时间策略的控制器类
 | |
|  */
 | |
| class BusSSTFStrategy : public BusStrategyBase
 | |
| {
 | |
|     int GetBusDirection() override;
 | |
| 
 | |
|     bus_query_t *GetTargetQuery() override;
 | |
| 
 | |
|     bus_query_t *HandleBTWQuery() override;
 | |
| };
 | |
| 
 | |
| 
 | |
| #endif //AUTO_BUS_GUI_BUS_SSTF_STRATEGY_H
 |