Logo
Distributed Genetic Programming Framework
print print

File org.dgpf.gp.regression.base.NetworkImpl.java

Here you can find all the information about the file org.dgpf.gp.regression.base.NetworkImpl.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-07-27 05:04:11
 * Original Filename: org.dgpf.gp.regression.NetworkImpl.java
 * Version          : 1.0.0
 * Last modification: 2006-07-27
 *                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.gp.regression.base;


/**
 * This class provides the internal network simulation used for distributed
 * regression.
 *
 * @author Thomas Weise
 */

public abstract class NetworkImpl
  {
/**
 * The aggregation context internally used.
 */

  private final AggregationContext m_context ;
  
/**
 * Create a network implementation.
 * @param p_context The hosting context.
 */

  public  NetworkImpl (final AggregationContext p_context)
    {
    super();
    this.m_context = p_context;
    this.set_features(p_context.get_node_count(),
                      (int)(p_context.get_steps_per_simulation()));
    }
  
/**
 * Obtain the aggregation context hosting this network implementation.
 * @return The aggregation context hosting this network implementation.
 */

  public  final AggregationContext   get_context()
    {
    return this.m_context;
    }
  
  
/**
 * Set the most vital features of a network simulation, the node count and
 * the simulation count.
 * @param p_node_count  The new count of nodes participating in this
 *                      aggregation function regression.
 * @param p_steps_per_simulation The new count of steps per simulation.
 */

  protected void  set_features (final int p_node_count,
                                final int p_steps_per_simulation)
    {
    //
    }
  
/**
 * Perform the exchange of variables.
 * @param p_source_variable   The identifier of the source variable.
 * @param p_dest_variable     The identifier of the destination variable.
 * @param p_step              The current simulation step.
 */

  protected abstract  void  deliver (final int p_source_variable,
                                     final int p_dest_variable,
                                     final int p_step);
  }

File Information:

file name:NetworkImpl.java
package:org.dgpf.gp.regression.base
qualified name:org.dgpf.gp.regression.base.NetworkImpl.java
file type:Java Source File
download location:download http://dgpf.sourceforge.net/source/org/dgpf/gp/regression/base/NetworkImpl.java
size:2.873 KB (2942 B)
uploaded: 2012-05-02 03:10:52 GMT+0000
last update: 2006-08-07 08:07:32 GMT+0000
last access: 2012-11-21 18:41:07 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 2012-05-02 03:10:45 GMT+0000 served at 2014-10-24 17:59:27 GMT+0000.
Valid CSS Valid XHTML 1.1
Valid RSS SourceForge.net Logo