ec.gp.ge
Class GrammarNode
java.lang.Object
ec.gp.ge.GrammarNode
- Direct Known Subclasses:
- GrammarFunctionNode, GrammarRuleNode
public abstract class GrammarNode
- extends java.lang.Object
The abstract superclass of nodes used by GrammarParser to construct a parse graph to generate
GEIndividuals. GrammarNode has a *head*, which typically holds the name of the node,
and an array of *children*, which are themselves GrammarNodes.
Field Summary |
protected java.util.ArrayList |
children
|
Method Summary |
java.lang.String |
getHead()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
children
protected java.util.ArrayList children
GrammarNode
public GrammarNode(java.lang.String head)
getHead
public java.lang.String getHead()