Class AbstractGeneticIntegerArrayDiscoveryHandler

    • Field Detail

      • m_Minimum

        protected int m_Minimum
        the minimum.
      • m_Maximum

        protected int m_Maximum
        the maximum.
      • m_Size

        protected int m_Size
        size of the array
    • Constructor Detail

      • AbstractGeneticIntegerArrayDiscoveryHandler

        public AbstractGeneticIntegerArrayDiscoveryHandler()
    • Method Detail

      • getDefaultSize

        protected abstract int getDefaultSize()
        Returns the default size.
        Returns:
        the default
      • getDefaultMinimum

        protected abstract int getDefaultMinimum()
        Returns the default minimum.
        Returns:
        the default
      • setSize

        public void setSize​(int value)
        Sets the size of array.
        Parameters:
        value - the size
      • getSize

        public int getSize()
        Returns the size.
        Returns:
        the size
      • sizeTipText

        public String sizeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMinimum

        public void setMinimum​(int value)
        Sets the minimum.
        Parameters:
        value - the minimum
      • getMinimum

        public int getMinimum()
        Returns the minimum.
        Returns:
        the minimum
      • minimumTipText

        public String minimumTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultMaximum

        protected abstract int getDefaultMaximum()
        Returns the default maximum.
        Returns:
        the default
      • setMaximum

        public void setMaximum​(int value)
        Sets the maximum.
        Parameters:
        value - the maximum
      • getMaximum

        public int getMaximum()
        Returns the maximum.
        Returns:
        the maximum
      • maximumTipText

        public String maximumTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getValue

        protected abstract int[] getValue​(PropertyPath.PropertyContainer cont)
        Returns the integer value from the property container.
        Parameters:
        cont - the container
        Returns:
        the value
      • setValue

        protected abstract void setValue​(PropertyPath.PropertyContainer cont,
                                         int[] value)
        Sets the integer value in the property container.
        Parameters:
        cont - the container
        value - the value to set
      • calcNumBits

        protected int calcNumBits()
        Calculates the number of bits that are required.
        Returns:
        the number of bits