Interface IBeliefSet

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