Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/gp/ge/GrammarNode.java @ 6152

Last change on this file since 6152 was 6152, checked in by bfarka, 13 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 756 bytes
Line 
1package ec.gp.ge;
2import java.util.*;
3
4/*
5 * GrammarNode.java
6 *
7 * Created: Sun Dec  5 11:33:43 EST 2010
8 * By: Houston Mooers and Sean Luke
9 *
10 */
11
12/**
13 * The abstract superclass of nodes used by GrammarParser to construct a parse graph to generate
14 * GEIndividuals.  GrammarNode has a *head*, which typically holds the name of the node,
15 * and an array of *children*, which are themselves GrammarNodes.
16 *
17 */
18
19public abstract class GrammarNode
20    {
21    String head;
22    protected ArrayList children = new ArrayList();  // may be empty but it's not very expensive
23       
24    public GrammarNode(String head)
25        {
26        this.head = head;
27        }
28               
29    public String getHead() { return head; }
30    }
Note: See TracBrowser for help on using the repository browser.