init
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Plan:
|
||||
__priority_factor: float # 优先级因子
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def getPriorityFactor(self) -> float:
|
||||
return self.__priority_factor
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user