init
This commit is contained in:
		
							
								
								
									
										8
									
								
								core/plan/Plan.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								core/plan/Plan.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| class Plan: | ||||
|     __priority_factor: float  # 优先级因子 | ||||
|  | ||||
|     def __init__(self): | ||||
|         pass | ||||
|  | ||||
|     def getPriorityFactor(self) -> float: | ||||
|         return self.__priority_factor | ||||
							
								
								
									
										15
									
								
								core/plan/PlanMinHeap.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								core/plan/PlanMinHeap.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| from typing import List | ||||
| from .Plan import Plan | ||||
|  | ||||
|  | ||||
| class PlanPriorityMinHeap: | ||||
|     """ | ||||
|     计划优先小顶堆,按照优先级存储多个计划 | ||||
|     """ | ||||
|  | ||||
|     plans: List[Plan] | ||||
|     def __init__(self): | ||||
|         self.plans = [] | ||||
|      | ||||
|     def addPlan(self, plan: Plan): | ||||
|         pass | ||||
							
								
								
									
										0
									
								
								core/plan/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								core/plan/__init__.py
									
									
									
									
									
										Normal file
									
								
							
		Reference in New Issue
	
	Block a user