All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ec.gp.GPNodeGatherer Maven / Gradle / Ivy

Go to download

ECJ, A Java-based Evolutionary Computation Research System. ECJ is a research EC system written in Java. It was designed to be highly flexible, with nearly all classes (and all of their settings) dynamically determined at runtime by a user-provided parameter file. All structures in the system are arranged to be easily modifiable. Even so, the system was designed with an eye toward efficiency. ECJ is developed at George Mason University's ECLab Evolutionary Computation Laboratory. The software has nothing to do with its initials' namesake, Evolutionary Computation Journal. ECJ's sister project is MASON, a multi-agent simulation system which dovetails with ECJ nicely.

The newest version!
/*
  Copyright 2006 by Sean Luke
  Licensed under the Academic Free License version 3.0
  See the file "LICENSE" for more information
*/


package ec.gp;
import java.io.Serializable;

/* 
 * GPNodeGatherer.java
 * 
 * Created: Fri Nov  5 17:01:13 1999
 * By: Sean Luke
 */

/**
 * GPNodeGatherer is a small container object for the GPNode.nodeInPosition(...)
 * method and GPNode.numNodes(...) method. 
 * It may be safely reused without being reinitialized.
 *
 * @author Sean Luke
 * @version 1.0 
 */

public abstract class GPNodeGatherer implements Serializable
    {
    // used internally by GPNode
    GPNode node;

    /** 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.  */
    public boolean test(final GPNode thisNode) { return true; }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy