Distributed Genetic Programming Framework
print print

File org.dgpf.search.algorithms.ga.p2p.P2PGeneticStateBag.java

Here you can find all the information about the file org.dgpf.search.algorithms.ga.p2p.P2PGeneticStateBag.java. You may explore it here or download it onto your local disk.
 * Copyright (c) 2006 Thomas Weise
 * E-Mail           : tweise@gmx.de
 * Creation Date    : 2006-04-10 06:39:04
 * Original Filename: org.dgpf.search.algorithms.ga.p2p.P2PGeneticStateBag.java
 * Version          : 2.0.0
 * Last modification: 2006-05-08
 *                by: Thomas Weise
 *                    Version 2.1, February 1999
 *                    You should have received a copy of this license along
 *                    with this library; if not, write to the Free Software
 *                    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *                    MA 02111-1307, USA or download the license under
 *                    http://www.gnu.org/copyleft/lesser.html.
 * Warranty         : This software is provided "as is" without any
 *                    warranty; without even the implied warranty of
 *                    merchantability or fitness for a particular purpose.
 *                    See the Gnu Lesser General Public License for more
 *                    details.

package org.dgpf.search.algorithms.ga.p2p;

import java.io.Serializable;

import org.dgpf.search.algorithms.ga.GeneticStateBag;
import org.dgpf.search.api.SearchState;
import org.dgpf.search.api.p2p.P2PStateBag;

 * <p>
 * This state bag hosts a genetic peer-to-peer state.
 * </p><p>
 * The genetic state bag contains the state of the evolution. It is the
 * only instance able to access the data of the <code>GeneticState</code>.
 * You should place variables like the statistic bags into instances of
 * <code>GeneticStateBag</code> while putting the statistic info records
 * into <code>GeneticState</code>. This way you prevent them from being
 * serialized/cloned/copied/accessed whenever this is done to a genetic
 * state.
 * </p>
 * @param <Genotype>    The sort of genotype used to represent individuals.
 *                      This must be a serializable type.
 * @see P2PGeneticState
 * @author Thomas Weise

public class P2PGeneticStateBag<Genotype extends Serializable>
                                         extends GeneticStateBag<Genotype>
 * The serial version uid.

  private static final long serialVersionUID = 1;
 * The peer-to-peer state extension.

                P2PStateBag   m_p2p_state;

 * Create a new p2p genetic state bag.
 * @param p_ff_count  The count of fitness functions evaluated by this
 *                    search.

  protected P2PGeneticStateBag  (final int p_ff_count)

 * Create the p2p-state bag to be internally hosted.
 * @param p_ff_count  The count of fitness functions evaluated by this
 *                    search.
 * @return The p2p-state bag to be internally hosted.

  protected P2PStateBag create_p2p_state  (final int p_ff_count)
    return new P2PStateBag(p_ff_count);

 * This method is used internally to create a search state instance that
 * can be hosted by this bag.
 * @param p_ff_count  The count of fitness functions evaluated by this
 *                    search.
 * @return  The new search state.

  protected SearchState<Genotype> create_state (final int p_ff_count)
    this.m_p2p_state = this.create_p2p_state(p_ff_count);
    return new P2PGeneticState<Genotype>(p_ff_count, this);

File Information:

file name:P2PGeneticStateBag.java
qualified name:org.dgpf.search.algorithms.ga.p2p.P2PGeneticStateBag.java
file type:Java Source File
download location:download http://dgpf.sourceforge.net/source/org/dgpf/search/algorithms/ga/p2p/P2PGeneticStateBag.java
size:3.390 KB (3472 B)
uploaded: 2018-01-07 12:03:35 GMT+0000
last update: 2006-05-08 13:42:00 GMT+0000
last access: 2018-04-26 11:21:44 GMT+0000

statistics online since 2006-01-02.   RSS Feed
Contact us by sending an email to tweise@gmx.de to receive further information, to report errors, or to join our project.
All content on this site (http://dgpf.sourceforge.net/) is LGPL-licensed.
http://dgpf.sourceforge.net/scripts/source/source.php last modified at 2018-01-07 12:03:34 GMT+0000 served at 2018-04-26 11:21:44 GMT+0000.
Valid CSS Valid XHTML 1.1
Valid RSS SourceForge.net Logo