| |
|
| java.lang.Object org.griphyn.cPlanner.visualize.JobMeasurements
JobMeasurements | public class JobMeasurements (Code) | | A data class that associates at most three measurements with the job
corresponding to the GRIDSTART_PREJOB, GRIDSTART_MAINJOB and GRIDSTART_POSTJOB.
author: Karan Vahi vahi@isi.edu version: $Revision: 50 $ |
Method Summary | |
public Measurement | getMeasurement(int type) Returns the measurement corresponding to the event type.
Parameters: type - event type. | public Iterator | measurementsIterator() Returns the readings iterator. | public void | setMeasurement(Measurement measurement, int type) Adds a measurement for a particular event type. | public void | setTime(Date time, int type) Adds a time for a particular event type. | public String | toString() Returns a textual description of the object. | public boolean | typeInRange(int type) Returns a boolean indicating whether the event type is in range of not. |
GRIDSTART_MAINJOB_EVENT_TYPE | final public static int GRIDSTART_MAINJOB_EVENT_TYPE(Code) | | The MAINJOB data index.
|
GRIDSTART_POSTJOB_EVENT_TYPE | final public static int GRIDSTART_POSTJOB_EVENT_TYPE(Code) | | The POSTJOB data index.
|
GRIDSTART_PREJOB_EVENT_TYPE | final public static int GRIDSTART_PREJOB_EVENT_TYPE(Code) | | The PREJOB data index.
|
JobMeasurements | public JobMeasurements()(Code) | | The default constructor.
|
JobMeasurements | public JobMeasurements(String name)(Code) | | The overloaded constructor.
Parameters: name - the name of the job |
getMeasurement | public Measurement getMeasurement(int type)(Code) | | Returns the measurement corresponding to the event type.
Parameters: type - event type. Measurement object if data exists else null |
measurementsIterator | public Iterator measurementsIterator()(Code) | | Returns the readings iterator. Values can be null.
iterator to measurements. |
setMeasurement | public void setMeasurement(Measurement measurement, int type)(Code) | | Adds a measurement for a particular event type.
Parameters: measurement - the measurement to be associated Parameters: type - the event type |
setTime | public void setTime(Date time, int type)(Code) | | Adds a time for a particular event type.
Parameters: time - the time Parameters: type - the event type |
toString | public String toString()(Code) | | Returns a textual description of the object.
description |
typeInRange | public boolean typeInRange(int type)(Code) | | Returns a boolean indicating whether the event type is in range of not.
Parameters: type - the type value |
|
|
|