From e694075c7fdcc9c4579d55b792da7a1391401b35 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 27 Mar 2018 16:40:59 +0200 Subject: testbeds, prototypes, model: Add docstrings This adds docstrings for methods of in the testbeds, prototypes and certain things in the model. --- rumba/model.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'rumba/model.py') 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 -- cgit v1.2.3