Reuse s0 defined enum

This commit is contained in:
wqy
2022-09-03 10:38:15 +08:00
parent f16a16991e
commit c3dcf70a04
2 changed files with 7 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ from .operation import execute_redo as redo
from .operation import have_snapshot, take_snapshot, pick_snapshot from .operation import have_snapshot, take_snapshot, pick_snapshot
from .operation import have_transaction, start_transaction, commit_transaction, abort_transaction from .operation import have_transaction, start_transaction, commit_transaction, abort_transaction
from .s0_base import JUNCTION, RESERVOIR, TANK, PIPE, PUMP, VALVE
from .s0_base import is_node, is_junction, is_reservoir, is_tank from .s0_base import is_node, is_junction, is_reservoir, is_tank
from .s0_base import is_link, is_pipe, is_pump, is_valve from .s0_base import is_link, is_pipe, is_pump, is_valve
from .s0_base import is_curve from .s0_base import is_curve

View File

@@ -5,12 +5,12 @@ import api
# enum # enum
############################################################ ############################################################
JUNCTION = "JUNCTION" JUNCTION = api.JUNCTION
RESERVOIR = "RESERVOIR" RESERVOIR = api.RESERVOIR
TANK = "TANK" TANK = api.TANK
PIPE = "PIPE" PIPE = api.PIPE
PUMP = "PUMP" PUMP = api.PUMP
VALVE = "VALVE" VALVE = api.VALVE
############################################################ ############################################################