OptionHandler.java
Upload User: rhdiban
Upload Date: 2013-08-09
Package Size: 15085k
Code Size: 2k
Category:

Windows Develop

Development Platform:

Java

  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.  *    OptionHandler.java
  18.  *    Copyright (C) 1999 Eibe Frank,Len Trigg
  19.  *
  20.  */
  21. package weka.core;
  22. import java.util.*;
  23. /** 
  24.  * Interface to something that understands options.
  25.  *
  26.  * @author Eibe Frank (eibe@cs.waikato.ac.nz)
  27.  * @author Len Trigg (trigg@cs.waikato.ac.nz)
  28.  * @version $Revision: 1.6 $
  29.  */
  30. public interface OptionHandler {
  31.   /**
  32.    * Returns an enumeration of all the available options..
  33.    *
  34.    * @return an enumeration of all available options.
  35.    */
  36.   Enumeration listOptions();
  37.   /**
  38.    * Sets the OptionHandler's options using the given list. All options
  39.    * will be set (or reset) during this call (i.e. incremental setting
  40.    * of options is not possible).
  41.    *
  42.    * @param options the list of options as an array of strings
  43.    * @exception Exception if an option is not supported
  44.    */
  45.   void setOptions(String[] options) throws Exception;
  46.   /**
  47.    * Gets the current option settings for the OptionHandler.
  48.    *
  49.    * @return the list of current option settings as an array of strings
  50.    */
  51.   String[] getOptions();
  52. }