Package adams.core

Class VariablesUtils


  • public class VariablesUtils
    extends Object
    Helper methods around variable handling.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • VariablesUtils

        public VariablesUtils()
    • Method Detail

      • transferVariable

        public static void transferVariable​(OptionHandler source,
                                            OptionHandler target,
                                            String property)
        Transfers the variable (if any attached).
        Parameters:
        source - the source from which to transfer the variable
        target - the target to receive the variable
        property - the property for which to transfer the variable
      • transferVariable

        public static void transferVariable​(OptionHandler source,
                                            String sourceProperty,
                                            OptionHandler target,
                                            String targetProperty)
        Transfers the variable (if any attached) form one property to another.
        Parameters:
        source - the source from which to transfer the variable
        sourceProperty - the source property for which to transfer the variable
        target - the target to receive the variable
        targetProperty - the target property to receive the variable