public class HeftBag
extends java.lang.Object
implements edu.isi.pegasus.planner.partitioner.graph.Bag
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
ACTUAL_FINISH_TIME
The constant to be passed to the accessor functions to get or set the
actual end time for a job.
|
static java.lang.Integer |
ACTUAL_START_TIME
The constant to be passed to the accessor functions to get or set the
actual start time for a job.
|
static java.lang.Integer |
AVG_COMPUTE_TIME
The constant to be passed to the accessor functions to get or set the
average compute time for the node.
|
static java.lang.Integer |
DOWNWARD_RANK
The constant to be passed to the accessor functions to get or set the
downward rank for a node.
|
static java.lang.String[] |
HEFTINFO
Array storing the names of the attributes that are stored with the
site.
|
private float |
mAvgComputeTime
The average compute time for a node.
|
private float |
mDownwardRank
The downward rank for a node.
|
private long |
mEndTime
The estimated end time for a job.
|
private java.lang.String |
mScheduledSite
The site where a job is scheduled to run.
|
private long |
mStartTime
The estimated start time for a job.
|
private float |
mUpwardRank
The upward rank for a node.
|
static java.lang.Integer |
SCHEDULED_SITE
The site where the job is scheduled.
|
static java.lang.Integer |
UPWARD_RANK
The constant to be passed to the accessor functions to get or set the
upward rank for a node.
|
Constructor and Description |
---|
HeftBag()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object key,
java.lang.Object value)
Adds an object to the underlying bag corresponding to a particular key.
|
boolean |
containsKey(java.lang.Object key)
Returns true if the namespace contains a mapping for the specified key.
|
java.lang.Object |
get(java.lang.Object key)
Returns an objects corresponding to the key passed.
|
private int |
getIntValue(java.lang.Object key)
A convenience method to get the intValue for the object passed.
|
public static final java.lang.String[] HEFTINFO
public static final java.lang.Integer AVG_COMPUTE_TIME
public static final java.lang.Integer DOWNWARD_RANK
public static final java.lang.Integer UPWARD_RANK
public static final java.lang.Integer ACTUAL_START_TIME
public static final java.lang.Integer ACTUAL_FINISH_TIME
public static final java.lang.Integer SCHEDULED_SITE
private float mAvgComputeTime
private float mDownwardRank
private float mUpwardRank
private long mStartTime
private long mEndTime
private java.lang.String mScheduledSite
public boolean add(java.lang.Object key, java.lang.Object value)
add
in interface edu.isi.pegasus.planner.partitioner.graph.Bag
key
- the key with which the value has to be associated.value
- the value to be associated with the key.public boolean containsKey(java.lang.Object key)
containsKey
in interface edu.isi.pegasus.planner.partitioner.graph.Bag
key
- The key that you want to search for in the bag.public java.lang.Object get(java.lang.Object key)
get
in interface edu.isi.pegasus.planner.partitioner.graph.Bag
key
- the key corresponding to which the objects need to be
returned.private int getIntValue(java.lang.Object key)
key
- the key to be converted