Class RBeliefbase.RBelief

  • All Implemented Interfaces:
    IBelief, IElement
    Enclosing class:
    RBeliefbase

    public class RBeliefbase.RBelief
    extends jadex.bdiv3.runtime.impl.RElement
    implements IBelief
    Deprecated.
    static: belief is evaluated once on init, afterwards set manually pull: belief is reevaluated on each read access push: reevaluates on each event and sets the new value and throws change event polling/updaterate: reevaluates in intervals and and sets the new value and throws change event
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected EventPublisher publisher
      Deprecated.
      The publisher.
      protected java.lang.Object value
      Deprecated.
      The value.
      • Fields inherited from class jadex.bdiv3.runtime.impl.RElement

        agent, cnt, id, modelelement
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      <T> void addBeliefListener​(IBeliefListener<T> listener)
      Deprecated.
      Add a belief set listener.
      java.lang.Class<?> getClazz()
      Deprecated.
      Get the value class.
      java.lang.Object getFact()
      Deprecated.
      Get the value of a parameter.
      java.lang.String getName()
      Deprecated.
      Get the name.
      void modified()
      Deprecated.
      Indicate that the fact of this belief was modified.
      <T> void removeBeliefListener​(IBeliefListener<T> listener)
      Deprecated.
      Remove a belief set listener.
      boolean setFact​(java.lang.Object value)
      Deprecated.
      Set a fact of a belief.
      • Methods inherited from class jadex.bdiv3.runtime.impl.RElement

        getAgent, getCapability, getCount, getId, getMCapability, getModelElement, getRuleSystem, setId, setModelElement, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        protected java.lang.Object value
        Deprecated.
        The value.
      • publisher

        protected EventPublisher publisher
        Deprecated.
        The publisher.
    • Constructor Detail

      • RBelief

        public RBelief​(MBelief modelelement,
                       IInternalAccess agent)
        Deprecated.
        Create a new parameter.
        Parameters:
        modelelement - The model element.
        name - The name.
      • RBelief

        public RBelief​(MBelief modelelement,
                       IInternalAccess agent,
                       java.lang.Object value)
        Deprecated.
        Create a new parameter.
        Parameters:
        modelelement - The model element.
        name - The name.
    • Method Detail

      • getName

        public java.lang.String getName()
        Deprecated.
        Get the name.
        Returns:
        The name
      • setFact

        public boolean setFact​(java.lang.Object value)
        Deprecated.
        Set a fact of a belief. Only changes the belief, if the new value is not equal to the old value.
        Specified by:
        setFact in interface IBelief
        Parameters:
        value - The new fact.
        Returns:
        True, if the value was changed.
      • getFact

        public java.lang.Object getFact()
        Deprecated.
        Get the value of a parameter.
        Specified by:
        getFact in interface IBelief
        Returns:
        The value.
      • getClazz

        public java.lang.Class<?> getClazz()
        Deprecated.
        Get the value class.
        Specified by:
        getClazz in interface IBelief
        Returns:
        The valuec class.
      • modified

        public void modified()
        Deprecated.
        Indicate that the fact of this belief was modified. Calling this method causes an internal fact changed event that might cause dependent actions.
        Specified by:
        modified in interface IBelief
      • addBeliefListener

        public <T> void addBeliefListener​(IBeliefListener<T> listener)
        Deprecated.
        Add a belief set listener.
        Specified by:
        addBeliefListener in interface IBelief
        Parameters:
        listener - The belief set listener.
      • removeBeliefListener

        public <T> void removeBeliefListener​(IBeliefListener<T> listener)
        Deprecated.
        Remove a belief set listener.
        Specified by:
        removeBeliefListener in interface IBelief
        Parameters:
        listener - The belief set listener.