Logo
Distributed Genetic Programming Framework
print print

File org.dgpf.gui.actions.AbortSeAction.java

Here you can find all the information about the file org.dgpf.gui.actions.AbortSeAction.java. You may explore it here or download it onto your local disk.
/**
 * 
 */

package org.dgpf.gui.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import org.dgpf.gui.Client;
import org.dgpf.gui.utils.LanguageSwitcher;
import org.dgpf.search.control.protocol.AbortSeEvent;
import org.dgpf.search.control.protocol.ICommunicationPeer;

/**
 * @author lado
 */

public class AbortSeAction extends AbstractAction
  {

  /**
   *  ICommunicationPeer to close.
   *  
   */

  ICommunicationPeer m_cp;
  
  /**
   * DGPFClient to set as source.
   */

  Client m_client;
  
  /**
   * 
   */

  private static final long serialVersionUID = 1110950962591623360L;

  /**
   * Class Constructor.
   * 
   * @param p_cp CommunicationPeer to close.
   * @param p_client Source to set.
   */

  public AbortSeAction(Client p_client, ICommunicationPeer p_cp)
    {
    super(LanguageSwitcher.getString("actions.abortse"));
    this.m_client = p_client;
    this.m_cp = p_cp;
    }

  /**
   * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
   * @param event
   *          event to be handled.
   */

  public void actionPerformed(ActionEvent event)
    {
    if(this.m_cp != null)
      {
      try
        {
        this.m_cp.sendObject(new AbortSeEvent(this.m_client));
        }
      catch(Exception e)
        {
        System.err.println  ("Cannot abort...");
        e.printStackTrace();
        }
      }
    }

  }

File Information:

file name:AbortSeAction.java
package:org.dgpf.gui.actions
qualified name:org.dgpf.gui.actions.AbortSeAction.java
file type:Java Source File
download location:download http://dgpf.sourceforge.net/source/org/dgpf/gui/actions/AbortSeAction.java
size:1.372 KB (1405 B)
uploaded: 2015-07-22 04:10:58 GMT+0000
last update: 2006-09-24 23:47:04 GMT+0000
last access: 2017-11-24 00:14:18 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-24 00:14:18 GMT+0000.
Valid CSS Valid XHTML 1.1
Valid RSS SourceForge.net Logo