Changeset 26 for src/main/java/weka/clusterers/MetisMQIClusterer.java
- Timestamp:
- Oct 9, 2010, 12:24:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/weka/clusterers/MetisMQIClusterer.java
r24 r26 35 35 36 36 37 private Configuration conf = null;38 37 /** 39 38 * … … 122 121 setVerboseLevel(Integer.parseInt(optionString)); 123 122 } 123 optionString = Utils.getOption('o', options); 124 if (optionString.length() != 0) { 125 setOutputFile(optionString); 126 } 127 } 128 129 private void setOutputFile(String outputFile) { 130 Configuration.instance().setOutputFile(outputFile); 131 } 132 133 private String getOutputFile() { 134 return Configuration.instance().getOutputFile(); 124 135 } 125 136 … … 150 161 result.add("-V"); 151 162 result.add("" + getVerboseLevel()); 163 result.add("-o"); 164 result.add("" + getOutputFile()); 152 165 return (String[]) result.toArray(new String[result.size()]); 153 166 } … … 186 199 result.addElement(new Option("\tverbosity of graphical output.\n" 187 200 + "\t(default 1).", "V", 1, "-V <num>")); 201 result.addElement(new Option("\tpath of the output file.\n" 202 , "o", 1, "-o <path>")); 188 203 return result.elements(); 189 204 }
Note: See TracChangeset
for help on using the changeset viewer.