亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? getenv.java

?? 本程序是用java語言編寫的數據挖掘分類算法中的決策樹分類方法c4.5程序代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package shared;
import java.io.*;
import java.util.*;

/** This class replaces the functions of GetOption class. It provides access to
 * the MLJ-Options.file for loading parameters and options for MLJ.
 * @author James Louis Added several functions and comments.
 * @author James Louis 1/14/2002 Changes to locate MLJ-Options file automatically
 * from java classpath information.
 */
public class GetEnv {
    /** The name of the MLJ-Options.file.
     */
    private String OptionsFile = "MLJ-Options.file";
    
    /** The name of the MLJ-Options.file and path for use if not present in the
     * working directory. **/
    private String SecondaryOptionsFile = "shared/MLJ-Options.file";
    
    /** The File instance containing information of the MLJ-Options.file. **/
    static File optfile;
    
    /** Constructor. Looks for the MLJ-Options.file in the working directory first and
     * in the MLJ shared source directory second.
     */
    public GetEnv(){
        if(optfile != null) return;
        optfile = new File(OptionsFile);
        
        /*This peice of code is now obsolete. -JL 01/14/2002
        if (!optfile.isFile() ) {
            optfile = new File(SecondaryOptionsFile);
        }*/
        
        String class_path = System.getProperty("java.class.path");
        String file_separator = System.getProperty("file.separator");
        
        // Checks for the MLJ-Options file in the working directory. -JL
        File working_dir_file = new File("."+file_separator+OptionsFile);
        if(working_dir_file.exists()){
            optfile = working_dir_file;
            return;
        }
        
        // Checks for the MLJ-Options file in the MLJ shared source directory.
        StringTokenizer tokenizer = new StringTokenizer(class_path,System.getProperty("path.separator"));
        while(tokenizer.hasMoreTokens()){
            String token = tokenizer.nextToken();
            if (token.endsWith("shared"))
                optfile = new File(token+file_separator+OptionsFile);
            if(optfile.exists()) break;
        }
    }
    
    /** Constructor. Looks for the options file with the given name in the working
     * directory first and in the MLJ shared source directory second.
     * @param fileName The name of the file containing option values.
     */
    public GetEnv(String fileName) {
        if(optfile != null) return;
        optfile = new File(fileName);
        String class_path = System.getProperty("java.class.path");
        String file_separator = System.getProperty("file.separator");
        
        // Checks for the MLJ-Options file in the working directory. -JL
        File working_dir_file = new File("."+file_separator+OptionsFile);
        if(working_dir_file.exists()){
            optfile = working_dir_file;
            return;
        }
        
        // Checks for the MLJ-Options file in the MLJ shared source directory.
        StringTokenizer tokenizer = new StringTokenizer(class_path,System.getProperty("path.separator"));
        while(tokenizer.hasMoreTokens()){
            String token = tokenizer.nextToken();
            if (token.endsWith("shared"))
                optfile = new File(token+file_separator+OptionsFile);
            if(optfile.exists()) break;
        }
    }
    
    /** A dummy function that returns null when called.
     * @return Always null.
     * @param in Name of the environment variable requested.
     */
    public String getenv(String in){return null;}
    
    /** Returns the value of an integer option of the specified name.
     * @param option The name of the option for which a value is requested.
     * @return The value of the option if found, 0 otherwise.
     */
    public int get_option_int(String option) {
        BufferedReader file;
        try{
            file = new BufferedReader(new FileReader(optfile));
            
            try{
                while(file.ready()) {
                    String line = file.readLine();
                    if (line == null) break;	//Change made for the JDK1.3 -JL
                    StringTokenizer tokens = new StringTokenizer(line," ");
                    while(tokens.hasMoreTokens())
                        if(tokens.nextToken().equals(option))
                            return new Integer(tokens.nextToken()).intValue();
                }
                file.close();
            }catch(IOException e)
            {  Error.err("Could not open Options File!"); }
            
        }catch(FileNotFoundException e)
        {   Error.err("Options File " +
            OptionsFile+" not found!");
        }
        return 0;  //error if reached here!
    }
    
