Class DefaultBDIVisionProcessor

    • Field Detail

      • PROPERTY_PERCEPTTYPES

        public static final java.lang.String PROPERTY_PERCEPTTYPES
        The percept types property.
        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
      • 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.
    • Constructor Detail

      • DefaultBDIVisionProcessor

        public DefaultBDIVisionProcessor()
    • 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:
        processPercept in interface IPerceptProcessor
        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.