| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| StartSetHandler |
|
| 1.0;1 |
| 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 3 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, see <http://www.gnu.org/licenses/>. | |
| 14 | */ | |
| 15 | ||
| 16 | /* | |
| 17 | * StartSetHandler.java | |
| 18 | * Copyright (C) 1999-2012 University of Waikato, Hamilton, New Zealand | |
| 19 | * | |
| 20 | */ | |
| 21 | ||
| 22 | ||
| 23 | package weka.attributeSelection; | |
| 24 | ||
| 25 | /** | |
| 26 | * Interface for search methods capable of doing something sensible | |
| 27 | * given a starting set of attributes. | |
| 28 | * | |
| 29 | * @author Mark Hall (mhall@cs.waikato.ac.nz) | |
| 30 | * @version $Revision: 8034 $ | |
| 31 | */ | |
| 32 | public interface StartSetHandler { | |
| 33 | ||
| 34 | /** | |
| 35 | * Sets a starting set of attributes for the search. It is the | |
| 36 | * search method's responsibility to report this start set (if any) | |
| 37 | * in its toString() method. | |
| 38 | * @param startSet a string containing a list of attributes (and or ranges), | |
| 39 | * eg. 1,2,6,10-15. | |
| 40 | * @exception Exception if start set can't be set. | |
| 41 | */ | |
| 42 | void setStartSet (String startSet) throws Exception; | |
| 43 | ||
| 44 | /** | |
| 45 | * Returns a list of attributes (and or attribute ranges) as a String | |
| 46 | * @return a list of attributes (and or attribute ranges) | |
| 47 | */ | |
| 48 | String getStartSet (); | |
| 49 | } |