Class VariableDefinition


  • public final class VariableDefinition
    extends Object
    Defines how a variable should be created.
    • Constructor Detail

      • VariableDefinition

        public VariableDefinition()
        Initializes a new instance of the VariableDefinition class.
      • VariableDefinition

        public VariableDefinition​(String dataColumn,
                                  String name,
                                  VariableValueType valueType)
        Initializes a new instance of the VariableDefinition class.
        Parameters:
        dataColumn - The data column.
        name - The name for the new variable.
        valueType - The VariableValueType for the new variable, or null if this should be detected automatically.
      • VariableDefinition

        public VariableDefinition​(String dataColumn,
                                  String name,
                                  VariableValueType valueType,
                                  StateValueType stateValueType)
        Initializes a new instance of the VariableDefinition class.
        Parameters:
        dataColumn - The data column.
        name - The name for the new variable.
        valueType - The VariableValueType for the new variable, or null if this should be detected automatically.
        stateValueType - The StateValueType for the new variable, or null if this should be detected automatically.
    • Method Detail

      • getEmptyStringAction

        public EmptyStringAction getEmptyStringAction()
        Determines the action to take if an empty string is encountered.
      • setEmptyStringAction

        public void setEmptyStringAction​(EmptyStringAction value)
        Determines the action to take if an empty string is encountered.
      • getDiscretizationMethod

        public DiscretizationMethod getDiscretizationMethod()
        Gets the method (algorithm) to use for discretization, if any.
      • setDiscretizationMethod

        public void setDiscretizationMethod​(DiscretizationMethod value)
        Sets the method (algorithm) to use for discretization, if any.
      • getSortOrder

        public SortOrder getSortOrder()
        Gets the sort order for states of a new discrete variable. Note that this value is ignored if StateValueType is not StateValueType.NONE, whether specified or auto detected.
      • setSortOrder

        public void setSortOrder​(SortOrder value)
        Sets the sort order for states of a new discrete variable. Note that this value is ignored if StateValueType is not StateValueType.NONE, whether specified or auto detected.
      • getName

        public String getName()
        Gets the name for the new variable.
      • setName

        public void setName​(String value)
        Sets the name for the new variable.
      • getDataColumn

        public String getDataColumn()
        The name of the data column, containing the data used to generate the new variable.
      • setDataColumn

        public void setDataColumn​(String value)
        The name of the data column, containing the data used to generate the new variable.