public class JobSpace 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 String |
mName
The name of the job.
|
private List |
mSpaceList
The list of Space reading objects.
|
Constructor and Description |
---|
JobSpace()
The default constructor.
|
JobSpace(String name)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSpaceReading(Space space,
int type)
Adds a space record for a particular event type.
|
Space |
getSpaceReading(int type)
Returns the space reading for a particular type of job of event.
|
Iterator |
spaceReadingsIterator()
Returns the readings iterator.
|
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 mSpaceList
public JobSpace()
public JobSpace(String name)
name
- the name of the jobpublic void addSpaceReading(Space space, int type)
space
- the space record.type
- the type of jobpublic Space getSpaceReading(int type)
type
- event type.Space
object if data exists else nullpublic Iterator spaceReadingsIterator()
public boolean typeInRange(int type)
type
- the type valueCopyright © 2011 The University of Southern California. All Rights Reserved.