Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/project-web/dgpf/htdocs/scripts/datetime.php:7) in /home/project-web/dgpf/htdocs/scripts/init.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/project-web/dgpf/htdocs/scripts/datetime.php:7) in /home/project-web/dgpf/htdocs/scripts/init.php on line 29
Distributed Genetic Programming Framework
Logo
Distributed Genetic Programming Framework
print print


Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 16

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 16

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 16

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 16

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 16

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 16

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

Here you can find all the information about the file org.dgpf.search.algorithms.hc.p2p.P2PHCParameters.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:18:00
 * Original Filename: org.dgpf.search.algorithms.hc.HCParameters.java
 * Version          : 1.0.2
 * Last modification: 2006-05-29
 *                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.HCParameters;
import org.dgpf.search.api.Assigner;
import org.dgpf.search.api.FitnessFunction;
import org.dgpf.search.api.SearchData;
import org.dgpf.search.api.p2p.P2PParameters;
import org.dgpf.search.api.p2p.P2PSearchUtils;
import org.sfc.math.stochastic.Randomizer;
import org.sfc.meta.MetaInformation;
import org.sfc.utils.Typesafe;

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

public class P2PHCParameters<Genotype extends Serializable>
                                      extends HCParameters<Genotype>
  {
/**
 * The serial version uid.
 */

  private static final long serialVersionUID = 1;
  
/**
 * The meta information of the p2p hill climbing parameters.
 */

  public  static  final MetaInformation P2P_HC_PARAMETERS_METAINFO  ;
  
  static
    {
    P2PSearchUtils.P2P_PARAMETERS.add_port(
            P2PHCParameters.class, true, false, null);    
    P2P_HC_PARAMETERS_METAINFO = new MetaInformation();
    }
  
/**
 * The peer-to-peer-parameter set.
 */

  private final P2PParameters m_p2p_parameters;
  
/**
 * Create a new hill climbing parameter set.
 * @param p_data  The search data to assign to.
 */

  public P2PHCParameters (final SearchData p_data)
    {
    super(p_data);
    this.m_p2p_parameters = new P2PParameters(this.get_fitness_function_count());
    }

/**
 * Create a new hill climbing parameter set.
 * @param p_functions   The fitness functions to be applied in this
 *                      evolution.
 */

   public P2PHCParameters(final FitnessFunction<Genotype,?>[]  p_functions)
     {
     this(p_functions.length);
     }

/**
 * Create a new hill climbing parameter set.
 * @param p_ff_count  The count of fitness functions evaluated by this
 *                    search.
 */

  public     P2PHCParameters (final int p_ff_count)
    {
    super(p_ff_count);
    
    this.m_p2p_parameters = new P2PParameters(p_ff_count);
    }


  
/**
 * Assign the internal data of this search data to the data of
 * another one.
 * @param p_data  The simulation data  to assign to.
 */

  @Override
  public void  assign  (final Object p_data)
    { 
    P2PHCState<Genotype>  l_hcs;
    
    super.assign(p_data);
    
    if(p_data instanceof P2PHCState)
      {
      l_hcs               = Typesafe.cast(p_data);
      Assigner.assign(this.m_p2p_parameters, l_hcs.get_p2p_state());
      }
    else
      {
      if(p_data instanceof P2PHCParameters)
        {
        Assigner.assign(this.m_p2p_parameters,
                           ((P2PHCParameters)p_data).m_p2p_parameters);
        }
      }
    }
  

/**
 * Obtain the peer-to-peer parameters containing the control data of the
 * peer-to-peer node.
 * @return The peer-to-peer parameters containing the control data of the
 *         peer-to-peer node.
 */

  public  final P2PParameters get_p2p_parameters  ()
    {
    return this.m_p2p_parameters;
    }
  

/**
 * After setting the non-fitness-influencing parameters of this search
 * parameter set to the allowed maximum, call this method to alter the
 * configuration randomly.
 * @param p_r The randomizer to be used.
 */

  @Override
  public  void  configure_randomly  (final Randomizer p_r)
    {  
    this.get_p2p_parameters().configure_randomly(p_r);
    super.configure_randomly(p_r);
    }
  }

File Information:

file name:P2PHCParameters.java
package:org.dgpf.search.algorithms.hc.p2p
qualified name:org.dgpf.search.algorithms.hc.p2p.P2PHCParameters.java
file type:Java Source File
download location:download http://dgpf.sourceforge.net/source/org/dgpf/search/algorithms/hc/p2p/P2PHCParameters.java
size:4.623 KB (4734 B)
uploaded: 2018-01-07 12:03:35 GMT+0000
last update: 2006-08-22 13:26:19 GMT+0000
last access: 2018-01-07 12:03:35 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
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 16

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 16
last modified at 2018-01-07 12:03:34 GMT+0000
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 19

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/dgpf/htdocs/scripts/datetime.php on line 19
served at 2018-02-19 02:10:31 GMT+0000.
Valid CSS Valid XHTML 1.1
Valid RSS SourceForge.net Logo