Add reaction api and test
This commit is contained in:
39
tjnetwork.py
39
tjnetwork.py
@@ -547,6 +547,38 @@ def delete_source(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return api.delete_source(name, cs)
|
||||
|
||||
|
||||
############################################################
|
||||
# reaction 19.[REACTIONS]
|
||||
############################################################
|
||||
|
||||
def get_global_reaction_schema(name: str) -> dict[str, dict[str, Any]]:
|
||||
return api.get_global_reaction_schema(name)
|
||||
|
||||
def get_global_reaction(name: str) -> dict[str, Any]:
|
||||
return api.get_global_reaction(name)
|
||||
|
||||
def set_global_reaction(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return api.set_global_reaction(name, cs)
|
||||
|
||||
def get_pipe_reaction_schema(name: str) -> dict[str, dict[str, Any]]:
|
||||
return api.get_pipe_reaction_schema(name)
|
||||
|
||||
def get_pipe_reaction(name: str, pipe: str) -> dict[str, Any]:
|
||||
return api.get_pipe_reaction(name, pipe)
|
||||
|
||||
def set_pipe_reaction(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return api.set_pipe_reaction(name, cs)
|
||||
|
||||
def get_tank_reaction_schema(name: str) -> dict[str, dict[str, Any]]:
|
||||
return api.get_tank_reaction_schema(name)
|
||||
|
||||
def get_tank_reaction(name: str, tank: str) -> dict[str, Any]:
|
||||
return api.get_tank_reaction(name, tank)
|
||||
|
||||
def set_tank_reaction(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return api.set_tank_reaction(name, cs)
|
||||
|
||||
|
||||
############################################################
|
||||
# mixing 20.[MIXING]
|
||||
############################################################
|
||||
@@ -581,6 +613,13 @@ def set_time(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return api.set_time(name, cs)
|
||||
|
||||
|
||||
############################################################
|
||||
# report 22.[REPORT]
|
||||
############################################################
|
||||
|
||||
# hardcode...
|
||||
|
||||
|
||||
############################################################
|
||||
# option 23.[OPTIONS]
|
||||
############################################################
|
||||
|
||||
Reference in New Issue
Block a user