Package jadex.bdiv3x.runtime
Interface IBeliefSet
- 
- All Superinterfaces:
 IElement
- All Known Implementing Classes:
 RBeliefbase.RBeliefSet
public interface IBeliefSet extends IElement
Interface for all beliefsets (concrete and referenced). 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> voidaddBeliefSetListener(IBeliefListener<T> listener)Add a belief set listener.voidaddFact(java.lang.Object fact)Add a fact to a belief.voidaddFacts(java.lang.Object[] values)Add facts to a parameter set.booleancontainsFact(java.lang.Object fact)Test if a fact is contained in a belief.java.lang.Class<?>getClazz()Get the value class.java.lang.ObjectgetFact(java.lang.Object oldval)Get a value equal to the given object.java.lang.Object[]getFacts()Get the facts of a beliefset.voidmodified(java.lang.Object fact)Indicate that a fact of this belief set was modified.<T> voidremoveBeliefSetListener(IBeliefListener<T> listener)Remove a belief set listener.voidremoveFact(java.lang.Object fact)Remove a fact to a belief.voidremoveFacts()Remove all facts from a belief.intsize()Get the number of values currently contained in this set.- 
Methods inherited from interface jadex.bdiv3x.runtime.IElement
getModelElement 
 - 
 
 - 
 
- 
- 
Method Detail
- 
addFact
void addFact(java.lang.Object fact)
Add a fact to a belief.- Parameters:
 fact- The new fact.
 
- 
removeFact
void removeFact(java.lang.Object fact)
Remove a fact to a belief.- Parameters:
 fact- The new fact.
 
- 
addFacts
void addFacts(java.lang.Object[] values)
Add facts to a parameter set. 
- 
removeFacts
void removeFacts()
Remove all facts from a belief. 
- 
getFact
java.lang.Object getFact(java.lang.Object oldval)
Get a value equal to the given object.- Parameters:
 oldval- The old value.
 
- 
containsFact
boolean containsFact(java.lang.Object fact)
Test if a fact is contained in a belief.- Parameters:
 fact- The fact to test.- Returns:
 - True, if fact is contained.
 
 
- 
getFacts
java.lang.Object[] getFacts()
Get the facts of a beliefset.- Returns:
 - The facts.
 
 
- 
size
int size()
Get the number of values currently contained in this set.- Returns:
 - The values count.
 
 
- 
modified
void modified(java.lang.Object fact)
Indicate that a fact of this belief set was modified. Calling this method causes an internal facts changed event that might cause dependent actions. 
- 
getClazz
java.lang.Class<?> getClazz()
Get the value class.- Returns:
 - The valuec class.
 
 
- 
addBeliefSetListener
<T> void addBeliefSetListener(IBeliefListener<T> listener)
Add a belief set listener.- Parameters:
 listener- The belief set listener.
 
- 
removeBeliefSetListener
<T> void removeBeliefSetListener(IBeliefListener<T> listener)
Remove a belief set listener.- Parameters:
 listener- The belief set listener.
 
 - 
 
 -