Jadex 0.941

jadex.runtime
Interface IBeliefSet

All Superinterfaces:
IElement

public interface IBeliefSet
extends IElement

Interface for all beliefsets (concrete and referenced).


Method Summary
 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 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

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

Parameters:
fact - The new fact.

removeFact

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

Parameters:
fact - The new fact.

addFacts

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


removeFacts

public void removeFacts()
Remove all facts from a belief.


getFact

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

Parameters:
oldval - The old value.

containsFact

public 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

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

Returns:
The facts.

updateFact

public 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

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

Returns:
The values count.

getClazz

public Class getClazz()
Get the value class.

Returns:
The valuec class.

isAccessible

public boolean isAccessible()
Is this belief accessable.

Returns:
False, if the belief cannot be accessed.

Jadex 0.941

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-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.