source: branches/MetisMQI/src/main/java/weka/gui/beans/ConnectionNotificationConsumer.java @ 29

Last change on this file since 29 was 29, checked in by gnappo, 14 years ago

Taggata versione per la demo e aggiunto branch.

File size: 2.2 KB
Line 
1/*
2 *    This program is free software; you can redistribute it and/or modify
3 *    it under the terms of the GNU General Public License as published by
4 *    the Free Software Foundation; either version 2 of the License, or
5 *    (at your option) any later version.
6 *
7 *    This program is distributed in the hope that it will be useful,
8 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
9 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 *    GNU General Public License for more details.
11 *
12 *    You should have received a copy of the GNU General Public License
13 *    along with this program; if not, write to the Free Software
14 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15 */
16
17/*
18 *    ConnectionNotificationConsumer.java
19 *    Copyright (C) 2005 University of Waikato, Hamilton, New Zealand
20 */
21
22package weka.gui.beans;
23
24/**
25 * Interface for Beans that can receive (dis-)connection events generated when
26 * (dis-)connecting data processing nodes in the Weka KnowledgeFlow.
27 *
28 * This is useful, for example, for "intelligent" filters that are able to share
29 * configuration information with preceding nodes in the processing chain.
30 *
31 * @author Carsten Pohle (cp AT cpohle de)
32 * @version $Revision: 1.2 $
33 */
34public interface ConnectionNotificationConsumer {
35  /**
36   * Notify this object that it has been registered as a listener with a source
37   * with respect to the supplied event name.
38   *
39   * This method should be implemented <emph>synchronized</emph>.
40   *
41   * @param eventName
42   * @param source
43   *          the source with which this object has been registered as a
44   *          listener
45   */
46  public void connectionNotification(String eventName, Object source);
47
48  /**
49   * Notify this object that it has been deregistered as a listener with a
50   * source with respect to the supplied event name
51   *
52   * This method should be implemented <emph>synchronized</emph>.
53   *
54   * @param eventName
55   *          the event
56   * @param source
57   *          the source with which this object has been registered as a
58   *          listener
59   */
60  public void disconnectionNotification(String eventName, Object source);
61
62}
Note: See TracBrowser for help on using the repository browser.