[29] | 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 | * DataSource.java |
---|
| 19 | * Copyright (C) 2002 University of Waikato, Hamilton, New Zealand |
---|
| 20 | * |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | package weka.gui.beans; |
---|
| 24 | |
---|
| 25 | import weka.core.Instance; |
---|
| 26 | import weka.core.Instances; |
---|
| 27 | |
---|
| 28 | /** |
---|
| 29 | * Interface to something that is capable of being a source for data - |
---|
| 30 | * either batch or incremental data |
---|
| 31 | * |
---|
| 32 | * @author <a href="mailto:mhall@cs.waikato.ac.nz">Mark Hall</a> |
---|
| 33 | * @version $Revision: 1.2 $ |
---|
| 34 | * @since 1.0 |
---|
| 35 | */ |
---|
| 36 | public interface DataSource { |
---|
| 37 | |
---|
| 38 | /** |
---|
| 39 | * Add a data source listener |
---|
| 40 | * |
---|
| 41 | * @param dsl a <code>DataSourceListener</code> value |
---|
| 42 | */ |
---|
| 43 | void addDataSourceListener(DataSourceListener dsl); |
---|
| 44 | |
---|
| 45 | /** |
---|
| 46 | * Remove a data source listener |
---|
| 47 | * |
---|
| 48 | * @param dsl a <code>DataSourceListener</code> value |
---|
| 49 | */ |
---|
| 50 | void removeDataSourceListener(DataSourceListener dsl); |
---|
| 51 | |
---|
| 52 | /** |
---|
| 53 | * Add an instance listener |
---|
| 54 | * |
---|
| 55 | * @param dsl an <code>InstanceListener</code> value |
---|
| 56 | */ |
---|
| 57 | void addInstanceListener(InstanceListener dsl); |
---|
| 58 | |
---|
| 59 | /** |
---|
| 60 | * Remove an instance listener |
---|
| 61 | * |
---|
| 62 | * @param dsl an <code>InstanceListener</code> value |
---|
| 63 | */ |
---|
| 64 | void removeInstanceListener(InstanceListener dsl); |
---|
| 65 | } |
---|