|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.SimplePropertyObject
jadex.bdi.planlib.DefaultBDIVisionProcessor
public class DefaultBDIVisionProcessor
Default bdi agent vision processor. Updates the agent's beliefsets according to the percepts of new/disappeared waste.
| Field Summary | |
|---|---|
static String |
ADD
The add action. |
protected Map |
percepttypes
The percepttypes infos. |
static String |
PROPERTY_MAXRANGE
The maxrange property. |
static String |
PROPERTY_PERCEPTTYPES
The percept types property. |
static String |
PROPERTY_RANGE
The maxrange property. |
static String |
REMOVE
The remove action. |
static String |
REMOVE_OUTDATED
The remove_outdated action (checks all entries in the belief set, if they should be seen, but are no longer there). |
static String |
SET
The set action. |
static String |
UNSET
The unset action (sets a belief fact to null). |
| Fields inherited from class jadex.commons.SimplePropertyObject |
|---|
pcs, properties |
| Constructor Summary | |
|---|---|
DefaultBDIVisionProcessor()
|
|
| Method Summary | |
|---|---|
protected boolean |
evaluate(IParsedExpression exp,
IValueFetcher fetcher)
Evaluate a condition. |
protected IVector1 |
getDefaultRange()
Get the default range. |
protected String[][] |
getMetaInfos(String percepttype)
Get meta infos about a percept type. |
protected Object[] |
getPerceptTypes()
Get the percept types defined for this generator. |
protected IVector1 |
getRange(ISpaceObject avatar)
Get the range. |
protected String |
getRangePropertyName()
Get the range property name. |
void |
processPercept(IEnvironmentSpace space,
String type,
Object percept,
IComponentIdentifier agent,
ISpaceObject avatar)
Process a new percept. |
| Methods inherited from class jadex.commons.SimplePropertyObject |
|---|
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jadex.commons.IPropertyObject |
|---|
getProperty, getPropertyNames, hasProperty, setProperty |
| Field Detail |
|---|
public static String PROPERTY_PERCEPTTYPES
public static String ADD
public static String REMOVE
public static String REMOVE_OUTDATED
public static String SET
public static String UNSET
public static String PROPERTY_MAXRANGE
public static String PROPERTY_RANGE
protected Map percepttypes
| Constructor Detail |
|---|
public DefaultBDIVisionProcessor()
| Method Detail |
|---|
public void processPercept(IEnvironmentSpace space,
String type,
Object percept,
IComponentIdentifier agent,
ISpaceObject avatar)
processPercept in interface IPerceptProcessorspace - The space.type - The type.percept - The percept.agent - The agent identifier.agent - The avatar of the agent (if any).protected Object[] getPerceptTypes()
protected String[][] getMetaInfos(String percepttype)
protected IVector1 getRange(ISpaceObject avatar)
protected IVector1 getDefaultRange()
protected String getRangePropertyName()
protected boolean evaluate(IParsedExpression exp,
IValueFetcher fetcher)
exp - The expression.fetcher - The value fetcher.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||