public class RBeliefbase.RBelief extends RElement implements IBelief
Modifier and Type | Field and Description |
---|---|
protected EventPublisher |
publisher
The publisher.
|
protected java.lang.Object |
value
The value.
|
Constructor and Description |
---|
RBelief(MBelief modelelement,
IInternalAccess agent)
Create a new parameter.
|
RBelief(MBelief modelelement,
IInternalAccess agent,
java.lang.Object value)
Create a new parameter.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
addBeliefListener(IBeliefListener<T> listener)
Add a belief set listener.
|
java.lang.Class<?> |
getClazz()
Get the value class.
|
java.lang.Object |
getFact()
Get the value of a parameter.
|
java.lang.String |
getName()
Get the name.
|
void |
modified()
Indicate that the fact of this belief was modified.
|
<T> void |
removeBeliefListener(IBeliefListener<T> listener)
Remove a belief set listener.
|
boolean |
setFact(java.lang.Object value)
Set a fact of a belief.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModelElement
protected java.lang.Object value
protected EventPublisher publisher
public RBelief(MBelief modelelement, IInternalAccess agent)
modelelement
- The model element.name
- The name.public RBelief(MBelief modelelement, IInternalAccess agent, java.lang.Object value)
modelelement
- The model element.name
- The name.public java.lang.String getName()
public boolean setFact(java.lang.Object value)
public java.lang.Object getFact()
public java.lang.Class<?> getClazz()
public void modified()
public <T> void addBeliefListener(IBeliefListener<T> listener)
addBeliefListener
in interface IBelief
listener
- The belief set listener.public <T> void removeBeliefListener(IBeliefListener<T> listener)
removeBeliefListener
in interface IBelief
listener
- The belief set listener.