01: /*
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */
15:
16: package org.griphyn.cPlanner.visualize.spaceusage;
17:
18: import java.io.IOException;
19:
20: import java.util.List;
21:
22: /**
23: * A plot interface that allows us to plot the SpaceUsage in different
24: * formats.
25: *
26: * @author Karan Vahi
27: * @version $Revision: 50 $
28: */
29:
30: public interface Plot {
31:
32: /**
33: * The version of this API
34: */
35: public static final String VERSION = "1.3";
36:
37: /**
38: * Initializer method.
39: *
40: * @param directory the directory where the plots need to be generated.
41: * @param basename the basename for the files that are generated.
42: * @param useStatInfo boolean indicating whether to use stat info or not.
43: */
44: public void initialize(String directory, String basename,
45: boolean useStatInfo);
46:
47: /**
48: * Plot out the space usage.
49: *
50: * @param su the SpaceUsage.
51: * @param sizeUnits the size unit.
52: * @param timeUnits the time unit.
53: *
54: * @return List of file pathnames for the files that are written out.
55: *
56: * @exception IOException in case of unable to write to the file.
57: */
58: public List plot(SpaceUsage su, char u, String timeUnits)
59: throws IOException;
60:
61: }
|