Class DecisionVariable

    • Field Detail

      • DEFAULT

        public static final Value DEFAULT
    • Constructor Detail

      • DecisionVariable

        DecisionVariable​(Configuration cfg,
                         IDecisionVariable variable,
                         IVariableFilter filter)
        Creates a decision variable.
        Parameters:
        cfg - the parent configuration variable
        variable - the underlying IVML variable
        filter - the variable filter
    • Method Detail

      • getAttribute

        Attribute getAttribute​(int index)
        Returns the specified attribute.
        Specified by:
        getAttribute in class IvmlElement
        Parameters:
        index - the 0-based index of the attribute to return
        Returns:
        the specified attribute
        Throws:
        java.lang.IndexOutOfBoundsException - if index < 0 || index >= getAttributeCount()
      • getAttributeCount

        int getAttributeCount()
        Returns the number of attributes.
        Specified by:
        getAttributeCount in class IvmlElement
        Returns:
        the number of attributes
      • convert2Real

        public static double convert2Real​(DecisionVariable val)
        Conversion operation to Real.
        Parameters:
        val - the value (variable) to be converted
        Returns:
        the converted value (may be null, depends on the type of the variable)
      • convert2Integer

        public static int convert2Integer​(DecisionVariable val)
        Conversion operation to Integer.
        Parameters:
        val - the value (variable) to be converted
        Returns:
        the converted value (may be null, depends on the type of the variable)
      • convert2Boolean

        public static boolean convert2Boolean​(DecisionVariable val)
        Conversion operation to Boolean.
        Parameters:
        val - the value (variable) to be converted
        Returns:
        the converted value (may be null, depends on the type of the variable)
      • convert2String

        public static java.lang.String convert2String​(DecisionVariable val)
        Conversion operation to String.
        Parameters:
        val - the value (variable) to be converted
        Returns:
        the converted value (may be null, depends on the type of the variable)
      • convert2EnumValue

        public static EnumValue convert2EnumValue​(DecisionVariable val)
        Conversion operation to an EnumValue.
        Parameters:
        val - the value (variable) to be converted
        Returns:
        the converted value (may be null, depends on the type of the variable)
      • convert2Sequence

        public static Sequence<DecisionVariable> convert2Sequence​(DecisionVariable val)
        Conversion operation to an EnumValue.
        Parameters:
        val - the value (variable) to be converted
        Returns:
        the converted value (may be null, depends on the type of the variable)
      • isTypeOf

        public boolean isTypeOf​(TypeDescriptor<?> type)
        Returns whether type is of the same type as this object.
        Parameters:
        type - the type to compare with
        Returns:
        true if type is of the same type as this, false else
      • isKindOf

        public boolean isKindOf​(TypeDescriptor<?> type)
        Returns whether type is of the same or a super type as this object.
        Parameters:
        type - the type to compare with
        Returns:
        true if type is of the same or a super type as this, false else