public class GrammarFunctionNode extends GrammarNode
| Modifier and Type | Field and Description |
|---|---|
(package private) GPNode |
prototype |
children, head| Constructor and Description |
|---|
GrammarFunctionNode(GPFunctionSet gpfs,
String name)
Determines the GPNode from the function set by the name.
|
GrammarFunctionNode(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(GrammarNode arg)
Adds a given argument to the node.
|
GrammarNode |
getArgument(int index)
Returna given argument.
|
GPNode |
getGPNodePrototype()
Returns the prototype without cloning it first.
|
int |
getNumArguments()
Returns the number of arguments.
|
String |
toString()
A better toString() function -- khaled
|
equals, getHead, hashCodeGPNode prototype
public GrammarFunctionNode(GPFunctionSet gpfs, String name)
public GrammarFunctionNode(String name)
public void addArgument(GrammarNode arg)
public int getNumArguments()
public GrammarNode getArgument(int index)
public GPNode getGPNodePrototype()
public String toString()
toString in class GrammarNodeCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.