Package jadex.bdiv3x.runtime
Interface IBelief
- 
- All Superinterfaces:
- IElement
 - All Known Implementing Classes:
- RBeliefbase.RBelief
 
 public interface IBelief extends IElement The interface for all beliefs (concrete and referenced).
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> voidaddBeliefListener(IBeliefListener<T> listener)Add a belief listener.java.lang.Class<?>getClazz()Get the value class.java.lang.ObjectgetFact()Get the fact of a belief.voidmodified()Indicate that the fact of this belief was modified.<T> voidremoveBeliefListener(IBeliefListener<T> listener)Remove a belief listener.booleansetFact(java.lang.Object fact)Set a fact of a belief.- 
Methods inherited from interface jadex.bdiv3x.runtime.IElementgetModelElement
 
- 
 
- 
- 
- 
Method Detail- 
setFactboolean setFact(java.lang.Object fact) Set a fact of a belief. Only changes the belief, if the new value is not equal to the old value.- Parameters:
- fact- The new fact.
- Returns:
- True, if the value was changed.
 
 - 
getFactjava.lang.Object getFact() Get the fact of a belief.- Returns:
- The fact.
 
 - 
modifiedvoid modified() Indicate that the fact of this belief was modified. Calling this method causes an internal fact changed event that might cause dependent actions.
 - 
getClazzjava.lang.Class<?> getClazz() Get the value class.- Returns:
- The valuec class.
 
 - 
addBeliefListener<T> void addBeliefListener(IBeliefListener<T> listener) Add a belief listener.- Parameters:
- listener- The belief listener.
 
 - 
removeBeliefListener<T> void removeBeliefListener(IBeliefListener<T> listener) Remove a belief listener.- Parameters:
- listener- The belief listener.
 
 
- 
 
-