ec.gp
Class GPNodeGatherer

java.lang.Object
  extended by ec.gp.GPNodeGatherer
All Implemented Interfaces:
java.io.Serializable

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

GPNodeGatherer is a small container object for the GPNode.nodeInPosition(...) method and GPNode.numNodes(...) method. It may be safely reused without being reinitialized.

Version:
1.0
Author:
Sean Luke
See Also:
Serialized Form

Field Summary
 GPNode node
           
 
Constructor Summary
GPNodeGatherer()
           
 
Method Summary
 boolean test(GPNode thisNode)
          Returns true if thisNode is the kind of node to be considered in the gather count for nodeInPosition(...) and GPNode.numNodes(GPNodeGatherer).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

public GPNode node
Constructor Detail

GPNodeGatherer

public GPNodeGatherer()
Method Detail

test

public boolean test(GPNode thisNode)
Returns true if thisNode is the kind of node to be considered in the gather count for nodeInPosition(...) and GPNode.numNodes(GPNodeGatherer). The default form simply returns true.