public class MParameter extends MElement
CAPABILITY_SEPARATOR| Constructor and Description |
|---|
MParameter(FieldInfo ftarget)
Create a new parameter.
|
| Modifier and Type | Method and Description |
|---|---|
FieldInfo |
getField()
Get the field (for field-backed beliefs).
|
MethodInfo |
getGetter()
Get the getter method (for method-backed beliefs).
|
MethodInfo |
getSetter()
Get the setter method (for method-backed beliefs).
|
Class<?> |
getType(ClassLoader cl)
Get the class of the belief.
|
Object |
getValue(BDIAgentInterpreter bai)
Get the value of the belief.
|
Object |
getValue(Object object,
ClassLoader cl)
Get the value of the belief.
|
boolean |
isArray()
Test if parameter is of array type.
|
boolean |
isFieldParameter()
Test if this belief refers to a field.
|
boolean |
isMulti(ClassLoader cl)
Get the multi.
|
void |
setGetter(MethodInfo mgetter)
Set the mgetter.
|
void |
setSetter(MethodInfo msetter)
Set the msetter.
|
boolean |
setValue(Object object,
Object value,
ClassLoader cl)
Set the value of the belief.
|
getCapabilityName, getName, setNamepublic MParameter(FieldInfo ftarget)
public void setGetter(MethodInfo mgetter)
mgetter - The mgetter to set.public void setSetter(MethodInfo msetter)
msetter - The msetter to set.public boolean isFieldParameter()
public Object getValue(BDIAgentInterpreter bai)
public Object getValue(Object object, ClassLoader cl)
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 isMulti(ClassLoader cl)
public boolean isArray()
Copyright © 2015. All Rights Reserved.