|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.representation.Node<TYPE>
com.epochx.representation.TerminalNode<TYPE>
public class TerminalNode<TYPE>
Defines a terminal node.
| Constructor Summary | |
|---|---|
TerminalNode(TYPE value)
Constructor for a new terminal node. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a copy of this terminal node. |
boolean |
equals(java.lang.Object obj)
Compares an object for equivalence to this terminal node. |
TYPE |
evaluate()
Evaluation of a terminal node depends on if it is an action or not. |
TYPE |
getValue()
Returns the value of the terminal node. |
int |
hashCode()
|
void |
setValue(TYPE value)
Replaces the value of the terminal node. |
java.lang.String |
toString()
Returns a string representation of this TerminalNode. |
| Methods inherited from class com.epochx.representation.Node |
|---|
getArity, getChild, getChildren, getDepth, getFunctionNodes, getLength, getNodesAtDepth, getNoDistinctFunctions, getNoDistinctTerminals, getNoFunctions, getNoTerminals, getNthNode, getTerminalNodes, setChild, setChildren, setNthNode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TerminalNode(TYPE value)
value - the value of the terminal node.| Method Detail |
|---|
public TYPE getValue()
public void setValue(TYPE value)
value - the new value to store.public TYPE evaluate()
evaluate in class Node<TYPE>public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class Node<TYPE>public boolean equals(java.lang.Object obj)
equals in class Node<TYPE>obj - an object to compare for equivalence.
public int hashCode()
hashCode in class Node<TYPE>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||