Class HasSize

    • Field Detail

      • m_MinSize

        protected int m_MinSize
        the minimum number of elements.
      • m_MaxSize

        protected int m_MaxSize
        the maximum number of elements.
    • Constructor Detail

      • HasSize

        public HasSize()
    • Method Detail

      • setMinSize

        public void setMinSize​(int value)
        Sets the minimum number of elements the collection has to have.
        Parameters:
        value - the number of elements (-1: no lower bound)
      • getMinSize

        public int getMinSize()
        Returns the minimum number of elements the collection has to have
        Returns:
        the number of elements (-1: no lower bound)
      • minSizeTipText

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

        public void setMaxSize​(int value)
        Sets the maximum number of elements the array can have.
        Parameters:
        value - the number of elements (-1: no upper bound)
      • getMaxSize

        public int getMaxSize()
        Returns the maximum number of elements the array can have
        Returns:
        the number of elements (-1: no upper bound)
      • maxSizeTipText

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

        protected boolean doEvaluate​(Actor owner,
                                     Token token)
        Performs the actual evaluation.
        Specified by:
        doEvaluate in class AbstractBooleanCondition
        Parameters:
        owner - the owning actor
        token - the current token passing through
        Returns:
        the result of the evaluation