K - the type of the belief name or key.V - the type of the belief value.public interface Belief<K,V> extends java.io.Serializable, jade.content.Concept, jade.content.ContentElement, MetadataElement, java.lang.Cloneable
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.lang.Object |
clone()
Clones a belief.
|
java.util.Set<BeliefBase> |
getBeliefBases()
Returns the belief bases with which this belief is associated.
|
K |
getName()
Returns the name of this belief.
|
V |
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(V value)
Sets the new value of the belief.
|
getMetadata, getMetadata, hasMetadata, putMetadata, removeMetadatavoid addBeliefBase(BeliefBase beliefBase)
beliefBase - the belief base to be added.java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - if an implementation of a belief does not support clone.java.util.Set<BeliefBase> getBeliefBases()
K getName()
V getValue()
void removeBeliefBase(BeliefBase beliefBase)
beliefBase - the belief base to be removed.void setValue(V value)
value - the new value.