-
Notifications
You must be signed in to change notification settings - Fork 1
/
controller_configuration_simulation.py
57 lines (42 loc) · 1.77 KB
/
controller_configuration_simulation.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/python
import model as m
import controller as c
class ControllerConfigurationSimulation(c.Controller):
""" The ControllerConfigurationSimulation class is a specific controller that inherits from the general Controller class and is used as a parent class to manage the user interactions of the simulation configuration window and the application (ViewConfigurationSimulation). """
def __init__(self):
""" Constructor of ControllerConfigurationSimulation. """
# call constructor of parent class
c.Controller.__init__(self)
def __init__(self, model = None, view = None):
""" Constructor of ControllerConfigurationSimulation. """
# call constructor of parent class
c.Controller.__init__(self, model, view)
def update(self):
""" Interface to notify MVCObserver objects about a general data change. """
pass
def update_component(self, key):
""" Interface to notify Observer objects about a data change of a component. """
pass
def update_output(self):
""" Interface to notify Observer objects about a data change of simulation results. """
pass
def reset(self):
""" Interface to notify MVCObserver objects about a reset event. """
pass
def undo(self):
""" Interface to notify Observer objects about an undo. """
pass
@property
def algorithm(self):
""" Return algorithm. """
return self._algorithm
@algorithm.setter
def algorithm(self, alg):
""" Set algorithm. """
self._algorithm = alg
def gillespie_algorithm(self):
""" Execute Gillespie algorithm. """
pass
def tauleap_algorithm(self):
""" Execute Tau Leap algorithm. """
pass