Class DefaultVisionGenerator

    • Field Detail

      • 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
      • PROPERTY_PERCEPTTYPES

        public static final java.lang.String PROPERTY_PERCEPTTYPES
        The percept types property.
        See Also:
        Constant Field Values
      • APPEARED

        public static final java.lang.String APPEARED
        The appeared percept type.
        See Also:
        Constant Field Values
      • DISAPPEARED

        public static final java.lang.String DISAPPEARED
        The disappeared percept type.
        See Also:
        Constant Field Values
      • CREATED

        public static final java.lang.String CREATED
        The created percept type.
        See Also:
        Constant Field Values
      • DESTROYED

        public static final java.lang.String DESTROYED
        The destroyed percept type.
        See Also:
        Constant Field Values
      • MOVED

        public static final java.lang.String MOVED
        The moved percept type.
        See Also:
        Constant Field Values
      • EMPTY_SPACEOBJECTS

        protected static final ISpaceObject[] EMPTY_SPACEOBJECTS
        Empty spaceobjects array.
      • actiontypes

        protected java.util.Map actiontypes
        The percept receiving component types.
    • Constructor Detail

      • DefaultVisionGenerator

        public DefaultVisionGenerator()
    • Method Detail

      • getPerceptType

        protected java.lang.String getPerceptType​(IEnvironmentSpace space,
                                                  java.lang.String componenttype,
                                                  java.lang.String objecttype,
                                                  java.lang.String actiontype)
        Get the percept type.
        Parameters:
        space - The space.
        componenttype - The component type.
        objecttype - The object type.
        actiontype - The action type.
        Returns:
        The matching percept.
      • getActionTypes

        protected java.util.Set getActionTypes​(PerceptType pt)
        Get the action types for a percept.
        Parameters:
        pt - The percept type.
      • getPerceptTypes

        protected java.lang.Object[] getPerceptTypes()
        Get the percept types defined for this generator.
        Returns:
        The percept types.
      • 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.