|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.visualize.JobMeasurements
public class JobMeasurements
A data class that associates at most three measurements with the job corresponding to the GRIDSTART_PREJOB, GRIDSTART_MAINJOB and GRIDSTART_POSTJOB.
| Field Summary | |
|---|---|
static int |
GRIDSTART_MAINJOB_EVENT_TYPE
The MAINJOB data index. |
static int |
GRIDSTART_POSTJOB_EVENT_TYPE
The POSTJOB data index. |
static int |
GRIDSTART_PREJOB_EVENT_TYPE
The PREJOB data index. |
private List |
mMeasurementList
The list of Measurement objects. |
private String |
mName
The name of the job. |
private List |
mTimeList
The corresponding list of Date objects signifying the times at which an event happened. |
| Constructor Summary | |
|---|---|
JobMeasurements()
The default constructor. |
|
JobMeasurements(String name)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
Measurement |
getMeasurement(int type)
Returns the measurement corresponding to the event type. |
Iterator |
measurementsIterator()
Returns the readings iterator. |
void |
setMeasurement(Measurement measurement,
int type)
Adds a measurement for a particular event type. |
void |
setTime(Date time,
int type)
Adds a time for a particular event type. |
String |
toString()
Returns a textual description of the object. |
boolean |
typeInRange(int type)
Returns a boolean indicating whether the event type is in range of not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int GRIDSTART_PREJOB_EVENT_TYPE
public static final int GRIDSTART_MAINJOB_EVENT_TYPE
public static final int GRIDSTART_POSTJOB_EVENT_TYPE
private String mName
private List mMeasurementList
private List mTimeList
| Constructor Detail |
|---|
public JobMeasurements()
public JobMeasurements(String name)
name - the name of the job| Method Detail |
|---|
public void setMeasurement(Measurement measurement,
int type)
measurement - the measurement to be associatedtype - the event type
public void setTime(Date time,
int type)
time - the timetype - the event typepublic Measurement getMeasurement(int type)
type - event type.
Measurement object if data exists else nullpublic Iterator measurementsIterator()
public boolean typeInRange(int type)
type - the type valuepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||