- Timestamp:
- 09/01/14 22:05:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/autoquest-ui-core-alignment/src/main/java/de/ugoe/cs/autoquest/commands/usability/CMDgenerateTaskTree.java
r1707 r1710 45 45 @Override 46 46 public String help() { 47 return "generateTaskTree <sequences> {<tasktree>} {<boolean: harmonize sequences or not (true or false)>} { <integer: number of threads>}";47 return "generateTaskTree <sequences> {<tasktree>} {<boolean: harmonize sequences or not (true or false)>} {boolean: load substitutionmatrix} {<integer: number of threads>}"; 48 48 } 49 49 … … 71 71 String harmonize = (String) parameters.get(2); 72 72 de.ugoe.cs.autoquest.tasktrees.temporalrelation.SequenceForTaskDetectionRuleAlignment.harmonizeSequences = true; 73 System.out.println(harmonize); 74 if (harmonize.equals("false")) { 75 System.out.println("Not harmonizing"); 73 if (harmonize.equals("false")) { 76 74 de.ugoe.cs.autoquest.tasktrees.temporalrelation.SequenceForTaskDetectionRuleAlignment.harmonizeSequences = false; 77 75 } 78 76 } 79 77 if (parameters.size() > 3) { 80 String threadCount = (String) parameters.get(3); 78 String loadSubMat = (String) parameters.get(3); 79 de.ugoe.cs.autoquest.tasktrees.temporalrelation.SequenceForTaskDetectionRuleAlignment.loadSubstutionMatrix = false; 80 if (loadSubMat.equals("true")) { 81 de.ugoe.cs.autoquest.tasktrees.temporalrelation.SequenceForTaskDetectionRuleAlignment.loadSubstutionMatrix = true; 82 } 83 } 84 if (parameters.size() > 4) { 85 String threadCount = (String) parameters.get(4); 81 86 de.ugoe.cs.autoquest.tasktrees.temporalrelation.SequenceForTaskDetectionRuleAlignment.nThreads = 1; 82 87 try { … … 85 90 } catch (Exception e) { 86 91 throw new IllegalArgumentException( 87 "The f ourth parameter must be an integer. Did you forget to name the tasktree?");92 "The fifth parameter must be an integer. Did you forget to name the tasktree?"); 88 93 } 89 94 } 95 96 de.ugoe.cs.autoquest.tasktrees.temporalrelation.SequenceForTaskDetectionRuleAlignment.loadSubstutionMatrix=false; 90 97 91 98 Collection<List<Event>> sequences = null;
Note: See TracChangeset
for help on using the changeset viewer.