Jadex 0.96-beta1

jadex.runtime
Interface IBeliefSet

All Superinterfaces:
IElement

public interface IBeliefSet
extends IElement

Interface for all beliefsets (concrete and referenced).


Method Summary
 void addBeliefSetListener(IBeliefSetListener listener, boolean async)
          Add a belief set listener.
 void addFact(Object fact)
          Add a fact to a belief.
 void addFacts(Object[] values)
          Add facts to a parameter set.
 boolean containsFact(Object fact)
          Test if a fact is contained in a belief.
 Class getClazz()
          Get the value class.
 Object getFact(Object oldval)
          Get a value equal to the given object.
 Object[] getFacts()
          Get the facts of a beliefset.
 boolean isAccessible()
          Is this belief accessable.
 void modified()
          Indicate that the fact of this belief was modified.
 void removeBeliefSetListener(IBeliefSetListener listener)
          Remove a belief set listener.
 void removeFact(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.
 void updateFact(Object newfact)
          Update a fact to a new fact.
 
Methods inherited from interface jadex.runtime.IElement
getModelElement, getName
 

Method Detail

addFact

void addFact(Object fact)
Add a fact to a belief.

Parameters:
fact - The new fact.

removeFact

void removeFact(Object fact)
Remove a fact to a belief.

Parameters:
fact - The new fact.

addFacts

void addFacts(Object[] values)
Add facts to a parameter set.


removeFacts

void removeFacts()
Remove all facts from a belief.


getFact

Object getFact(Object oldval)
Get a value equal to the given object.

Parameters:
oldval - The old value.

containsFact

boolean containsFact(Object fact)
Test if a fact is contained in a belief.

Parameters:
fact - The fact to test.
Returns:
True, if fact is contained.

getFacts

Object[] getFacts()
Get the facts of a beliefset.

Returns:
The facts.

updateFact

void updateFact(Object newfact)
Update a fact to a new fact. Searches the old value with equals, removes it and stores the new fact.

Parameters:
newfact - The new fact.

size

int size()
Get the number of values currently contained in this set.

Returns:
The values count.

modified

void modified()
Indicate that the fact of this belief was modified. Calling this method causes an internal facts changed event that might cause dependent actions.


getClazz

Class getClazz()
Get the value class.

Returns:
The valuec class.

isAccessible

boolean isAccessible()
Is this belief accessable.

Returns:
False, if the belief cannot be accessed.

addBeliefSetListener

void addBeliefSetListener(IBeliefSetListener listener,
                          boolean async)
Add a belief set listener.

Parameters:
listener - The belief set listener.
async - True, if the notification should be done on a separate thread.

removeBeliefSetListener

void removeBeliefSetListener(IBeliefSetListener listener)
Remove a belief set listener.

Parameters:
listener - The belief set listener.

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.