SSF.Util.Plot
Class TimeSeries

java.lang.Object
  |
  +--SSF.Util.Plot.TimeSeries

public class TimeSeries
extends java.lang.Object

Component for plotting time-series of data (NIC queue data and netflow data).
Simple application wrapper to bin data, view time-series or output to file. Generate live (animated) plot or plot file (PlotML or ascii).

Use -help option for help on usage and options.

TO DO:

  • Inefficient, has to aggregate the whole trace in memory before plotting.



  • Field Summary
    protected static char ASCII_FILE
               
    static float BAR_WIDTH
              Width of bars as fraction of time-bin size
    static float BIN_SIZE
              Default setting for the time-bin size
     java.lang.Object[][] dataVector
              Data input for data generated from file.
    static java.lang.String[] FIELD_SYMBS
               
    protected static char LIVE_FROM_FILE
               
    protected static int PLOT_LOOP_DELAY
               
    protected static char PLOTML_FILE
               
    protected static int POINT_PLOT_DELAY
               
    static int RESCALE_STEP
              Default setting to rescale live plot after each data point.
    protected static char STATIC_FROM_FILE
               
     
    Constructor Summary
    TimeSeries()
              Default constructor.
     
    Method Summary
    static void main(java.lang.String[] args)
               
    static void printHelp()
               
     void writeAsciidata(float binSize)
              Write flow data vector in ascii format
     void writePlotMLdata(float binSize)
              Write flow data vector in PlotML format
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    BIN_SIZE

    public static final float BIN_SIZE
    Default setting for the time-bin size

    See Also:
    Constant Field Values

    BAR_WIDTH

    public static final float BAR_WIDTH
    Width of bars as fraction of time-bin size

    See Also:
    Constant Field Values

    PLOTML_FILE

    protected static final char PLOTML_FILE
    See Also:
    Constant Field Values

    LIVE_FROM_FILE

    protected static final char LIVE_FROM_FILE
    See Also:
    Constant Field Values

    STATIC_FROM_FILE

    protected static final char STATIC_FROM_FILE
    See Also:
    Constant Field Values

    ASCII_FILE

    protected static final char ASCII_FILE
    See Also:
    Constant Field Values

    POINT_PLOT_DELAY

    protected static final int POINT_PLOT_DELAY
    See Also:
    Constant Field Values

    PLOT_LOOP_DELAY

    protected static final int PLOT_LOOP_DELAY
    See Also:
    Constant Field Values

    RESCALE_STEP

    public static final int RESCALE_STEP
    Default setting to rescale live plot after each data point.

    See Also:
    Constant Field Values

    FIELD_SYMBS

    public static final java.lang.String[] FIELD_SYMBS

    dataVector

    public java.lang.Object[][] dataVector
    Data input for data generated from file. Each row is one dataset.

    Constructor Detail

    TimeSeries

    public TimeSeries()
    Default constructor. Does nothing. (handled by "main")

    Method Detail

    writePlotMLdata

    public void writePlotMLdata(float binSize)
    Write flow data vector in PlotML format


    writeAsciidata

    public void writeAsciidata(float binSize)
    Write flow data vector in ascii format


    printHelp

    public static void printHelp()

    main

    public static void main(java.lang.String[] args)