Package jadex.bdi.planlib
Class DefaultBDIVisionProcessor
- java.lang.Object
 - 
- jadex.commons.SimplePropertyObject
 - 
- jadex.bdi.planlib.DefaultBDIVisionProcessor
 
 
 
- 
- All Implemented Interfaces:
 IPropertyObject,IPerceptProcessor
public class DefaultBDIVisionProcessor extends SimplePropertyObject implements IPerceptProcessor
Default bdi agent vision processor. Updates the agent's beliefsets according to the percepts of new/disappeared waste. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADDThe add action.protected java.util.MappercepttypesThe percepttypes infos.static java.lang.StringPROPERTY_MAXRANGEThe maxrange property.static java.lang.StringPROPERTY_PERCEPTTYPESThe percept types property.static java.lang.StringPROPERTY_RANGEThe maxrange property.static java.lang.StringREMOVEThe remove action.static java.lang.StringREMOVE_OUTDATEDThe remove_outdated action (checks all entries in the belief set, if they should be seen, but are no longer there).static java.lang.StringSETThe set action.static java.lang.StringUNSETThe unset action (sets a belief fact to null).- 
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DefaultBDIVisionProcessor() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(IParsedExpression exp, IValueFetcher fetcher)Evaluate a condition.protected IVector1getDefaultRange()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 IVector1getRange(ISpaceObject avatar)Get the range.protected java.lang.StringgetRangePropertyName()Get the range property name.voidprocessPercept(IEnvironmentSpace space, java.lang.String type, java.lang.Object percept, IComponentDescription agent, ISpaceObject avatar)Process a new percept.- 
Methods inherited from class jadex.commons.SimplePropertyObject
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface jadex.commons.IPropertyObject
getProperty, getPropertyNames, hasProperty, setProperty 
 - 
 
 - 
 
- 
- 
Field Detail
- 
PROPERTY_PERCEPTTYPES
public static final java.lang.String PROPERTY_PERCEPTTYPES
The percept types property.- See Also:
 - Constant Field Values
 
 
- 
ADD
public static final java.lang.String ADD
The add action.- See Also:
 - Constant Field Values
 
 
- 
REMOVE
public static final java.lang.String REMOVE
The remove action.- See Also:
 - Constant Field Values
 
 
- 
REMOVE_OUTDATED
public static final 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).- See Also:
 - Constant Field Values
 
 
- 
SET
public static final java.lang.String SET
The set action.- See Also:
 - Constant Field Values
 
 
- 
UNSET
public static final java.lang.String UNSET
The unset action (sets a belief fact to null).- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_MAXRANGE
public static final java.lang.String PROPERTY_MAXRANGE
The maxrange property.- See Also:
 - Constant Field Values
 
 
- 
PROPERTY_RANGE
public static final java.lang.String PROPERTY_RANGE
The maxrange property.- See Also:
 - Constant Field Values
 
 
- 
percepttypes
protected java.util.Map percepttypes
The percepttypes infos. 
 - 
 
- 
Method Detail
- 
processPercept
public void processPercept(IEnvironmentSpace space, java.lang.String type, java.lang.Object percept, IComponentDescription agent, ISpaceObject avatar)
Process a new percept.- Specified by:
 processPerceptin interfaceIPerceptProcessor- Parameters:
 space- The space.type- The type.percept- The percept.agent- The agent identifier.agent- The avatar of the agent (if any).
 
- 
getPerceptTypes
protected java.lang.Object[] getPerceptTypes()
Get the percept types defined for this generator.- Returns:
 - The percept types.
 
 
- 
getMetaInfos
protected java.lang.String[][] getMetaInfos(java.lang.String percepttype)
Get meta infos about a percept type. 
- 
getRange
protected IVector1 getRange(ISpaceObject avatar)
Get the range.- Returns:
 - The range.
 
 
- 
getDefaultRange
protected IVector1 getDefaultRange()
Get the default range.- Returns:
 - The range.
 
 
- 
getRangePropertyName
protected java.lang.String getRangePropertyName()
Get the range property name.- Returns:
 - The range property name.
 
 
- 
evaluate
protected boolean evaluate(IParsedExpression exp, IValueFetcher fetcher)
Evaluate a condition.- Parameters:
 exp- The expression.fetcher- The value fetcher.
 
 - 
 
 -