| java.lang.Object org.griphyn.cPlanner.visualize.nodeusage.Ploticus
Ploticus | public class Ploticus (Code) | | An implementation that plots in the Ploticus format.
author: Karan Vahi version: $Revision: 50 $ |
Constructor Summary | |
public | Ploticus() The default constructor. |
Method Summary | |
protected String | constructEntry(String job, float time, long measurement) Returns an entry that needs to be plotted in the graph. | public void | generateScriptFile(String name, String dataFile, String yUnits, float maxX, float maxY) Generates the script file required to give as input to ploticus. | protected String | getFilename(String site, String suffix) Returns the filename of the ploticus file to be generated.
Parameters: site - the site handle. Parameters: suffix - the suffix to be applied to the file. | public void | initialize(String directory, String basename, boolean useStatInfo) Initializer method. | public List | plot(WorkflowMeasurements wm, char unit, String timeUnits) Plot out the space usage. |
DEFAULT_TIMING_UNITS | final public static String DEFAULT_TIMING_UNITS(Code) | | The default timing units.
|
HOURS_TIMING_UNITS | final public static String HOURS_TIMING_UNITS(Code) | | The minutes unit for the x axis.
|
MINUTES_TIMING_UNITS | final public static String MINUTES_TIMING_UNITS(Code) | | The minutes unit for the x axis.
|
Ploticus | public Ploticus()(Code) | | The default constructor.
|
constructEntry | protected String constructEntry(String job, float time, long measurement)(Code) | | Returns an entry that needs to be plotted in the graph.
Parameters: jobname - the name of the associated job. Parameters: time - the time Parameters: measurement - measurement the entry to be logged |
generateScriptFile | public void generateScriptFile(String name, String dataFile, String yUnits, float maxX, float maxY) throws IOException(Code) | | Generates the script file required to give as input to ploticus.
Parameters: name - the path to the script file. Parameters: dataFile - the path to corresponding data file. Parameters: yUnits - the units for the space value. Parameters: maxX - the time in seconds. Parameters: maxY - the maximum space. |
getFilename | protected String getFilename(String site, String suffix)(Code) | | Returns the filename of the ploticus file to be generated.
Parameters: site - the site handle. Parameters: suffix - the suffix to be applied to the file. the path to the file. |
initialize | public void initialize(String directory, String basename, boolean useStatInfo)(Code) | | Initializer method.
Parameters: directory - the directory where the plots need to be generated. Parameters: basename - the basename for the files that are generated. Parameters: useStatInfo - boolean indicating whether to use stat info or not. |
plot | public List plot(WorkflowMeasurements wm, char unit, String timeUnits) throws IOException(Code) | | Plot out the space usage. Writes out a Ploticus data file.
Parameters: wm - the workflow measurements. Parameters: unit - the unit in which we need to plot the number. Parameters: timeUnits - units in which to plot time. List of file pathnames for the files that are written out. exception: IOException - in case of unable to write to the file. |
|
|