This commit is contained in:
2024-10-03 18:23:21 +08:00
commit 8626664653
45 changed files with 777 additions and 0 deletions

8
core/plan/Plan.py Normal file
View 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
View 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
View File