diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2018-03-27 16:40:59 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-03-28 16:41:40 +0200 |
commit | e694075c7fdcc9c4579d55b792da7a1391401b35 (patch) | |
tree | cc75c83e5ef17133c2f9e754be3eb0ebee4d6984 /rumba/model.py | |
parent | a1bddf0ab2cd7bee30b1f0dc1575c0b8c532e157 (diff) | |
download | rumba-e694075c7fdcc9c4579d55b792da7a1391401b35.tar.gz rumba-e694075c7fdcc9c4579d55b792da7a1391401b35.zip |
testbeds, prototypes, model: Add docstrings
This adds docstrings for methods of in the testbeds, prototypes and
certain things in the model.
Diffstat (limited to 'rumba/model.py')
-rw-r--r-- | rumba/model.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/rumba/model.py b/rumba/model.py index a8d4664..d05e7fe 100644 --- a/rumba/model.py +++ b/rumba/model.py @@ -88,6 +88,11 @@ class Testbed(object): self.system_logs = system_logs def swap_in(self, experiment): + """ + Swaps experiment in + + :param experiment: The experiment. + """ for node in experiment.nodes: node.executor = self.executor @@ -101,8 +106,16 @@ class Testbed(object): def _swap_in(self, experiment): logger.info("_swap_in(): nothing to do") - @abc.abstractmethod def swap_out(self, experiment): + """ + Swaps experiment out + + :param experiment: The experiment. + """ + self._swap_out(experiment) + + @abc.abstractmethod + def _swap_out(self, experiment): logger.info("swap_out(): nothing to do") # Base class for DIFs |