|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.partitioner.graph.LabelBag
public class LabelBag
A bag implementation that just holds a particular value for the label key. This bag implements just contains one object, and a null value is associated by default with the label.
| Field Summary | |
|---|---|
static String |
LABEL_KEY
The default key that is associated with label. |
private Object |
mPartitionID
The value for the partition key. |
private Object |
mValue
The value for the Label. |
static String |
PARTITION_KEY
The key that designates the partition to which a node belongs to. |
| Constructor Summary | |
|---|---|
LabelBag()
The default constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(Object key,
Object value)
Adds an object to the underlying bag corresponding to a particular key. |
boolean |
containsKey(Object key)
Returns true if the namespace contains a mapping for the specified key. |
Object |
get(Object key)
Returns an objects corresponding to the key passed. |
static void |
setLabelKey(String key)
Sets the label key that is to be associated with the bag. |
String |
toString()
Returns a textual description of the Bag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String LABEL_KEY
public static final String PARTITION_KEY
private Object mValue
private Object mPartitionID
| Constructor Detail |
|---|
public LabelBag()
| Method Detail |
|---|
public static void setLabelKey(String key)
public Object get(Object key)
get in interface Bagkey - the key corresponding to which the objects need to be returned.
public boolean add(Object key,
Object value)
add in interface Bagkey - the key with which the value has to be associated.value - the value to be associated with the key.
public boolean containsKey(Object key)
containsKey in interface Bagkey - The key that you want to search for in the bag.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||