- Timestamp:
- 08/28/12 13:33:23 (12 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 46 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDlistCommandsTest.java
r663 r664 4 4 // Creation : 2012 by pharms 5 5 // Copyright : Patrick Harms, 2012 6 package de.ugoe.cs. quest.ui.commands;6 package de.ugoe.cs.util.console.defaultcommands; 7 7 8 8 import static org.junit.Assert.*; … … 16 16 import de.ugoe.cs.util.console.CommandExecuter; 17 17 import de.ugoe.cs.util.console.Console; 18 import de.ugoe.cs.util.console.defaultcommands.CMDlistCommands; 18 19 import de.ugoe.cs.util.console.listener.IOutputListener; 19 20 -
trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/mock/commands/CMDmockCommand.java
r319 r664 23 23 24 24 @Override 25 public voidhelp() {26 Console.println("mock command: help");25 public String help() { 26 return "mock command: help"; 27 27 } 28 28 -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/Command.java
r175 r664 27 27 /** 28 28 * <p> 29 * Sends information about how to use a command to the console.29 * Returns a string the contains information about how to use the command. 30 30 * </p> 31 * @return help string 31 32 */ 32 public voidhelp();33 public String help(); 33 34 } -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/CommandExecuter.java
r661 r664 10 10 import java.util.ArrayList; 11 11 import java.util.Arrays; 12 import java.util.Collections; 13 import java.util.Comparator; 12 14 import java.util.Enumeration; 13 15 import java.util.List; … … 138 140 } 139 141 catch (InvalidParameterException e) { 140 cmd.help();142 Console.println("Usage: " + cmd.help()); 141 143 } 142 144 } … … 181 183 * @return an array containing the names of the available commands. 182 184 */ 183 public String[] getAvailableCommands() {184 List< String> commands = new ArrayList<String>();185 public Command[] getAvailableCommands() { 186 List<Command> commands = new ArrayList<Command>(); 185 187 List<String> packages = new ArrayList<String>(); 186 188 packages.addAll(commandPackageList); … … 251 253 } 252 254 255 Collections.sort(classNames, new Comparator<String>() { 256 @Override 257 public int compare(String arg1, String arg2) { 258 String str1 = arg1.substring(arg1.lastIndexOf('.') + cmdPrefix.length() + 1); 259 String str2 = arg2.substring(arg2.lastIndexOf('.') + cmdPrefix.length() + 1); 260 return str1.compareTo(str2); 261 } 262 263 }); 253 264 for (String className : classNames) { 254 265 String commandStr = … … 261 272 // class may still be inner classes. Therefore load the command, to 262 273 // see if it is really available and a command. 263 if (loadCMD(className) != null) { 264 commands.add(commandStr); 274 Command cmd = loadCMD(className); 275 if (cmd != null) { 276 commands.add(cmd); 265 277 } 266 278 } 267 279 } 268 280 269 String[] commandArray = commands.toArray(new String[commands.size()]); 270 Arrays.sort(commandArray); 281 Command[] commandArray = commands.toArray(new Command[commands.size()]); 271 282 return commandArray; 272 283 } -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDexec.java
r639 r664 63 63 */ 64 64 @Override 65 public voidhelp() {66 Console.println("Usage: exec <filename>");65 public String help() { 66 return "exec <filename>"; 67 67 } 68 68 } -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDexit.java
r175 r664 4 4 5 5 import de.ugoe.cs.util.console.Command; 6 import de.ugoe.cs.util.console.Console;7 6 8 7 /** … … 22 21 */ 23 22 @Override 24 public voidhelp() {25 Console.println("Usage: exit");23 public String help() { 24 return "exit"; 26 25 } 27 26 -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDlistCommands.java
r663 r664 1 1 2 package de.ugoe.cs. quest.ui.commands;2 package de.ugoe.cs.util.console.defaultcommands; 3 3 4 4 import java.util.List; … … 25 25 @Override 26 26 public void run(List<Object> parameters) { 27 String[] commands = CommandExecuter.getInstance().getAvailableCommands();27 Command[] commands = CommandExecuter.getInstance().getAvailableCommands(); 28 28 29 for ( Stringcommand : commands) {30 Console.println(command );29 for (Command command : commands) { 30 Console.println(command.help()); 31 31 } 32 32 } … … 38 38 */ 39 39 @Override 40 public voidhelp() {41 Console.println("Usage: listCommands");40 public String help() { 41 return "listCommands"; 42 42 } 43 43 -
trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgTestCasesToSequences.java
r639 r664 78 78 */ 79 79 @Override 80 public voidhelp() {81 Console.println("Usage: efgTestCasesToSequences <folder> <sequencesName> {<efgFileName>}");80 public String help() { 81 return "efgTestCasesToSequences <folder> <sequencesName> {<efgFileName>}"; 82 82 } 83 83 -
trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgToDFA.java
r434 r664 8 8 import de.ugoe.cs.quest.usageprofiles.DeterministicFiniteAutomaton; 9 9 import de.ugoe.cs.util.console.Command; 10 import de.ugoe.cs.util.console.Console;11 10 12 11 /** … … 49 48 */ 50 49 @Override 51 public voidhelp() {52 Console.println("Usage: efgToDFA <filename> <modelname>");50 public String help() { 51 return "efgToDFA <filename> <modelname>"; 53 52 } 54 53 -
trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgToMM.java
r434 r664 8 8 import de.ugoe.cs.quest.usageprofiles.FirstOrderMarkovModel; 9 9 import de.ugoe.cs.util.console.Command; 10 import de.ugoe.cs.util.console.Console;11 10 12 11 /** … … 49 48 */ 50 49 @Override 51 public voidhelp() {52 Console.println("Usage: efgToMM <filename> <modelname>");50 public String help() { 51 return "efgToMM <filename> <modelname>"; 53 52 } 54 53 -
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDparseDirJFC.java
r655 r664 76 76 */ 77 77 @Override 78 public voidhelp() {79 Console.println("Usage: parseDirJFC <path> {<sequencesName>}");78 public String help() { 79 return "parseDirJFC <path> {<sequencesName>}"; 80 80 } 81 81 -
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDparseJFC.java
r573 r664 10 10 import de.ugoe.cs.quest.ui.GlobalDataContainer; 11 11 import de.ugoe.cs.util.console.Command; 12 import de.ugoe.cs.util.console.Console;13 12 14 13 /** … … 58 57 */ 59 58 @Override 60 public voidhelp() {61 Console.println("Usage: parseJFC <filename> {<sequencesName>}");59 public String help() { 60 return "parseJFC <filename> {<sequencesName>}"; 62 61 } 63 62 -
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDpreprocessDirJFC.java
r639 r664 114 114 */ 115 115 @Override 116 public voidhelp() {117 Console.println("Usage: preprocessDirJFC <sourcePath> <targetPath>");116 public String help() { 117 return "preprocessDirJFC <sourcePath> <targetPath>"; 118 118 } 119 119 -
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDpreprocessJFC.java
r641 r664 92 92 */ 93 93 @Override 94 public voidhelp() {95 Console.println("Usage: preprocessJFC <sourceFile> <targetFile>");94 public String help() { 95 return "preprocessJFC <sourceFile> <targetFile>"; 96 96 } 97 97 -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDconvertDirToXml.java
r434 r664 26 26 */ 27 27 @Override 28 public voidhelp() {29 Console.println("Usage: convertToXml <sourceFolder> <targetFile> {<base64>}");28 public String help() { 29 return "convertDirToXml <sourceFolder> <targetFile> {<base64>}"; 30 30 } 31 31 -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDconvertToXml.java
r434 r664 26 26 */ 27 27 @Override 28 public voidhelp() {29 Console.println("Usage: convertToXml <sourceFile> <targetFile> {<base64>}");28 public String help() { 29 return "convertToXml <sourceFile> <targetFile> {<base64>}"; 30 30 } 31 31 -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDparseXML.java
r655 r664 11 11 import de.ugoe.cs.quest.ui.GlobalDataContainer; 12 12 import de.ugoe.cs.util.console.Command; 13 import de.ugoe.cs.util.console.Console;14 13 15 14 /** … … 29 28 */ 30 29 @Override 31 public voidhelp() {32 Console.println("Usage: parseXML <filename> {<sequencesName>} {<countMessageOccurences>}");30 public String help() { 31 return "parseXML <filename> {<sequencesName>} {<countMessageOccurences>}"; 33 32 } 34 33 -
trunk/quest-plugin-php/src/main/java/de/ugoe/cs/quest/plugin/php/commands/CMDloadWebSequences.java
r554 r664 111 111 */ 112 112 @Override 113 public voidhelp() {114 Console.println("Usage: loadWebSequences <filename> <sequencesName> {<serverUrl>} {<timeout> <minSessionLength> <maxSessionLength>} {<generateFrequentUsers> <frequentUserThreshold>}");113 public String help() { 114 return "loadWebSequences <filename> <sequencesName> {<serverUrl>} {<timeout> <minSessionLength> <maxSessionLength>} {<generateFrequentUsers> <frequentUserThreshold>}"; 115 115 } 116 116 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDcalcCoverage.java
r547 r664 135 135 */ 136 136 @Override 137 public voidhelp() {138 Console.println("Usage: calcCoverage <modelname> <observedSequences> [sequenceNames] <minCovLength> <maxCovLength>");137 public String help() { 138 return "calcCoverage <modelname> <observedSequences> [sequenceNames] <minCovLength> <maxCovLength>"; 139 139 } 140 140 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDcalcEntropy.java
r434 r664 26 26 */ 27 27 @Override 28 public voidhelp() {29 Console.println("Usage: calcEntropy <modelname>");28 public String help() { 29 return "calcEntropy <modelname>"; 30 30 } 31 31 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDdeleteObject.java
r434 r664 7 7 import de.ugoe.cs.quest.ui.GlobalDataContainer; 8 8 import de.ugoe.cs.util.console.Command; 9 import de.ugoe.cs.util.console.Console;10 9 11 10 /** … … 25 24 */ 26 25 @Override 27 public voidhelp() {28 Console.println("Usage: deleteObject <objectname>");26 public String help() { 27 return "deleteObject <objectname>"; 29 28 } 30 29 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDflattenModel.java
r434 r664 10 10 import de.ugoe.cs.quest.usageprofiles.ModelFlattener; 11 11 import de.ugoe.cs.util.console.Command; 12 import de.ugoe.cs.util.console.Console;13 12 14 13 /** … … 67 66 */ 68 67 @Override 69 public voidhelp() {70 Console.println("Usage: flattenModel <modelname> <modelname_flattened>");68 public String help() { 69 return "flattenModel <modelname> <modelname_flattened>"; 71 70 } 72 71 } -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDgenerateFixedLengthSequences.java
r547 r664 83 83 */ 84 84 @Override 85 public voidhelp() {86 Console.println("Usage: generateFixedLengthSequences <modelname> <sequencesName> <minlenght> <maxlength> {<all>} {<numSequences>} {<validEnd>}");85 public String help() { 86 return "generateFixedLengthSequences <modelname> <sequencesName> <minlenght> <maxlength> {<all>} {<numSequences>} {<validEnd>}"; 87 87 } 88 88 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDgenerateGreedy.java
r639 r664 174 174 */ 175 175 @Override 176 public voidhelp() {177 Console.println("generateGreedy <modelname> <sequencesName> <minLength> <maxLength> <coverageDepth> <desiredCoverage> {<validEnd>}");176 public String help() { 177 return "generateGreedy <modelname> <sequencesName> <minLength> <maxLength> <coverageDepth> <desiredCoverage> {<validEnd>}"; 178 178 } 179 179 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDgenerateHybrid.java
r547 r664 92 92 */ 93 93 @Override 94 public voidhelp() {95 Console.println("Usage: generateHybrid <modelname> <sequencesName> <lenght> <maxlengthAll> <numSequences> {<validEnd>}");94 public String help() { 95 return "generateHybrid <modelname> <sequencesName> <lenght> <maxlengthAll> <numSequences> {<validEnd>}"; 96 96 } 97 97 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDgenerateRandomReplay.java
r641 r664 30 30 */ 31 31 @Override 32 public voidhelp() {33 Console.println("Usage: generateRandomReplay <modelName> <filename> {<numSessions>}");32 public String help() { 33 return "generateRandomReplay <modelName> <filename> {<numSessions>}"; 34 34 } 35 35 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDgenerateRandomSequences.java
r547 r664 89 89 */ 90 90 @Override 91 public voidhelp() {92 Console.println("Usage: generateRandomSequenecs <modelName> <sequencesName> <numSessions> <minLength> <maxLength> {<maxIter>} {<validEnd>}");91 public String help() { 92 return "generateRandomSequenecs <modelName> <sequencesName> <numSessions> <minLength> <maxLength> {<maxIter>} {<validEnd>}"; 93 93 } 94 94 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDgenerateReplayfile.java
r547 r664 11 11 import de.ugoe.cs.quest.ui.GlobalDataContainer; 12 12 import de.ugoe.cs.util.console.Command; 13 import de.ugoe.cs.util.console.Console;14 13 15 14 /** … … 29 28 */ 30 29 @Override 31 public voidhelp() {32 Console.println("Usage: generateReplayfile <filename> <sequences>");30 public String help() { 31 return "generateReplayfile <filename> <sequences>"; 33 32 } 34 33 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDlistSymbols.java
r434 r664 67 67 */ 68 68 @Override 69 public voidhelp() {70 Console.println("Usage: listStates <modelName> {<sort>}");69 public String help() { 70 return "listStates <modelName> {<sort>}"; 71 71 } 72 72 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDload.java
r434 r664 55 55 */ 56 56 @Override 57 public voidhelp() {58 Console.println("Usage: load <filename>");57 public String help() { 58 return "load <filename>"; 59 59 } 60 60 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDloadObject.java
r434 r664 63 63 */ 64 64 @Override 65 public voidhelp() {66 Console.println("Usage: loadObject <filename> <objectName>");65 public String help() { 66 return "loadObject <filename> <objectName>"; 67 67 } 68 68 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDmodelSize.java
r434 r664 57 57 */ 58 58 @Override 59 public voidhelp() {60 Console.println("Usage: modelSize <modelName>");59 public String help() { 60 return "modelSize <modelName>"; 61 61 } 62 62 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDprintDot.java
r434 r664 27 27 */ 28 28 @Override 29 public voidhelp() {30 Console.println("Usage: printDot <modelname>");29 public String help() { 30 return "printDot <modelname>"; 31 31 } 32 32 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDprintTrieDot.java
r434 r664 28 28 */ 29 29 @Override 30 public voidhelp() {31 Console.println("Usage: printTreeDot <modelname>");30 public String help() { 31 return "printTreeDot <modelname>"; 32 32 } 33 33 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDsave.java
r434 r664 53 53 */ 54 54 @Override 55 public voidhelp() {56 Console.println("Usage: save <filename>");55 public String help() { 56 return "save <filename>"; 57 57 } 58 58 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDsaveObject.java
r434 r664 64 64 */ 65 65 @Override 66 public voidhelp() {67 Console.println("Usage: saveObject <filename> <objectName>");66 public String help() { 67 return "saveObject <filename> <objectName>"; 68 68 } 69 69 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDsequenceStatistics.java
r547 r664 77 77 */ 78 78 @Override 79 public voidhelp() {80 Console.println("Usage: sequenceStatistics <sequencesName>");79 public String help() { 80 return "sequenceStatistics <sequencesName>"; 81 81 } 82 82 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDshowMarkovModel.java
r434 r664 16 16 import de.ugoe.cs.quest.usageprofiles.FirstOrderMarkovModel.MarkovEdge; 17 17 import de.ugoe.cs.util.console.Command; 18 import de.ugoe.cs.util.console.Console;18 import edu.uci.ics.jung.algorithms.layout.ISOMLayout; 19 19 import edu.uci.ics.jung.algorithms.layout.Layout; 20 import edu.uci.ics.jung.algorithms.layout.ISOMLayout;21 20 import edu.uci.ics.jung.graph.Graph; 22 21 import edu.uci.ics.jung.visualization.BasicVisualizationServer; … … 40 39 */ 41 40 @Override 42 public voidhelp() {43 Console.println("Usage: showMarkovModel <modelName> {<showNodeNames>}");41 public String help() { 42 return "showMarkovModel <modelName> {<showNodeNames>}"; 44 43 } 45 44 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDshowTimer.java
r639 r664 55 55 */ 56 56 @Override 57 public voidhelp() {58 Console.println("Usage: showTimer <timerName>");57 public String help() { 58 return "showTimer <timerName>"; 59 59 } 60 60 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDshowTrie.java
r434 r664 14 14 import de.ugoe.cs.quest.ui.GlobalDataContainer; 15 15 import de.ugoe.cs.quest.usageprofiles.Trie; 16 import de.ugoe.cs.quest.usageprofiles.TrieBasedModel;17 16 import de.ugoe.cs.quest.usageprofiles.Trie.Edge; 18 17 import de.ugoe.cs.quest.usageprofiles.Trie.TrieVertex; 18 import de.ugoe.cs.quest.usageprofiles.TrieBasedModel; 19 19 import de.ugoe.cs.util.console.Command; 20 import de.ugoe.cs.util.console.Console;21 20 import edu.uci.ics.jung.algorithms.layout.Layout; 22 21 import edu.uci.ics.jung.algorithms.layout.TreeLayout; … … 42 41 */ 43 42 @Override 44 public voidhelp() {45 Console.println("Usage: showTrie <modelName>");43 public String help() { 44 return "showTrie <modelName>"; 46 45 } 47 46 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDstartFileListener.java
r434 r664 7 7 import de.ugoe.cs.quest.ui.GlobalDataContainer; 8 8 import de.ugoe.cs.util.console.Command; 9 import de.ugoe.cs.util.console.Console;10 9 import de.ugoe.cs.util.console.FileOutputListener; 11 10 … … 47 46 */ 48 47 @Override 49 public voidhelp() {50 Console.println("Usage: startFileListener <filename>");48 public String help() { 49 return "startFileListener <filename>"; 51 50 } 52 51 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDstartTimer.java
r434 r664 7 7 import de.ugoe.cs.quest.ui.GlobalDataContainer; 8 8 import de.ugoe.cs.util.console.Command; 9 import de.ugoe.cs.util.console.Console;10 9 11 10 /** … … 44 43 */ 45 44 @Override 46 public voidhelp() {47 Console.println("Usage: startTimer <timerName>");45 public String help() { 46 return "startTimer <timerName>"; 48 47 } 49 48 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDstopFileListener.java
r434 r664 7 7 import de.ugoe.cs.quest.ui.GlobalDataContainer; 8 8 import de.ugoe.cs.util.console.Command; 9 import de.ugoe.cs.util.console.Console;10 9 import de.ugoe.cs.util.console.FileOutputListener; 11 10 … … 44 43 45 44 @Override 46 public voidhelp() {47 Console.println("Command: stopFileListener <filename>");45 public String help() { 46 return "stopFileListener <filename>"; 48 47 49 48 } -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDtrainDFA.java
r434 r664 6 6 import de.ugoe.cs.quest.usageprofiles.DeterministicFiniteAutomaton; 7 7 import de.ugoe.cs.quest.usageprofiles.TrieBasedModel; 8 import de.ugoe.cs.util.console.Console;9 8 10 9 /** … … 24 23 */ 25 24 @Override 26 public voidhelp() {27 Console.println("Usage: trainDFA <modelName> <sequencesName>");25 public String help() { 26 return "trainDFA <modelName> <sequencesName>"; 28 27 } 29 28 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDtrainMarkovModel.java
r434 r664 7 7 import de.ugoe.cs.quest.usageprofiles.HighOrderMarkovModel; 8 8 import de.ugoe.cs.quest.usageprofiles.TrieBasedModel; 9 import de.ugoe.cs.util.console.Console;10 9 11 10 /** … … 32 31 */ 33 32 @Override 34 public voidhelp() {35 Console.println("Usage: trainMarkovModel <modelName> <sequencesName> {<order>}");33 public String help() { 34 return "trainMarkovModel <modelName> <sequencesName> {<order>}"; 36 35 } 37 36 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDtrainPPM.java
r434 r664 6 6 import de.ugoe.cs.quest.usageprofiles.PredictionByPartialMatch; 7 7 import de.ugoe.cs.quest.usageprofiles.TrieBasedModel; 8 import de.ugoe.cs.util.console.Console;9 8 10 9 /** … … 45 44 */ 46 45 @Override 47 public voidhelp() {48 Console.println("Usage: trainPPM <modelName> <sequencesName> <probEscape> <maxOrder> {<minOrder>}");46 public String help() { 47 return "trainPPM <modelName> <sequencesName> <probEscape> <maxOrder> {<minOrder>}"; 49 48 } 50 49 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDupdateModel.java
r547 r664 11 11 import de.ugoe.cs.quest.usageprofiles.TrieBasedModel; 12 12 import de.ugoe.cs.util.console.Command; 13 import de.ugoe.cs.util.console.Console;14 13 15 14 /** … … 74 73 */ 75 74 @Override 76 public voidhelp() {77 Console.println("Usage: updateModel <modelname> <sequencesName>");75 public String help() { 76 return "updateModel <modelname> <sequencesName>"; 78 77 } 79 78 -
trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/commands/CMDshowSequences.java
r655 r664 12 12 import de.ugoe.cs.quest.ui.swt.SequencesDialog; 13 13 import de.ugoe.cs.util.console.Command; 14 import de.ugoe.cs.util.console.Console;15 14 16 15 /** … … 29 28 */ 30 29 @Override 31 public voidhelp() {32 Console.println("Usage: showSequences <sequencesName>");30 public String help() { 31 return "showSequences <sequencesName>"; 33 32 } 34 33
Note: See TracChangeset
for help on using the changeset viewer.