org.encog.ml.prg.expvalue
public class ExpressionValue extends Object implements Serializable
Constructor and Description |
---|
ExpressionValue(boolean theValue)
Construct a boolean expression.
|
ExpressionValue(double theValue)
Construct a boolean expression.
|
ExpressionValue(ExpressionValue other)
Construct a expression based on an expression.
|
ExpressionValue(int enumType,
long theValue)
Construct an enum expression.
|
ExpressionValue(long theValue)
Construct an integer expression.
|
ExpressionValue(String theValue)
Construct a string expression.
|
ExpressionValue(ValueType theType)
Construct a value of the specified type.
|
Modifier and Type | Method and Description |
---|---|
int |
getEnumType() |
ValueType |
getExpressionType() |
boolean |
isBoolean() |
boolean |
isEnum() |
boolean |
isFloat() |
boolean |
isInt() |
boolean |
isNumeric() |
boolean |
isString() |
boolean |
toBooleanValue() |
double |
toFloatValue() |
long |
toIntValue() |
String |
toString() |
String |
toStringValue() |
public ExpressionValue(boolean theValue)
theValue
- The value to construct.public ExpressionValue(double theValue)
theValue
- The value to construct.public ExpressionValue(ExpressionValue other)
other
- The value to construct.public ExpressionValue(int enumType, long theValue)
theValue
- The value to construct.public ExpressionValue(long theValue)
theValue
- The value to construct.public ExpressionValue(String theValue)
theValue
- The value to construct.public ExpressionValue(ValueType theType)
theType
- The value to construct.public int getEnumType()
public ValueType getExpressionType()
public boolean isBoolean()
public boolean isEnum()
public boolean isFloat()
public boolean isInt()
public boolean isNumeric()
public boolean isString()
public boolean toBooleanValue()
public double toFloatValue()
public long toIntValue()
public String toStringValue()
Copyright © 2014. All Rights Reserved.