Package ec.gp

Class GPNodeGatherer

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

public abstract class GPNodeGatherer extends Object implements 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:
  • Constructor Details

    • GPNodeGatherer

      public GPNodeGatherer()
  • Method Details

    • 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.