public class JobMeasurements extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
JobMeasurements()
The default constructor.
|
JobMeasurements(String name)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public JobMeasurements()
public JobMeasurements(String name)
name
- the name of the jobpublic void setMeasurement(Measurement measurement, int type)
measurement
- the measurement to be associatedtype
- the event typepublic 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 valueCopyright © 2011 The University of Southern California. All Rights Reserved.