Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Action.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Action:
"""Define Action Class"""

def __init__(self, expression: str):
self.expression = expression

Expand Down
2 changes: 2 additions & 0 deletions src/Actions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Actions:
"""Define and check actions"""

def __init__(self, actions=None):
if actions is None:
actions = []
Expand Down
2 changes: 2 additions & 0 deletions src/Condition.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Condition:
"""Define a Condition Class"""

def __init__(self, expression: str, result: str):
self.expression = expression
self.result = result
Expand Down
2 changes: 2 additions & 0 deletions src/Conditions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Conditions:
"""Define Conditions"""

def __init__(self, conditions=None):
if conditions is None:
conditions = []
Expand Down
2 changes: 2 additions & 0 deletions src/Event.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@


class Event:
"""Construct an Event class"""

def __init__(self, name: str, to_state: str, pre_conditions: Conditions, post_conditions: Conditions, pre_actions: Actions, post_actions: Actions):
self.name = name
self.to_state = to_state
Expand Down
2 changes: 2 additions & 0 deletions src/State.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class State:
"""Define the state class"""

def __init__(self, name: str, events=None):
if events is None:
events = {}
Expand Down
1 change: 1 addition & 0 deletions tests/testBaseStateMachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def printTest():


class TestBaseStateMachine(unittest.TestCase):
"""Test state machine using various samples"""

def test1(self):

Expand Down