diff --git a/DecisionSystem/centralisedvoter.py b/DecisionSystem/centralisedvoter.py new file mode 100644 index 0000000..e577d05 --- /dev/null +++ b/DecisionSystem/centralisedvoter.py @@ -0,0 +1,5 @@ +import voter + +class BallotVoter(Voter): + def submit_vote(self): + pass \ No newline at end of file diff --git a/DecisionSystem/commander.py b/DecisionSystem/commander.py new file mode 100644 index 0000000..1342806 --- /dev/null +++ b/DecisionSystem/commander.py @@ -0,0 +1,6 @@ +class Commander: + def get_votes(self): + raise Exception("Vote cannot be submitted as it's not implemented") + + def make_decision(self): + raise Exception("Vote cannot be submitted as it's not implemented") \ No newline at end of file diff --git a/DecisionSystem/decentralisedvoter.py b/DecisionSystem/decentralisedvoter.py new file mode 100644 index 0000000..ecf9ad0 --- /dev/null +++ b/DecisionSystem/decentralisedvoter.py @@ -0,0 +1,7 @@ +import voter + +class VoteReplicator(Voter): + def __init__(self): + pass + + \ No newline at end of file diff --git a/DecisionSystem/executor.py b/DecisionSystem/executor.py new file mode 100644 index 0000000..607ae6c --- /dev/null +++ b/DecisionSystem/executor.py @@ -0,0 +1,2 @@ +class Executor: + pass \ No newline at end of file diff --git a/DecisionSystem/timeoutexecutor.py b/DecisionSystem/timeoutexecutor.py new file mode 100644 index 0000000..39f56b6 --- /dev/null +++ b/DecisionSystem/timeoutexecutor.py @@ -0,0 +1,5 @@ +import executor + +class TimeoutExecutor(Executor): + pass + \ No newline at end of file diff --git a/DecisionSystem/vote.py b/DecisionSystem/vote.py new file mode 100644 index 0000000..e1523c2 --- /dev/null +++ b/DecisionSystem/vote.py @@ -0,0 +1,23 @@ +class Vote: + def __init__(self, voter, vote): + self._voter = voter + self._vote = vote + + @property + def voter(self): + return self._voter + + @voter.setter + def voter(self, value): + self._voter = value + + @property + def vote(self): + return self._vote + + @vote.setter + def vote(self, value): + self._vote = value + + def to_string(self): + pass \ No newline at end of file diff --git a/DecisionSystem/voter.py b/DecisionSystem/voter.py new file mode 100644 index 0000000..36d8616 --- /dev/null +++ b/DecisionSystem/voter.py @@ -0,0 +1,4 @@ +class Voter: + def submit_vote(self): + raise Exception("Vote cannot be submitted as it's not implemented") + \ No newline at end of file