public class MBelief extends MElement
CAPABILITY_SEPARATOR
Constructor and Description |
---|
MBelief(FieldInfo target,
String impl,
boolean dynamic,
long updaterate,
String[] events,
Collection<jadex.rules.eca.EventType> rawevents)
Create a new belief.
|
MBelief(MethodInfo target,
String impl,
boolean dynamic,
long updaterate,
String[] events,
Collection<jadex.rules.eca.EventType> rawevents)
Create a new belief.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getEvents()
Get the events.
|
FieldInfo |
getField()
Get the field (for field-backed beliefs).
|
MethodInfo |
getGetter()
Get the getter method (for method-backed beliefs).
|
String |
getImplClassName()
Get the impl.
|
Collection<jadex.rules.eca.EventType> |
getRawEvents()
Get the rawevents.
|
MethodInfo |
getSetter()
Get the setter method (for method-backed beliefs).
|
Class<?> |
getType(ClassLoader cl)
Get the class of the belief.
|
long |
getUpdaterate()
Get the updaterate.
|
Object |
getValue(BDIAgentInterpreter bai)
Get the value of the belief.
|
Object |
getValue(Object object,
ClassLoader cl)
Get the value of the belief.
|
boolean |
isArrayBelief()
Test if belief is of array type.
|
boolean |
isDynamic()
Get the dynamic.
|
boolean |
isFieldBelief()
Test if this belief refers to a field.
|
boolean |
isMulti(ClassLoader cl)
Get the multi.
|
void |
setDynamic(boolean dynamic)
Set the dynamic.
|
void |
setEvents(Collection<String> events)
Set the events.
|
void |
setGetter(MethodInfo mgetter)
Set the mgetter.
|
void |
setImplClassName(String impl)
Set the impl.
|
void |
setRawEvents(Set<jadex.rules.eca.EventType> rawevents)
Set the rawevents.
|
void |
setSetter(MethodInfo msetter)
Set the msetter.
|
void |
setUpdaterate(long updaterate)
Set the updaterate.
|
boolean |
setValue(BDIAgentInterpreter bai,
Object value)
Set the value of the belief.
|
boolean |
setValue(Object object,
Object value,
ClassLoader cl)
Set the value of the belief.
|
getCapabilityName, getName, setName
public MBelief(FieldInfo target, String impl, boolean dynamic, long updaterate, String[] events, Collection<jadex.rules.eca.EventType> rawevents)
public MBelief(MethodInfo target, String impl, boolean dynamic, long updaterate, String[] events, Collection<jadex.rules.eca.EventType> rawevents)
public String getImplClassName()
public void setImplClassName(String impl)
impl
- The impl to set.public Collection<String> getEvents()
public void setEvents(Collection<String> events)
events
- The events to set.public boolean isDynamic()
public void setDynamic(boolean dynamic)
dynamic
- The dynamic to set.public long getUpdaterate()
public void setUpdaterate(long updaterate)
updaterate
- The updaterate to set.public void setGetter(MethodInfo mgetter)
mgetter
- The mgetter to set.public void setSetter(MethodInfo msetter)
msetter
- The msetter to set.public boolean isFieldBelief()
public boolean isMulti(ClassLoader cl)
public Object getValue(BDIAgentInterpreter bai)
public Object getValue(Object object, ClassLoader cl)
public boolean setValue(BDIAgentInterpreter bai, Object value)
public boolean setValue(Object object, Object value, ClassLoader cl)
public Class<?> getType(ClassLoader cl)
public FieldInfo getField()
public MethodInfo getGetter()
public MethodInfo getSetter()
public boolean isArrayBelief()
public Collection<jadex.rules.eca.EventType> getRawEvents()
public void setRawEvents(Set<jadex.rules.eca.EventType> rawevents)
rawevents
- The rawevents to set.Copyright © 2015. All Rights Reserved.