br.pucrio.inf.les.bdijade.belief
Class BeliefSet<T>
java.lang.Object
br.pucrio.inf.les.bdijade.util.MetadataElement
br.pucrio.inf.les.bdijade.belief.Belief<java.util.Set<T>>
br.pucrio.inf.les.bdijade.belief.BeliefSet<T>
- All Implemented Interfaces:
- jade.content.Concept, jade.content.Term, java.io.Serializable
- Direct Known Subclasses:
- TransientBeliefSet
public abstract class BeliefSet<T>
- extends Belief<java.util.Set<T>>
This class represents a belief that has a set of values associated with it.
- Author:
- ingrid
- See Also:
- Serialized Form
| Fields inherited from class br.pucrio.inf.les.bdijade.belief.Belief |
name |
|
Constructor Summary |
BeliefSet(java.lang.String name)
Creates a new belief set with the provided name. |
|
Method Summary |
abstract void |
addValue(T value)
Adds a new value to this belief set. |
abstract boolean |
hasValue(T value)
Checks if this belief set has the provided value. |
abstract java.util.Iterator<T> |
iterator()
Returns an iterator for this belief set. |
abstract boolean |
remove(T value)
Removes a value from this belief set. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
BeliefSet
public BeliefSet(java.lang.String name)
- Creates a new belief set with the provided name.
- Parameters:
name - the name of this belief set.
addValue
public abstract void addValue(T value)
- Adds a new value to this belief set.
- Parameters:
value - the value to be added.
hasValue
public abstract boolean hasValue(T value)
- Checks if this belief set has the provided value.
- Parameters:
value - the value to be tested.
- Returns:
- true if the belief set contains this value.
iterator
public abstract java.util.Iterator<T> iterator()
- Returns an iterator for this belief set.
- Returns:
- the iterator.
remove
public abstract boolean remove(T value)
- Removes a value from this belief set.
- Parameters:
value - the value to be removed.
- Returns:
- true if the value was removed.