Jadex 0.96-beta1

jadex.runtime
Interface IBelief

All Superinterfaces:
IElement

public interface IBelief
extends IElement

The interface for all beliefs (concrete and referenced).


Method Summary
 void addBeliefListener(IBeliefListener listener, boolean async)
          Add a belief listener.
 Class getClazz()
          Get the value class.
 Object getFact()
          Get the fact of a belief.
 boolean isAccessible()
          Is this belief accessable.
 void modified()
          Indicate that the fact of this belief was modified.
 void removeBeliefListener(IBeliefListener listener)
          Remove a belief listener.
 void setFact(Object fact)
          Set a fact of a belief.
 
Methods inherited from interface jadex.runtime.IElement
getModelElement, getName
 

Method Detail

setFact

void setFact(Object fact)
Set a fact of a belief.

Parameters:
fact - The new fact.

getFact

Object getFact()
Get the fact of a belief.

Returns:
The fact.

modified

void modified()
Indicate that the fact of this belief was modified. Calling this method causes an internal fact 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.

addBeliefListener

void addBeliefListener(IBeliefListener listener,
                       boolean async)
Add a belief listener.

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

removeBeliefListener

void removeBeliefListener(IBeliefListener listener)
Remove a belief listener.

Parameters:
listener - The belief 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.