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 SummaryFields 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.SimplePropertyObjectpcs, properties
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultBDIVisionProcessor()
 - 
Method SummaryAll 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.SimplePropertyObjectaddPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.IPropertyObjectgetProperty, getPropertyNames, hasProperty, setProperty
 
- 
 
- 
- 
- 
Field Detail- 
PROPERTY_PERCEPTTYPESpublic static final java.lang.String PROPERTY_PERCEPTTYPES The percept types property.- See Also:
- Constant Field Values
 
 - 
ADDpublic static final java.lang.String ADD The add action.- See Also:
- Constant Field Values
 
 - 
REMOVEpublic static final java.lang.String REMOVE The remove action.- See Also:
- Constant Field Values
 
 - 
REMOVE_OUTDATEDpublic 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
 
 - 
SETpublic static final java.lang.String SET The set action.- See Also:
- Constant Field Values
 
 - 
UNSETpublic static final java.lang.String UNSET The unset action (sets a belief fact to null).- See Also:
- Constant Field Values
 
 - 
PROPERTY_MAXRANGEpublic static final java.lang.String PROPERTY_MAXRANGE The maxrange property.- See Also:
- Constant Field Values
 
 - 
PROPERTY_RANGEpublic static final java.lang.String PROPERTY_RANGE The maxrange property.- See Also:
- Constant Field Values
 
 - 
percepttypesprotected java.util.Map percepttypes The percepttypes infos.
 
- 
 - 
Method Detail- 
processPerceptpublic void processPercept(IEnvironmentSpace space, java.lang.String type, java.lang.Object percept, IComponentDescription agent, ISpaceObject avatar) Process a new percept.- Specified by:
- processPerceptin interface- IPerceptProcessor
- Parameters:
- space- The space.
- type- The type.
- percept- The percept.
- agent- The agent identifier.
- agent- The avatar of the agent (if any).
 
 - 
getPerceptTypesprotected java.lang.Object[] getPerceptTypes() Get the percept types defined for this generator.- Returns:
- The percept types.
 
 - 
getMetaInfosprotected java.lang.String[][] getMetaInfos(java.lang.String percepttype) Get meta infos about a percept type.
 - 
getRangeprotected IVector1 getRange(ISpaceObject avatar) Get the range.- Returns:
- The range.
 
 - 
getDefaultRangeprotected IVector1 getDefaultRange() Get the default range.- Returns:
- The range.
 
 - 
getRangePropertyNameprotected java.lang.String getRangePropertyName() Get the range property name.- Returns:
- The range property name.
 
 - 
evaluateprotected boolean evaluate(IParsedExpression exp, IValueFetcher fetcher) Evaluate a condition.- Parameters:
- exp- The expression.
- fetcher- The value fetcher.
 
 
- 
 
-