Class HasVariable

    • Field Detail

      • m_VariableName

        protected VariableName m_VariableName
        the name of the lookup table in the internal storage.
    • Constructor Detail

      • HasVariable

        public HasVariable()
        Default constructor.
      • HasVariable

        public HasVariable​(VariableName variableName)
        Initializes with the specified variable name.
        Parameters:
        variableName - the variable name to use
      • HasVariable

        public HasVariable​(String variableName)
        Initializes with the specified variable name.
        Parameters:
        variableName - the variable name to use
    • Method Detail

      • setVariableName

        public void setVariableName​(String value)
        Sets the name of the variable to check.
        Parameters:
        value - the name
      • setVariableName

        public void setVariableName​(VariableName value)
        Sets the name of the variable to check.
        Parameters:
        value - the name
      • getVariableName

        public VariableName getVariableName()
        Returns the name of the variable to check.
        Returns:
        the name
      • variableNameTipText

        public String variableNameTipText()
        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