ec.gp
Class GPNodeGatherer

java.lang.Object
  |
  +--ec.gp.GPNodeGatherer

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.

See Also:
Serialized Form

Field Summary
 GPNode node
           
 
Constructor Summary
GPNodeGatherer()
           
 
Method Summary
 boolean test(GPNode node)
          Returns true if this node 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 node)
Returns true if this node is the kind of node to be considered in the gather count for nodeInPosition(...) and GPNode.numNodes(GPNodeGatherer). The default form simply returns true.