|
||||||||||
| 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 java.lang.String |
ADD
The add action. |
protected java.util.Map |
percepttypes
The percepttypes infos. |
static java.lang.String |
PROPERTY_MAXRANGE
The maxrange property. |
static java.lang.String |
PROPERTY_PERCEPTTYPES
The percept types property. |
static java.lang.String |
PROPERTY_RANGE
The maxrange property. |
static java.lang.String |
REMOVE
The remove action. |
static java.lang.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 java.lang.String |
SET
The set action. |
static java.lang.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 java.lang.String[][] |
getMetaInfos(java.lang.String percepttype)
Get meta infos about a percept type. |
protected java.lang.Object[] |
getPerceptTypes()
Get the percept types defined for this generator. |
protected IVector1 |
getRange(ISpaceObject avatar)
Get the range. |
protected java.lang.String |
getRangePropertyName()
Get the range property name. |
void |
processPercept(IEnvironmentSpace space,
java.lang.String type,
java.lang.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 java.lang.String PROPERTY_PERCEPTTYPES
public static java.lang.String ADD
public static java.lang.String REMOVE
public static java.lang.String REMOVE_OUTDATED
public static java.lang.String SET
public static java.lang.String UNSET
public static java.lang.String PROPERTY_MAXRANGE
public static java.lang.String PROPERTY_RANGE
protected java.util.Map percepttypes
| Constructor Detail |
|---|
public DefaultBDIVisionProcessor()
| Method Detail |
|---|
public void processPercept(IEnvironmentSpace space,
java.lang.String type,
java.lang.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 java.lang.Object[] getPerceptTypes()
protected java.lang.String[][] getMetaInfos(java.lang.String percepttype)
protected IVector1 getRange(ISpaceObject avatar)
protected IVector1 getDefaultRange()
protected java.lang.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 | |||||||||