Interface IBeliefListener<T>


  • public interface IBeliefListener<T>
    Listener for observing beliefs.
    • Method Detail

      • beliefChanged

        void beliefChanged​(ChangeInfo<T> info)
        Invoked when a belief has been changed.
        Parameters:
        event - The change event.
      • factAdded

        void factAdded​(ChangeInfo<T> info)
        Invoked when a fact has been added. The new fact is contained in the agent event.
        Parameters:
        event - The change event.
      • factRemoved

        void factRemoved​(ChangeInfo<T> info)
        Invoked when a fact has been removed. The removed fact is contained in the agent event.
        Parameters:
        event - The change event.
      • factChanged

        void factChanged​(ChangeInfo<T> info)
        Invoked when a fact in a belief set has changed (i.e. bean event).
        Parameters:
        value - The new value.
        oldvalue - The old value.
        info - Extra info (such as the index of the element if applicable).