ec.gp.ge
Class GrammarNode

java.lang.Object
  extended by 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
           
 
Constructor Summary
GrammarNode(java.lang.String head)
           
 
Method Summary
 java.lang.String getHead()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected java.util.ArrayList children
Constructor Detail

GrammarNode

public GrammarNode(java.lang.String head)
Method Detail

getHead

public java.lang.String getHead()