28 lines
513 B
Python
28 lines
513 B
Python
from action import Action, Condition
|
|
|
|
|
|
class Entry:
|
|
|
|
def __init__(self, name: str, condition: Condition, success: Action, fail: Action):
|
|
self._name = name
|
|
self._action = condition
|
|
self._success = success
|
|
self._fail = fail
|
|
|
|
|
|
@property
|
|
def name(self):
|
|
return self._name
|
|
|
|
@property
|
|
def action(self):
|
|
return self._action
|
|
|
|
@property
|
|
def success(self):
|
|
return self._success
|
|
|
|
@property
|
|
def fail(self):
|
|
return self._fail
|