亚洲欧美第一页_禁久久精品乱码_粉嫩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久久精品| 欧美日韩精品是欧美日韩精品| 国产亚洲综合色| 97se狠狠狠综合亚洲狠狠| 亚洲人成网站精品片在线观看| 99精品桃花视频在线观看| 亚洲一区二区高清| 国产一区二区h| 色噜噜久久综合| 亚洲韩国精品一区| 日韩三级.com| 色噜噜狠狠色综合欧洲selulu| 亚洲一区二区综合| 国产三区在线成人av| 色综合久久久久久久久| 美女视频免费一区| 亚洲精品福利视频网站| 久久久久久夜精品精品免费| 99精品视频在线观看| 蜜桃精品视频在线| 中文字幕一区在线观看| 26uuu久久天堂性欧美| 91性感美女视频| 韩国中文字幕2020精品| 亚洲国产aⅴ天堂久久| 亚洲视频香蕉人妖| 国产女人aaa级久久久级| 日韩免费一区二区三区在线播放| 91久久精品午夜一区二区| 成人av网站在线观看| 国产成人激情av| 国产成人亚洲精品青草天美| 日韩va欧美va亚洲va久久| 亚洲第一激情av| 午夜视黄欧洲亚洲| 午夜精品久久久久久久久| 日韩精品一区第一页| 男女视频一区二区| 国产一区二区三区综合| 福利一区二区在线| 欧美专区亚洲专区| 欧美一区二区在线观看| xvideos.蜜桃一区二区| 久久久国产一区二区三区四区小说| 欧美成人伊人久久综合网| 欧美不卡在线视频| 综合婷婷亚洲小说| 一区二区三区视频在线看| 奇米一区二区三区| 99在线精品免费| 日韩一区二区精品葵司在线| 久久综合国产精品| 亚洲精品免费看| 激情久久久久久久久久久久久久久久| 国内不卡的二区三区中文字幕| 波多野结衣一区二区三区| 欧美高清性hdvideosex| 国产日韩欧美不卡| 黄网站免费久久| 欧美日韩黄色一区二区| 亚洲同性gay激情无套| 精品在线播放免费| 91小视频免费看| 精品写真视频在线观看| 岛国av在线一区| 精品少妇一区二区三区日产乱码| 欧美国产成人精品| 国产精品中文欧美| 91精品国产综合久久福利| 国产精品国产三级国产aⅴ无密码| 秋霞午夜鲁丝一区二区老狼| 91婷婷韩国欧美一区二区| 国产精品天美传媒| 风间由美一区二区av101| 久久精品人人做人人综合| 奇米影视一区二区三区小说| 91精品国产日韩91久久久久久| 亚洲黄色小说网站| 欧美女孩性生活视频| 午夜精品一区二区三区电影天堂| 91成人在线观看喷潮| 亚洲精品久久久蜜桃| 欧美精品乱人伦久久久久久| 午夜精品国产更新| 精品国产乱码久久久久久免费| 精品亚洲免费视频| 久久久久国色av免费看影院| 成人app网站| 日日夜夜免费精品视频| 久久在线免费观看| 色综合 综合色| 精品亚洲成a人| 一区二区三区在线影院| 久久综合色天天久久综合图片| 国产91丝袜在线播放九色| 亚洲最大成人综合| 国产亚洲欧美在线| 欧美日韩午夜在线视频| 成人免费视频免费观看| 亚洲一二三四区| 中文字幕乱码亚洲精品一区| 欧美日韩久久不卡| 成人av在线播放网址| 免费高清不卡av| 伊人夜夜躁av伊人久久| 中文av一区二区| 欧美变态tickle挠乳网站| 欧美日韩在线一区二区| 9l国产精品久久久久麻豆| 国产成人欧美日韩在线电影| 国产成人av在线影院| 日韩精品成人一区二区三区| 又紧又大又爽精品一区二区| 国产精品久久久久7777按摩| 欧美电影免费观看高清完整版在| 91精品中文字幕一区二区三区| 972aa.com艺术欧美| 色综合天天综合在线视频| 丁香婷婷综合激情五月色| 国产激情一区二区三区四区| 久久99久久99| 成人av网站在线观看| 91片在线免费观看| 欧美日韩一区在线| 精品国产制服丝袜高跟| 欧美日韩亚洲综合一区| 精品一区二区国语对白| 久久电影国产免费久久电影| 国产精一品亚洲二区在线视频| 精品中文字幕一区二区| 国产成人精品亚洲777人妖| 99视频精品免费视频| 欧洲精品视频在线观看| 精品国产伦一区二区三区观看方式| 久久综合给合久久狠狠狠97色69| www激情久久| 天天射综合影视| 91尤物视频在线观看| 91精品综合久久久久久| 亚洲国产精品精华液2区45| 五月婷婷欧美视频| 91亚洲精品乱码久久久久久蜜桃 | 色综合激情久久| 欧美中文字幕一二三区视频| 日韩精品中文字幕在线一区| 亚洲国产成人一区二区三区| 日本最新不卡在线| 91高清视频免费看| 亚洲视频免费观看| 国产成人免费高清| 久久久久久一级片| 国产资源精品在线观看| 欧美电影一区二区三区| 亚洲一级在线观看| 色先锋资源久久综合| 日韩毛片精品高清免费| 国产成人av一区二区| 国产日韩精品视频一区| 精品午夜久久福利影院| 精品久久人人做人人爰| 精品一区二区免费在线观看| 欧美精品v国产精品v日韩精品| 亚洲午夜一区二区| 欧美另类videos死尸| 蜜桃免费网站一区二区三区| 555夜色666亚洲国产免| 精品在线免费观看| 亚洲国产经典视频| 欧美中文字幕一区| 久久精品国产色蜜蜜麻豆| 欧美精品一区二区三| 成人h动漫精品| 亚洲黄色性网站| 精品日韩一区二区三区免费视频| 国产一区激情在线| 亚洲特黄一级片| 日韩欧美成人一区二区| 国产成人精品免费网站| 一区二区三区欧美日韩| 日韩美女在线视频| 91浏览器打开| 国产乱子伦视频一区二区三区| 亚洲一区二区三区精品在线| 久久久噜噜噜久久中文字幕色伊伊 | 国产成人高清在线| 亚洲国产成人porn| 亚洲欧美一区二区视频| 欧美一区二区在线观看| 色综合咪咪久久| 国产麻豆91精品| 美国十次综合导航| 亚洲一区二区三区四区的| 日韩毛片在线免费观看| 国产欧美日韩在线看| 欧美日韩激情一区二区| 五月激情六月综合| 国产欧美日韩亚州综合| 精品国产一区二区三区av性色| 在线国产亚洲欧美| 色综合中文综合网|