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;
17:
18: import java.util.Date;
19:
20: /**
21: * An empty interface that is the super interface for all measuremnts we take
22: * from the kickstart records.
23: *
24: * @author Karan Vahi vahi@isi.edu
25: * @version $Revision: 50 $
26: */
27:
28: public interface Measurement {
29:
30: /**
31: * Returns the job for which the measurement was taken.
32: *
33: * @return the name of the job.
34: */
35: public String getJobName();
36:
37: /**
38: * Returns the time at which the measurement was taken.
39: *
40: * @return the Date object representing the time.
41: */
42: public Date getTime();
43:
44: /**
45: * Returns the value of the measurement.
46: *
47: * @return the value.
48: */
49: public Object getValue();
50:
51: /**
52: * Sets the job for which the measurement was taken.
53: *
54: * @param sets the name of the job.
55: */
56: public void setJobName(String name);
57:
58: /**
59: * Sets the time at which the measurement was taken.
60: *
61: * @param time the Date object representing the time.
62: */
63: public void setTime(Date time);
64:
65: /**
66: * Sets the value of the measurement.
67: *
68: * @param value the value to be associated with measurement.
69: */
70: public void setValue(Object value);
71:
72: }
|