Add curve api and test

This commit is contained in:
WQY\qiong
2022-10-22 13:17:42 +08:00
parent bb1d772eaa
commit 9e8a84c4c0
6 changed files with 131 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ from .s6_pumps import *
from .s7_valves import *
from .s9_demands import *
from .s10_status import *
from .s11_patterns import *
from .s12_curves import *
def execute_add_command(name: str, cs: ChangeSet) -> ChangeSet:
@@ -49,6 +51,10 @@ def execute_update_command(name: str, cs: ChangeSet) -> ChangeSet:
return set_demand(name, cs)
elif type == 'status':
return set_status(name, cs)
elif type == PATTERN:
return set_pattern(name, cs)
elif type == CURVE:
return set_curve(name, cs)
return ChangeSet()