Initializing help system before first use

XPRMConstant

  • java.lang.Object
    • com.dashoptimization.XPRMConstant
    • Constructor Detail

      • XPRMConstant

        public XPRMConstant()
    • Method Detail

      • asInteger

        public int asInteger()
        An integer. This function is defined if the constant is an integer.
        Returns:
        The integer value
      • asReal

        public double asReal()
        A real. This function is defined if the constant is a real.
        Returns:
        The real value
      • asBoolean

        public boolean asBoolean()
        A Boolean. This function is defined if the constant is a Boolean.
        Returns:
        The Boolean value
      • asString

        public java.lang.String asString()
        A string. This function is defined if the constant is a string.
        Returns:
        The string value
      • getStructCode

        public final int getStructCode()
        Description copied from interface: XPRMTyped
        Structure code. The code is one of the STR_* values.
        Specified by:
        getStructCode in interface  XPRMTyped
        Returns:
        Encoded structure
      • getStructName

        public final java.lang.String getStructName()
        Description copied from interface: XPRMTyped
        String representation of structure.
        Specified by:
        getStructName in interface  XPRMTyped
        Returns:
        Structure name
      • toString

        public abstract java.lang.String toString()
        String representation of the constant.
        Overrides:
        toString in class  java.lang.Object
        Returns:
        String corresponding to the value