-
Notifications
You must be signed in to change notification settings - Fork 1
/
view_configuration_simulation.py
57 lines (40 loc) · 1.64 KB
/
view_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 pygtk
import gtk
import view
class ViewConfigurationSimulation(view.View):
""" The ViewConfigurationSimulation class is a specific view that inherits from the general View class and is used as a parent class to visualise the configuration window for the simulations and contains a ControllerConfigurationSimulation object. """
A_GILLESPIE = 0
A_TAULEAP = 1
_algorithm = None
def __init__(self):
""" Constructor of ViewConfigurationSimulation. """
# call constructor of parent class
view.View.__init__(self)
# set title
self._window.set_title("Configuration: Simulation")
def __init__(self, model = None, controller = None):
""" Constructor of ViewConfigurationSimulation. """
# call constructor of parent class
view.View.__init__(self, model, controller)
# set title
self._window.set_title("Configuration: Simulation")
def show(self):
""" Interface to create and display the GUI on the screen. """
pass
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 undo(self):
""" Interface to notify Observer objects about an undo. """
pass
if __name__ == "__main__":
app = ViewConfigurationSimulation()
app.show()
gtk.main()