def __init__(self, link_ppt_range, parameters, **kwargs): senderrunnercmd = kwargs.pop("senderrunnercmd") if senderrunnercmd is not None: parameters["command"] = senderrunnercmd self.senderrunner = SenderRunnerRunner(**parameters) self.console_dir = kwargs.pop("console_dir", None) super(SenderRunnerRemyCCPerformancePlotGenerator, self).__init__(link_ppt_range, **kwargs)
class SenderRunnerRemyCCPerformancePlotGenerator(SenderRunnerFilesMixin, BaseRemyCCPerformancePlotGenerator): """Generates data and plots by invoking sender-runner to generate a score for every point. In addition to the arguments taken by BaseRemyCCPerformancePlotGenerator: `parameters` is a dictionary of parameters to pass to sender-runner. `console_dir`, optional, is the directory to which sender-runner outputs will be written, one file per data point. """ def __init__(self, link_ppt_range, parameters, **kwargs): senderrunnercmd = kwargs.pop("senderrunnercmd") if senderrunnercmd is not None: parameters["command"] = senderrunnercmd self.senderrunner = SenderRunnerRunner(**parameters) self.console_dir = kwargs.pop("console_dir", None) super(SenderRunnerRemyCCPerformancePlotGenerator, self).__init__(link_ppt_range, **kwargs) def get_statistics(self, remyccfilename, link_ppt, **parameters): """Runs sender-runner on the given RemyCC `remyccfilename` and with the given parameters, and returns the normalized score and sender throughputs and delays. """ outfile = self.get_console_filename(remyccfilename, link_ppt) parameters['link_ppt'] = link_ppt output = self.senderrunner.run(remyccfilename, parameters, outfile=outfile) return self.parse_senderrunner_output(output)
class SenderRunnerRemyCCPerformancePlotGenerator( SenderRunnerFilesMixin, BaseRemyCCPerformancePlotGenerator): """Generates data and plots by invoking sender-runner to generate a score for every point. In addition to the arguments taken by BaseRemyCCPerformancePlotGenerator: `parameters` is a dictionary of parameters to pass to sender-runner. `console_dir`, optional, is the directory to which sender-runner outputs will be written, one file per data point. """ def __init__(self, link_ppt_range, parameters, **kwargs): senderrunnercmd = kwargs.pop("senderrunnercmd") if senderrunnercmd is not None: parameters["command"] = senderrunnercmd self.senderrunner = SenderRunnerRunner(**parameters) self.console_dir = kwargs.pop("console_dir", None) super(SenderRunnerRemyCCPerformancePlotGenerator, self).__init__(link_ppt_range, **kwargs) def get_statistics(self, remyccfilename, link_ppt): """Runs sender-runner on the given RemyCC `remyccfilename` and with the given parameters, and returns the normalized score and sender throughputs and delays. """ outfile = self.get_console_filename(remyccfilename, link_ppt) output = self.senderrunner.run(remyccfilename, {'link_ppt': link_ppt}, outfile=outfile) return self.parse_senderrunner_output(output)