fern.simulation.observer
Interface GnuPlotObserver

All Known Implementing Classes:
AmountAtMomentObserver, AmountIntervalObserver, FireTypeObserver, IntervalObserver, LeapObserver, MultiAmountIntervalObserver, RandomNumberGeneratorCallObserver, ReactionIntervalObserver

public interface GnuPlotObserver

Interface for certain observer which can produce gnuplot data.

Author:
Florian Erhard

Method Summary
 String[] getStyles()
          Gets the styles for the columns.
 GnuPlot toGnuplot()
          Creates a new GnuPlot object and passes the actual observer data to it.
 GnuPlot toGnuplot(GnuPlot gnuplot)
          Passes the actual observer data to a GnuPlot object.
 

Method Detail

getStyles

String[] getStyles()
Gets the styles for the columns. If you don't want styles, just return null!

Returns:
styles for the columns

toGnuplot

GnuPlot toGnuplot()
                  throws IOException
Creates a new GnuPlot object and passes the actual observer data to it.

Returns:
the created GnuPlot object
Throws:
IOException - if gnuplot could not be accessed

toGnuplot

GnuPlot toGnuplot(GnuPlot gnuplot)
                  throws IOException
Passes the actual observer data to a GnuPlot object.

Parameters:
gnuplot - the GnuPlot object to pass the data to
Returns:
the GnuPlot object
Throws:
IOException - if gnuplot could not be accessed