gpalta.core
Class NodeSet

java.lang.Object
  extended by gpalta.core.NodeSet
All Implemented Interfaces:
java.io.Serializable

public class NodeSet
extends java.lang.Object
implements java.io.Serializable

Simple class that defines a set of Nodes. It has three subsets: functions, terminals and all. The "all" list should contain both functions and terminals

See Also:
Serialized Form

Constructor Summary
NodeSet(java.lang.String name)
           
 
Method Summary
 void addFunction(Node node)
           
 void addTerminal(Node node)
           
 java.util.List<Node> getAll()
           
 java.util.List<Node> getFunctions()
           
 java.lang.String getName()
           
 java.util.List<Node> getTerminals()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeSet

public NodeSet(java.lang.String name)
Method Detail

getAll

public java.util.List<Node> getAll()

getTerminals

public java.util.List<Node> getTerminals()

addTerminal

public void addTerminal(Node node)

getFunctions

public java.util.List<Node> getFunctions()

addFunction

public void addFunction(Node node)

getName

public java.lang.String getName()