enumerators are now IntEnum objects, which provides simpler typing.
This commit is contained in:
parent
73d13d4d62
commit
f684b2fd95
@ -11,7 +11,7 @@ class ParticipantType(IntFlag):
|
|||||||
PORT_ADMINISTRATION = 32
|
PORT_ADMINISTRATION = 32
|
||||||
TUG = 64
|
TUG = 64
|
||||||
|
|
||||||
class ShipcallType(Enum):
|
class ShipcallType(IntEnum):
|
||||||
"""determines the type of a shipcall, as this changes the applicable validation rules"""
|
"""determines the type of a shipcall, as this changes the applicable validation rules"""
|
||||||
INCOMING = 1
|
INCOMING = 1
|
||||||
OUTGOING = 2
|
OUTGOING = 2
|
||||||
@ -28,7 +28,7 @@ class ParticipantwiseTimeDelta():
|
|||||||
|
|
||||||
NOTIFICATION = 10.0 # after n minutes, an evaluation may rise a notification
|
NOTIFICATION = 10.0 # after n minutes, an evaluation may rise a notification
|
||||||
|
|
||||||
class StatusFlags(Enum):
|
class StatusFlags(IntEnum):
|
||||||
"""
|
"""
|
||||||
these enumerators ensure that each traffic light validation rule state corresponds to a value, which will be used in the ValidationRules object to identify
|
these enumerators ensure that each traffic light validation rule state corresponds to a value, which will be used in the ValidationRules object to identify
|
||||||
the necessity of notifications.
|
the necessity of notifications.
|
||||||
@ -39,6 +39,7 @@ class StatusFlags(Enum):
|
|||||||
RED = 3
|
RED = 3
|
||||||
|
|
||||||
class PierSide(IntEnum):
|
class PierSide(IntEnum):
|
||||||
|
"""These enumerators determine the pier side of a shipcall."""
|
||||||
PORTSIDE = 0 # Port/Backbord
|
PORTSIDE = 0 # Port/Backbord
|
||||||
STARBOARD_SIDE = 1 # Starboard / Steuerbord
|
STARBOARD_SIDE = 1 # Starboard / Steuerbord
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user