org.encog.ml.prg
Class VariableMapping
- java.lang.Object
-
- org.encog.ml.prg.VariableMapping
-
- All Implemented Interfaces:
- java.io.Serializable
public class VariableMapping extends java.lang.Object implements java.io.SerializableA variable mapping defines the type for each of the variables in an Encog program.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description VariableMapping(java.lang.String theName, ValueType theVariableType)Construct a variable mapping for a non-enum type.VariableMapping(java.lang.String theName, ValueType theVariableType, int theEnumType, int theEnumValueCount)Construct a variable mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetEnumType()intgetEnumValueCount()java.lang.StringgetName()ValueTypegetVariableType()java.lang.StringtoString()
-
-
-
Constructor Detail
-
VariableMapping
public VariableMapping(java.lang.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(java.lang.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.
-
-
Method Detail
-
getEnumType
public int getEnumType()
- Returns:
- the enumType
-
getEnumValueCount
public int getEnumValueCount()
- Returns:
- the enumValueCount
-
getName
public java.lang.String getName()
- Returns:
- the name
-
getVariableType
public ValueType getVariableType()
- Returns:
- the variableType
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG