ec.app.ordertree.func
Class OrderTreeF5
- java.lang.Object
-
- ec.gp.GPNode
-
- ec.app.ordertree.func.OrderTreeNode
-
- ec.app.ordertree.func.OrderTreeF5
-
- All Implemented Interfaces:
- GPNodeParent, Prototype, Setup, java.io.Serializable, java.lang.Cloneable
public class OrderTreeF5 extends OrderTreeNode
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ec.gp.GPNode
argposition, children, CHILDREN_UNKNOWN, constraints, GPNODEPRINTTAB, MAXPRINTBYTES, NODESEARCH_ALL, NODESEARCH_NONTERMINALS, NODESEARCH_TERMINALS, P_NODE, P_NODECONSTRAINTS, parent
-
-
Constructor Summary
Constructors Constructor and Description OrderTreeF5()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intexpectedChildren()Returns the number of children this node expects to have.intvalue()-
Methods inherited from class ec.app.ordertree.func.OrderTreeNode
eval, toString
-
Methods inherited from class ec.gp.GPNode
atDepth, checkConstraints, clone, cloneReplacing, cloneReplacing, cloneReplacing, cloneReplacingAtomic, cloneReplacingAtomic, cloneReplacingNoSubclone, constraints, contains, defaultBase, depth, errorInfo, iterator, iterator, iterator, lightClone, makeCTree, makeGraphvizTree, makeLatexTree, makeLispTree, makeLispTree, name, nodeEquals, nodeEquivalentTo, nodeHashCode, nodeInPosition, nodeInPosition, numNodes, numNodes, parentType, pathLength, printNode, printNode, printNode, printNodeForHumans, printNodeForHumans, printRootedTree, printRootedTree, printRootedTree, printRootedTreeForHumans, printRootedTreeForHumans, readNode, readNode, readRootedTree, readRootedTree, replaceWith, resetNode, rootedTreeEquals, rootedTreeHashCode, rootParent, setup, swapCompatibleWith, toStringForError, toStringForHumans, writeNode, writeRootedTree
-
-
-
-
Method Detail
-
value
public int value()
- Specified by:
valuein classOrderTreeNode
-
expectedChildren
public int expectedChildren()
Description copied from class:GPNodeReturns the number of children this node expects to have. This method is only called by the default implementation of checkConstraints(...), and by default it returns CHILDREN_UNKNOWN. You can override this method to return a value >= 0, which will be checked for in the default checkConstraints(...), or you can leave this method alone and override checkConstraints(...) to check for more complex constraints as you see fit.- Overrides:
expectedChildrenin classGPNode
-
-
DMelt 3.0 © DataMelt by jWork.ORG