diff options
author | Marco Capitani <m.capitani@nextworks.it> | 2017-04-21 16:06:22 +0200 |
---|---|---|
committer | Marco Capitani <m.capitani@nextworks.it> | 2017-04-21 16:06:22 +0200 |
commit | 2da2f7f095dd985e6beb57be4b239f3b0eb87973 (patch) | |
tree | 49f1f8f0f5568dc17b28aac6d0f9299aba81139c /rumba/model.py | |
parent | 26e3e22cd6ca6676b7b99624764f8e6f1ae1479d (diff) | |
parent | 92e114b4bd567593b43d6a065be52ca265bd13a4 (diff) | |
download | rumba-2da2f7f095dd985e6beb57be4b239f3b0eb87973.tar.gz rumba-2da2f7f095dd985e6beb57be4b239f3b0eb87973.zip |
Merge branch 'master' into logging (split merged)
Diffstat (limited to 'rumba/model.py')
-rw-r--r-- | rumba/model.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/rumba/model.py b/rumba/model.py index 4c3985d..1fa007c 100644 --- a/rumba/model.py +++ b/rumba/model.py @@ -532,16 +532,17 @@ class Experiment: self.compute_ipcps() @abc.abstractmethod - def run_prototype(self): + def install_prototype(self): raise Exception('run_prototype() method not implemented') - def run(self): - try: - # Realize the experiment testbed (testbed-specific) - self.testbed.swap_in(self) + @abc.abstractmethod + def bootstrap_prototype(self): + raise Exception('run_prototype() method not implemented') + + def swap_in(self): + # Realize the experiment testbed (testbed-specific) + self.testbed.swap_in(self) - # Run the experiment using the prototype (prototype-specific) - self.run_prototype() - finally: - # No matter what happens, undo the testbed (testbed-specific) - self.testbed.swap_out(self) + def swap_out(self): + # Undo the testbed (testbed-specific) + self.testbed.swap_out(self) |