public class DefaultBDIVisionProcessor extends SimplePropertyObject implements IPerceptProcessor
| Modifier and Type | Field and Description | 
|---|---|
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). 
 | 
pcs, properties| Constructor and Description | 
|---|
DefaultBDIVisionProcessor()  | 
| Modifier and Type | Method and Description | 
|---|---|
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,
              IComponentDescription agent,
              ISpaceObject avatar)
Process a new percept. 
 | 
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProperty, getPropertyNames, hasProperty, setPropertypublic 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 percepttypes
public void processPercept(IEnvironmentSpace space, java.lang.String type, java.lang.Object percept, IComponentDescription 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.