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 SummaryAll 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.IElementgetModelElement
 
- 
 
- 
- 
- 
Method Detail- 
addFactvoid addFact(java.lang.Object fact) Add a fact to a belief.- Parameters:
- fact- The new fact.
 
 - 
removeFactvoid removeFact(java.lang.Object fact) Remove a fact to a belief.- Parameters:
- fact- The new fact.
 
 - 
addFactsvoid addFacts(java.lang.Object[] values) Add facts to a parameter set.
 - 
removeFactsvoid removeFacts() Remove all facts from a belief.
 - 
getFactjava.lang.Object getFact(java.lang.Object oldval) Get a value equal to the given object.- Parameters:
- oldval- The old value.
 
 - 
containsFactboolean 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.
 
 - 
getFactsjava.lang.Object[] getFacts() Get the facts of a beliefset.- Returns:
- The facts.
 
 - 
sizeint size() Get the number of values currently contained in this set.- Returns:
- The values count.
 
 - 
modifiedvoid 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.
 - 
getClazzjava.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.
 
 
- 
 
-