Logo
Distributed Genetic Programming Framework
print print

File org.dgpf.search.algorithms.hc.p2p.P2PHCStateBag.java

Here you can find all the information about the file org.dgpf.search.algorithms.hc.p2p.P2PHCStateBag.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-05-10 08:17:53
 * Original Filename: org.dgpf.search.algorithms.hc.HCStateBag.java
 * Version          : 1.0.0
 * Last modification: 2006-05-10
 *                by: Thomas Weise
 * 
 * License          : GNU LESSER GENERAL PUBLIC LICENSE
 *                    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.hc.p2p;

import java.io.Serializable;

import org.dgpf.search.algorithms.hc.HCStateBag;
import org.dgpf.search.api.SearchState;
import org.dgpf.search.api.p2p.P2PStateBag;

/**
 * The state of the p2p-extended hill climbing engine.
 * @param <Genotype> The genotype of the elements to be evolved.
 *
 * @author Thomas Weise
 */

public class P2PHCStateBag<Genotype extends Serializable>
                                    extends HCStateBag<Genotype>
  {
/**
 * The serial version uid.
 */

  private static final long serialVersionUID = 1;
/**
 * The peer-to-peer parameter state bag.
 */

  P2PStateBag m_p2p_state;
  
/**
 * Create a new extended hill climbing state bag.
 * @param p_ff_count  The count of fitness functions evaluated by this
 *                    search.
 */

  protected P2PHCStateBag  (final int  p_ff_count)
    {
    super(p_ff_count);
    }
  

/**
 * This method allows you to perform additional initialization before
 * the hosted search state will be created.
 * @param p_ff_count  The count of fitness functions evaluated by this
 *                    search.
 */

  @Override
  protected void  init  (final int  p_ff_count)
    {
    super.init(p_ff_count);
    this.m_p2p_state = 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. 
 */

  @Override
  protected SearchState<Genotype> create_state(final int  p_ff_count)
    {
    return new P2PHCState<Genotype>(p_ff_count, this);
    }
  }

File Information:

file name:P2PHCStateBag.java
package:org.dgpf.search.algorithms.hc.p2p
qualified name:org.dgpf.search.algorithms.hc.p2p.P2PHCStateBag.java
file type:Java Source File
download location:download http://dgpf.sourceforge.net/source/org/dgpf/search/algorithms/hc/p2p/P2PHCStateBag.java
size:2.801 KB (2869 B)
uploaded: 2015-07-22 04:10:59 GMT+0000
last update: 2006-05-11 06:30:36 GMT+0000
last access: 2017-11-17 21:12:39 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 2015-07-22 04:10:53 GMT+0000 served at 2017-11-17 21:12:39 GMT+0000.
Valid CSS Valid XHTML 1.1
Valid RSS SourceForge.net Logo