T - the type of the belief value.public interface Belief<T> extends MetadataElement, java.io.Serializable, jade.content.Concept
MetadataElement interface, allowing to associate
metadata with beliefs.| Modifier and Type | Method and Description |
|---|---|
void |
addBeliefBase(BeliefBase beliefBase)
Adds a belief base that contains this belief.
|
java.util.Set<BeliefBase> |
getBeliefBases()
Returns the belief bases with which this belief is associated.
|
java.lang.String |
getName()
Returns the name of this belief.
|
T |
getValue()
Gets the current value of the belief.
|
void |
removeBeliefBase(BeliefBase beliefBase)
Removes a belief base that does not contain this belief anymore.
|
void |
setValue(T value)
Sets the new value of the belief.
|
getMetadata, getMetadata, hasMetadata, putMetadata, removeMetadatavoid addBeliefBase(BeliefBase beliefBase)
beliefBase - the belief base to be added.java.util.Set<BeliefBase> getBeliefBases()
java.lang.String getName()
T getValue()
void removeBeliefBase(BeliefBase beliefBase)
beliefBase - the belief base to be removed.void setValue(T value)
value - the new value.