Package jadex.bdiv3x.runtime
Class RBeliefbase.RBelief
- java.lang.Object
-
- jadex.bdiv3.runtime.impl.RElement
-
- jadex.bdiv3x.runtime.RBeliefbase.RBelief
-
- 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.
-
Constructor Summary
Constructors Constructor Description RBelief(MBelief modelelement, IInternalAccess agent)
Deprecated.Create a new parameter.RBelief(MBelief modelelement, IInternalAccess agent, java.lang.Object value)
Deprecated.Create a new parameter.
-
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
-
Methods inherited from interface jadex.bdiv3x.runtime.IElement
getCount, getId, getModelElement
-
-
-
-
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.
-
getFact
public java.lang.Object getFact()
Deprecated.Get the value of a parameter.
-
getClazz
public java.lang.Class<?> getClazz()
Deprecated.Get the value 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.
-
addBeliefListener
public <T> void addBeliefListener(IBeliefListener<T> listener)
Deprecated.Add a belief set listener.- Specified by:
addBeliefListener
in interfaceIBelief
- Parameters:
listener
- The belief set listener.
-
removeBeliefListener
public <T> void removeBeliefListener(IBeliefListener<T> listener)
Deprecated.Remove a belief set listener.- Specified by:
removeBeliefListener
in interfaceIBelief
- Parameters:
listener
- The belief set listener.
-
-