    /** A function which returns the string value following the option name within the
     * options file.
     * @param option The name of the option for which a value is requested.
     * @return The value of the requested option.
     */
    public String get_option_string(String option) {
        BufferedReader file;
        try{
            file = new BufferedReader(new FileReader(optfile));
            
            try{
                while(file.ready()) {
                    String line = file.readLine();
                    if (line == null) break;        //Change made for the JDK1.3
                    StringTokenizer tokens = new StringTokenizer(line," ");
                    while(tokens.hasMoreTokens())
                        if(tokens.nextToken().equals(option))
                            return tokens.nextToken();
                }
                file.close();
            }catch(IOException e)
            {  Error.err("Could not open Options File!"); }
            
        }catch(FileNotFoundException e)
        {   Error.err("Options File " +
            OptionsFile+" not found!");
        }
        return null;  //error if reached here!
    }
    
    /** A function which returns the string value following the option name within the
     * options file.
     * @param optionName The name of the option for which a value is requested.
     * @param defaultValue The default value for the option if it is not found in the option file.
     * @param optionHelp Help display string for using this option.
     * @param nuisance TRUE if prompting is required when option is not set, FALSE otherwise.
     * @return The value for the requested option.
     */
    public String get_option_string(String optionName, String defaultValue, String optionHelp, boolean nuisance) {
        return get_option_string(optionName,defaultValue,optionHelp,nuisance,false);
    }
    
    
    /** Returns the max range of a real value option of the specified name.
     * @param option The name of the option for which a value is requested.
     * @return The value of the option if found, 0 otherwise.
     */
    public double get_option_real_range(String option) {
        BufferedReader file;
        try{
            file = new BufferedReader(new FileReader(optfile));
            
            try{
                while(file.ready()) {
                    String line = file.readLine();
                    if (line == null) break;	//Change made for the JDK1.3 -JL
                    StringTokenizer tokens = new StringTokenizer(line," ");
                    while(tokens.hasMoreTokens())
                        if(tokens.nextToken().equals(option))
                            return new Double(tokens.nextToken()).doubleValue();
                }
                file.close();
            }catch(IOException e)
            {  Error.err("FATAL ERROR - Could not open Options File!"); }
            
        }catch(FileNotFoundException e)
        {   Error.err("FATAL ERROR - Options File " +
            OptionsFile+" not found!");
        }
        return 0;  //error if reached here!
    }
    
    /** Returns the value of an boolean option of the specified name.
     * @param option The name of the option for which a value is requested.
     * @return The value of the option if found, false otherwise.
     */
    public boolean get_option_bool(String option) {
        BufferedReader file;
        try{
            file = new BufferedReader(new FileReader(optfile));
            
            try{
                while(file.ready()) {
                    String line = file.readLine();
                    if (line == null) break;	//Change made for the JDK1.3 -JL
                    StringTokenizer tokens = new StringTokenizer(line," ");
                    while(tokens.hasMoreTokens())
                        if(tokens.nextToken().equals(option))
                            if(new String(tokens.nextToken()).trim().equals("true"))
                                return true;
                            else return false;
                }
                file.close();
            }catch(IOException e)
            {  Error.err("FATAL ERROR - Could not open Options File!"); }
            
        }catch(FileNotFoundException e)
        {   Error.err("FATAL ERROR - Options File " +
            OptionsFile+" not found!");
        }
        return false;  //error if reached here!
    }
    
    
    /** Returns the value of an boolean option of the specified name.
     * @param option The name of the option for which a value is requested.
     * @param default_value The value of the option if not found in the options file.
     * @param nuisance The String description for a help display.
     * @param nuisance_flag Flag for nuisance value use.
     * @return The value of the option if found, the default_value otherwise.
     */
    public boolean get_option_bool(String option, boolean default_value,
    String nuisance, boolean nuisance_flag) {
        BufferedReader file;
        try{
            file = new BufferedReader(new FileReader(optfile));
            
            try{
                while(file.ready()) {
                    String line = file.readLine();
                    if (line == null) break;	//Change made for the JDK1.3 -JL
                    StringTokenizer tokens = new StringTokenizer(line," ");
                    while(tokens.hasMoreTokens())
                        if(tokens.nextToken().equals(option))
                            if(new String(tokens.nextToken()).trim().equals("true"))
                                return true;
                            else return false;
                }
                file.close();
            }catch(IOException e)
            {  Error.err("FATAL ERROR - Could not open Options File!"); }
            
        }catch(FileNotFoundException e)
        {   Error.err("FATAL ERROR - Options File " +
            OptionsFile+" not found!");
        }
        return default_value;
    }
    
/*    public double get_option_real(String optionName, double defaultValue,
    String optionHelp, boolean nuisance, boolean noPrompt){
        BufferedReader file;
        try{
            file = new BufferedReader(new FileReader(optfile));
 
            try{
                while(file.ready()) {
                    String line = file.readLine();
                    if (line == null) break;	//Change made for the JDK1.3 -JL
                    StringTokenizer tokens = new StringTokenizer(line," ");
                    while(tokens.hasMoreTokens())
                        if(tokens.nextToken().equals(option))
                            return new Integer(tokens.nextToken()).intValue();
                }
                file.close();
            }catch(IOException e)
            {  Error.err("Could not open Options File!"); }
 
        }catch(FileNotFoundException e)
        {   Error.err("Options File " +
            OptionsFile+" not found!");
        }
        return 0;  //error if reached here!
    }
 */
    /** Reads the value of an option as an Enum object.
     * @param optionName The name of the option for which a value is requested.
     * @param optionMEnum The MEnum object that will hold the option values.
     * @param optionHelp Help display string for using this option.
     * @param nuisance TRUE if prompting is required when option is not set, FALSE otherwise.
     * @param returnVal The values for the requested option.
     */
    public void get_option_enum_no_default(String optionName,
    MEnum optionMEnum,
    String optionHelp,
    boolean nuisance,
    int returnVal){
        returnVal =  _get_option_enum(optionName, optionMEnum, optionHelp, nuisance);
    }
    
