public class SubDouble extends ProgramNode
children, parent, TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_INT, TYPE_UNDEFINED, values| Constructor and Description |
|---|
SubDouble()
Constructing the function with two operands.
|
SubDouble(Element n)
Creates the function via XML.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
eval()
Subtracts the values of the two children.
|
int |
getOperandType(int index)
Returns the operand type Double for both children.
|
int |
getResultType()
Returns the result type Double.
|
java.lang.String |
getSignature()
Returns the string signature of the node.
|
void |
mutate()
Changes the operand sequence.
|
java.lang.String |
toString()
Returns the string representation of the node.
|
addValue, children, clearValues, clone, create, equals, getAllowsChildren, getChildAt, getChildCount, getIndex, getLevel, getParent, hashCode, insert, isLeaf, randomize, remove, remove, removeFromParent, setParent, setUserObject, toXmlpublic SubDouble()
public SubDouble(Element n)
n - an XML node elementpublic int getOperandType(int index)
getOperandType in class ProgramNodeindex - a child indexpublic int getResultType()
getResultType in class ProgramNodepublic java.lang.Object eval()
eval in class ProgramNodepublic void mutate()
mutate in class ProgramNodepublic java.lang.String getSignature()
getSignature in class ProgramNodepublic java.lang.String toString()
toString in class ProgramNode