net.sf.amiba.impl.scientific
Class RootNode

Object
  extended by SimpleNode
      extended by RootNode
All Implemented Interfaces:
GEPRootNode<Double>, Node

public class RootNode
extends SimpleNode
implements GEPRootNode<Double>


Field Summary
 
Fields inherited from class SimpleNode
children, id, operator, parent, parser, terminal
 
Constructor Summary
RootNode(int id)
           
RootNode(ScientificParser p, int id)
           
 
Method Summary
 Object jjtAccept(ScientificParserVisitor visitor, Object data)
          Accept the visitor.
 Double walk(FitnessCase<Double> fitnessCase)
          walk the abstract syntax tree using given fitness case and return the result of this evaluation
 
Methods inherited from class SimpleNode
childrenAccept, dump, getOperator, getTerminal, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setOperator, setTerminal, toString, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RootNode

public RootNode(int id)

RootNode

public RootNode(ScientificParser p,
                int id)
Method Detail

jjtAccept

public Object jjtAccept(ScientificParserVisitor visitor,
                        Object data)
Accept the visitor. *

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode

walk

public Double walk(FitnessCase<Double> fitnessCase)
Description copied from interface: GEPRootNode
walk the abstract syntax tree using given fitness case and return the result of this evaluation

Specified by:
walk in interface GEPRootNode<Double>
Returns: