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 Detail

      • setFact

        boolean 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.
      • getFact

        java.lang.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

        java.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.