Last change
on this file since 12912 was
6152,
checked in by bfarka, 14 years ago
|
added ecj and custom statistics to communicate with the okb services #1441
|
File size:
756 bytes
|
Line | |
---|
1 | package ec.gp.ge;
|
---|
2 | import 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 |
|
---|
19 | public 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.