    /** Reads the value of an option as an Enum object.
     * @param optionName The name of the option for which a value is requested.
     * @param optionMEnum The MEnum object that will hold the option values.
     * @param optionHelp Help display string for using this option.
     * @param nuisance TRUE if prompting is required when option is not set, FALSE otherwise.
     * @return The value for the requested option.
     */
    public int _get_option_enum(String optionName,
    MEnum optionMEnum,
    String optionHelp,
    boolean nuisance) {
        // grab the value out of get_option
        // Try to lookup the string in the enum value.
        //        String val = MEnumOption(optionName, optionMEnum, "", optionHelp, nuisance, false).get(false);
        String val = MEnumOption(optionName, optionMEnum, "", optionHelp, nuisance, false);
        int enumValue = optionMEnum.value_from_name(val);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品久久免费看蜜臀剧情介绍 | 麻豆久久一区二区| 亚洲综合在线五月| 一区二区高清免费观看影视大全| 国产日本一区二区| 日本一区二区三区四区在线视频| 久久精品视频在线免费观看| 精品国产一区二区三区不卡| 日韩一卡二卡三卡国产欧美| 日韩欧美自拍偷拍| 久久精品一区蜜桃臀影院| 久久久久青草大香线综合精品| ww亚洲ww在线观看国产| 欧美国产精品专区| 日韩伦理av电影| 亚洲国产视频网站| 经典三级一区二区| 国产99久久久国产精品免费看| av电影在线观看一区| 色视频欧美一区二区三区| 欧美日韩免费电影| 精品欧美黑人一区二区三区| 久久久蜜桃精品| 亚洲青青青在线视频| 亚洲国产精品一区二区www | 亚洲不卡av一区二区三区| 午夜电影一区二区三区| 国产自产视频一区二区三区| 99久久国产综合色|国产精品| 色中色一区二区| 日韩亚洲欧美中文三级| 日本一区二区三区四区在线视频| 亚洲激情图片一区| 久草这里只有精品视频| 成年人国产精品| 91精品久久久久久久久99蜜臂| 久久香蕉国产线看观看99| 亚洲视频网在线直播| 蜜桃视频在线观看一区二区| 粉嫩嫩av羞羞动漫久久久| 欧美嫩在线观看| 中文字幕av不卡| 亚洲chinese男男1069| 国产很黄免费观看久久| 欧美三级一区二区| 国产精品大尺度| 久久精品国产77777蜜臀| 一本久久a久久免费精品不卡| 日韩精品资源二区在线| 亚洲免费av高清| 国产乱国产乱300精品| 777a∨成人精品桃花网| 亚洲人妖av一区二区| 国产一区在线精品| 69久久99精品久久久久婷婷| 中文字幕一区二区三区在线观看| 琪琪久久久久日韩精品| 欧美性猛片xxxx免费看久爱| 国产三级三级三级精品8ⅰ区| 蜜臀久久99精品久久久久久9| 色噜噜偷拍精品综合在线| 国产精品每日更新| 国产成人午夜精品影院观看视频 | 国产性天天综合网| 蜜臀99久久精品久久久久久软件 | www一区二区| 美国十次综合导航| 91精品久久久久久久99蜜桃| 亚洲一区二区三区在线播放| 色综合视频在线观看| 中文字幕一区二区在线播放| 不卡的av中国片| 中文字幕一区视频| 99re热这里只有精品免费视频| 国产精品美女视频| 成人激情视频网站| 国产精品久久久久久久久久久免费看 | 久久精品视频在线看| 国内精品国产成人国产三级粉色 | 日韩一区二区三区免费观看| 舔着乳尖日韩一区| 欧美理论片在线| 日韩高清电影一区| 欧美一级专区免费大片| 日本不卡一二三区黄网| 精品国产a毛片| 国产精品一级片在线观看| 久久精品网站免费观看| av在线播放一区二区三区| 亚洲视频免费在线观看| 欧美吻胸吃奶大尺度电影| 日本视频免费一区| 久久综合九色综合97婷婷女人 | 亚洲国产精品t66y| 99免费精品在线观看| 亚洲视频一二区| 欧美男同性恋视频网站| 另类小说一区二区三区| 国产日韩欧美高清在线| 色综合欧美在线视频区| 亚洲综合色视频| 日韩欧美专区在线| 国产98色在线|日韩| 樱花影视一区二区| 26uuu成人网一区二区三区| 97久久超碰国产精品| 日韩和的一区二区| 久久奇米777| 欧美性生交片4| 国产成a人亚洲| 亚洲成人免费影院| 国产三级精品视频| 欧美裸体bbwbbwbbw| 国产成人综合亚洲网站| 亚洲综合色在线| 久久久美女毛片| 在线综合+亚洲+欧美中文字幕| 国产一区三区三区| 亚洲一区二区三区爽爽爽爽爽| 欧美大白屁股肥臀xxxxxx| 99久久精品情趣| 国产一区二区在线免费观看| 一区二区三区产品免费精品久久75| 欧美电影免费观看高清完整版在| a亚洲天堂av| 国产乱子伦视频一区二区三区| 亚洲精品乱码久久久久久黑人| 久久久精品免费网站| 制服丝袜在线91| 色婷婷综合久久久久中文一区二区 | 亚洲综合一二三区| 亚洲国产高清不卡| 91精品国产一区二区三区| 99免费精品在线观看| 国产精品 欧美精品| 青青草原综合久久大伊人精品优势 | 国产曰批免费观看久久久| 亚洲成在人线在线播放| 国产精品久久久久久妇女6080| 久久久精品影视| 久久亚洲免费视频| 欧美电影免费观看高清完整版在线 | 国产成人在线看| 蜜臀a∨国产成人精品| 亚洲一区二区免费视频| 亚洲色图视频网站| 国产精品久久毛片a| 国产丝袜欧美中文另类| 精品国产sm最大网站免费看| 日韩美女主播在线视频一区二区三区| 欧美日韩国产首页| 欧美性高清videossexo| 欧美在线视频你懂得| 91看片淫黄大片一级在线观看| 国产成人免费在线观看不卡| 国产91精品久久久久久久网曝门 | 日韩精品亚洲一区| 亚洲mv在线观看| 日本怡春院一区二区| 丝袜美腿亚洲一区二区图片| 一区二区三区免费在线观看| 亚洲精品欧美综合四区| 亚洲精品免费在线播放| 亚洲欧美另类久久久精品| 亚洲一区二区3| 一区二区三区中文在线观看| 亚洲一区二区三区免费视频| 亚洲午夜激情网站| 日韩精品视频网| 韩国理伦片一区二区三区在线播放| 国产综合久久久久影院| 成人国产精品视频| 欧美性大战久久久久久久| 8x福利精品第一导航| 精品99一区二区三区| 久久婷婷国产综合精品青草| 国产日韩欧美电影| 亚洲综合久久av| 久久99国产精品尤物| 成人国产精品免费观看| 日本高清不卡一区| 日韩一区二区视频在线观看| 欧美精品一区二区三区很污很色的| 国产日韩欧美一区二区三区乱码| 亚洲人123区| 日本va欧美va瓶| www.日韩在线| 欧美一区二区三区免费视频| 久久精品人人做人人综合| 一区二区三区日韩在线观看| 另类小说视频一区二区| 99re这里都是精品| 欧美电视剧在线看免费| 综合久久久久久| 国模套图日韩精品一区二区 | 久久亚洲一级片| 亚洲精品免费播放| 国产盗摄一区二区三区| 欧美精品一二三| 中文字幕亚洲视频|