Class OptData

    • Constructor Detail

      • OptData

        public OptData()
    • Method Detail

      • set

        public void set​(String var,
                        double val)
        Set var value.
        Parameters:
        var - var name.
        val - var value.
      • getVarNames

        public Set<String> getVarNames()
        Get set of varnames.
        Returns:
        varname set
      • getDataNames

        public Set<String> getDataNames()
        Get set of datanames.
        Returns:
        dataame set
      • add

        public void add​(OptVar ov)
        Add var.
        Parameters:
        ov - var
      • getVar

        public OptVar getVar​(String name)
        Get var.
        Parameters:
        name - varname
        Returns:
        var
      • get

        public Double get​(String var)
        Get var value.
        Parameters:
        var - varname
        Returns:
        var value
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface CleanUpHandler
      • toString

        public String toString()
        Returns a string representation of the data structure.
        Overrides:
        toString in class Object
        Returns:
        the string representation
      • toVarString

        public String toVarString()
        Returns a string representation of the data structure.
        Returns:
        the string representation