|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.prg.expvalue.ExpressionValue
public class ExpressionValue
An EncogProgram expression value. These is how Encog stores variables and calculates values.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 toString()
toString
in class Object
public String toStringValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |