Class Attribute

    • Constructor Detail

      • Attribute

        Attribute​(Configuration parent,
                  IDecisionVariable attribute,
                  IVariableFilter filter)
        Creates a new attribute instance.
        Parameters:
        parent - the parent configuration
        attribute - the IVML attribute
        filter - the variable filter to apply
    • 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​(Attribute 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 attribute)
      • convert2Integer

        public static int convert2Integer​(Attribute 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 attribute)
      • convert2Boolean

        public static boolean convert2Boolean​(Attribute 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 attribute)
      • convert2String

        public static java.lang.String convert2String​(Attribute 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 attribute)
      • convert2EnumValue

        public static EnumValue convert2EnumValue​(Attribute 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 attribute)
      • convert2Sequence

        public static Sequence<DecisionVariable> convert2Sequence​(Attribute 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)