org.encog.ml.prg
Class VariableMapping
java.lang.Object
org.encog.ml.prg.VariableMapping
- All Implemented Interfaces:
- Serializable
public class VariableMapping
- extends Object
- implements Serializable
A variable mapping defines the type for each of the variables in an Encog
program.
- See Also:
- Serialized Form
VariableMapping
public VariableMapping(String theName,
ValueType theVariableType)
- Construct a variable mapping for a non-enum type.
- Parameters:
theName
- The variable name.theVariableType
- The variable type.
VariableMapping
public VariableMapping(String theName,
ValueType theVariableType,
int theEnumType,
int theEnumValueCount)
- Construct a variable mapping.
- Parameters:
theName
- The name of the variable.theVariableType
- The type of the variable.theEnumType
- The enum type.theEnumValueCount
- The number of values for an enum.
getEnumType
public int getEnumType()
- Returns:
- the enumType
getEnumValueCount
public int getEnumValueCount()
- Returns:
- the enumValueCount
getName
public String getName()
- Returns:
- the name
getVariableType
public ValueType getVariableType()
- Returns:
- the variableType
toString
public String toString()
-
- Overrides:
toString
in class Object
Copyright © 2014. All Rights Reserved.