Package edu.isi.pegasus.planner.refiner
Class DataReuseEngine.BooleanBag
- java.lang.Object
-
- edu.isi.pegasus.planner.refiner.DataReuseEngine.BooleanBag
-
- All Implemented Interfaces:
Bag
- Enclosing class:
- DataReuseEngine
public class DataReuseEngine.BooleanBag extends java.lang.Object implements Bag
A bag implementation that cam be used to hold a boolean value associated with the graph node
-
-
Field Summary
Fields Modifier and Type Field Description private booleanmBooleanThe boolean value
-
Constructor Summary
Constructors Constructor Description BooleanBag()The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(boolean b)Adds a boolean value to the bagbooleanadd(java.lang.Object key, java.lang.Object value)Ignores the key and only adds the value .booleancontainsKey(java.lang.Object key)Returns false.java.lang.Objectget(java.lang.Object key)For all keys returns the boolean valuebooleangetBooleanValue()Returns the boolean value
-
-
-
Method Detail
-
getBooleanValue
public boolean getBooleanValue()
Returns the boolean value- Returns:
-
get
public java.lang.Object get(java.lang.Object key)
For all keys returns the boolean value
-
add
public boolean add(java.lang.Object key, java.lang.Object value)Ignores the key and only adds the value . The value should be a boolean
-
containsKey
public boolean containsKey(java.lang.Object key)
Returns false. You cannot associate a key with this bag.- Specified by:
containsKeyin interfaceBag- Parameters:
key-- Returns:
- false
-
add
public void add(boolean b)
Adds a boolean value to the bag- Parameters:
b- the boolean value
-
-