public class DefaultBDIVisionProcessor
extends jadex.commons.SimplePropertyObject
implements jadex.extension.envsupport.environment.IPerceptProcessor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADD
The add action.
|
protected java.util.Map<java.lang.String,java.lang.String[][]> |
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).
|
| Constructor and Description |
|---|
DefaultBDIVisionProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
evaluate(jadex.javaparser.IParsedExpression exp,
jadex.commons.IValueFetcher fetcher)
Evaluate a condition.
|
protected jadex.extension.envsupport.math.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 jadex.extension.envsupport.math.IVector1 |
getRange(jadex.extension.envsupport.environment.ISpaceObject avatar)
Get the range.
|
protected java.lang.String |
getRangePropertyName()
Get the range property name.
|
void |
processPercept(jadex.extension.envsupport.environment.IEnvironmentSpace space,
java.lang.String type,
java.lang.Object percept,
jadex.bridge.service.types.cms.IComponentDescription agent,
jadex.extension.envsupport.environment.ISpaceObject avatar)
Process a new percept.
|
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toStringpublic static final java.lang.String PROPERTY_PERCEPTTYPES
public static final java.lang.String ADD
public static final java.lang.String REMOVE
public static final java.lang.String REMOVE_OUTDATED
public static final java.lang.String SET
public static final java.lang.String UNSET
public static final java.lang.String PROPERTY_MAXRANGE
public static final java.lang.String PROPERTY_RANGE
protected java.util.Map<java.lang.String,java.lang.String[][]> percepttypes
public void processPercept(jadex.extension.envsupport.environment.IEnvironmentSpace space,
java.lang.String type,
java.lang.Object percept,
jadex.bridge.service.types.cms.IComponentDescription agent,
jadex.extension.envsupport.environment.ISpaceObject avatar)
processPercept in interface jadex.extension.envsupport.environment.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 jadex.extension.envsupport.math.IVector1 getRange(jadex.extension.envsupport.environment.ISpaceObject avatar)
protected jadex.extension.envsupport.math.IVector1 getDefaultRange()
protected java.lang.String getRangePropertyName()
protected boolean evaluate(jadex.javaparser.IParsedExpression exp,
jadex.commons.IValueFetcher fetcher)
exp - The expression.fetcher - The value fetcher.