Example #1
0
    def __init__(self, scenario):
        """
        Initialization of a generic processor object.

        @param  scenario        The ScenarioRunner object this processor object is part of.
        """
        processor.__init__(self, scenario)
Example #2
0
    def __init__(self, scenario):
        """
        Initialization of a generic processor object.

        @param  scenario        The ScenarioRunner object this processor object is part of.
        """
        processor.__init__(self, scenario)
        # TODO: Your initialization, if any (not likely). Oh, and remove the next line.
        raise Exception( "DO NOT instantiate the skeleton implementation" )
Example #3
0
    def __init__(self, scenario):
        """
        Initialization of a generic processor object.

        @param  scenario        The ScenarioRunner object this processor object is part of.
        """
        processor.__init__(self, scenario)
        if not gnuplot.gnuplot:
            if os.path.exists( '/bin/gnuplot' ):
                gnuplot.gnuplot = '/bin/gnuplot'
            elif os.path.exists( '/usr/bin/gnuplot' ):
                gnuplot.gnuplot = '/usr/bin/gnuplot'
            else:
                out, _ = Popen( 'which gnuplot', stdout = PIPE, shell = True ).communicate()
                if out is None or out == '' or not os.path.exists( 'out' ):
                    raise Exception( "processor:gnuplot requires the gnuplot utility to be present" )
                gnuplot.gnuplot = out