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> void
addBeliefSetListener(IBeliefListener<T> listener)
Add a belief set listener.void
addFact(java.lang.Object fact)
Add a fact to a belief.void
addFacts(java.lang.Object[] values)
Add facts to a parameter set.boolean
containsFact(java.lang.Object fact)
Test if a fact is contained in a belief.java.lang.Class<?>
getClazz()
Get the value class.java.lang.Object
getFact(java.lang.Object oldval)
Get a value equal to the given object.java.lang.Object[]
getFacts()
Get the facts of a beliefset.void
modified(java.lang.Object fact)
Indicate that a fact of this belief set was modified.<T> void
removeBeliefSetListener(IBeliefListener<T> listener)
Remove a belief set listener.void
removeFact(java.lang.Object fact)
Remove a fact to a belief.void
removeFacts()
Remove all facts from a belief.int
size()
Get the number of values currently contained in this set.-
Methods inherited from interface jadex.bdiv3x.runtime.IElement
getCount, getId, 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.
-
-