- Timestamp:
- 05/14/14 17:49:13 (11 years ago)
- Location:
- branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees
- Files:
-
- 2 added
- 5 edited
- 8 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/Alignment.java
r1548 r1553 1 package de.ugoe.cs.autoquest. plugin.alignment;1 package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 2 2 3 3 import java.util.List; -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/AlignmentHelpers.java
r1548 r1553 1 package misc;1 package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 2 2 3 3 import java.util.ArrayList; -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/FengDoolittle.java
r1548 r1553 1 package de.ugoe.cs.autoquest. plugin.alignment;1 package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 2 2 3 3 public class FengDoolittle { -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/Match.java
r1548 r1553 1 package de.ugoe.cs.autoquest. plugin.alignment;1 package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 2 2 3 3 public class Match { -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/NumberSequence.java
r1544 r1553 1 package de.ugoe.cs.autoquest. plugin.alignment.seqgen;1 package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 2 2 3 3 import java.io.Serializable; -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/ProgressiveMultiAlignment.java
r1548 r1553 1 package de.ugoe.cs.autoquest. plugin.alignment;1 package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 2 2 3 3 public class ProgressiveMultiAlignment { -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/SmithWaterman.java
r1548 r1553 1 package de.ugoe.cs.autoquest. plugin.alignment;1 package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 2 2 3 3 import java.util.ArrayList; 4 4 import java.util.List; 5 5 6 import de.ugoe.cs.autoquest. plugin.alignment.substitution.SubstitutionMatrix;6 import de.ugoe.cs.autoquest.tasktrees.alignment.substitution.SubstitutionMatrix; 7 7 8 8 public class SmithWaterman implements Alignment { -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/DifferenceSubstitutionMatrix.java
r1324 r1553 2 2 * 3 3 */ 4 package de.ugoe.cs.autoquest. plugin.alignment.substitution;4 package de.ugoe.cs.autoquest.tasktrees.alignment.substitution; 5 5 6 6 import java.util.Collection; … … 8 8 9 9 import de.ugoe.cs.autoquest.eventcore.Event; 10 import de.ugoe.cs.autoquest.tasktrees.treeifc.IUserSession; 10 11 11 12 /** … … 57 58 } 58 59 60 59 61 @Override 60 public void generate( Collection<List<Event>> eventList) {62 public void generate(List<IUserSession> sessions) { 61 63 // TODO Auto-generated method stub 62 64 -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/NearbySubstitutionMatrix.java
r1324 r1553 2 2 * 3 3 */ 4 package de.ugoe.cs.autoquest. plugin.alignment.substitution;4 package de.ugoe.cs.autoquest.tasktrees.alignment.substitution; 5 5 6 6 import java.util.Collection; … … 8 8 9 9 import de.ugoe.cs.autoquest.eventcore.Event; 10 import de.ugoe.cs.autoquest.tasktrees.treeifc.IUserSession; 10 11 11 12 /** … … 50 51 51 52 @Override 52 public void generate( Collection<List<Event>> eventList) {53 public void generate(List<IUserSession> sessions) { 53 54 // TODO Auto-generated method stub 54 55 55 56 } 56 57 58 59 57 60 } -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/ObjectDistanceSubstitionMatrix.java
r1449 r1553 1 package de.ugoe.cs.autoquest. plugin.alignment.substitution;1 package de.ugoe.cs.autoquest.tasktrees.alignment.substitution; 2 2 3 3 import java.util.ArrayList; … … 10 10 import java.util.List; 11 11 12 import misc.AlignmentHelpers;13 12 import de.ugoe.cs.autoquest.eventcore.Event; 13 import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.AlignmentHelpers; 14 import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance; 15 import de.ugoe.cs.autoquest.tasktrees.treeifc.IUserSession; 14 16 import de.ugoe.cs.util.console.GlobalDataContainer; 15 17 … … 51 53 52 54 @Override 53 public void generate( Collection<List<Event>> eventList) {55 public void generate(List<IUserSession> sessions) { 54 56 55 for(Iterator<List<Event>> seqs = eventList.iterator(); seqs.hasNext();) { 56 matrix.add(new int[eventList.size()][eventList.size()]); 57 List<Event> tmpList = seqs.next(); 57 for(Iterator it = sessions.iterator(); it.hasNext();) { 58 IUserSession session = (IUserSession) it.next(); 59 matrix.add(new int[sessions.size()][sessions.size()]); 60 58 61 59 for (int i=0; i < tmpList.size(); i++) { 60 for (int j=0; j < tmpList.size(); j++) { 61 IGUIElement first = (IGUIElement) tmpList.get(i).getTarget(); 62 IGUIElement second =(IGUIElement) tmpList.get(j).getTarget(); 62 for (int i=0; i < session.size(); i++) { 63 for (int j=0; j < session.size(); j++) { 64 //TODO Check if ITaskInstance is of type IEventTaskInstance 65 IEventTaskInstance eti1 = (IEventTaskInstance) session.get(i); 66 IEventTaskInstance eti2 = (IEventTaskInstance) session.get(j); 67 IGUIElement first = (IGUIElement) eti1.getEvent().getTarget(); 68 IGUIElement second =(IGUIElement) eti2.getEvent().getTarget(); 63 69 matrix.get(currentSequence)[i][j] = AlignmentHelpers.distanceBetween(first, second); 64 70 } -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/SubstitutionMatrix.java
r1324 r1553 1 package de.ugoe.cs.autoquest. plugin.alignment.substitution;1 package de.ugoe.cs.autoquest.tasktrees.alignment.substitution; 2 2 3 3 import java.util.Collection; … … 5 5 6 6 import de.ugoe.cs.autoquest.eventcore.Event; 7 import de.ugoe.cs.autoquest.tasktrees.treeifc.IUserSession; 8 7 9 8 10 public interface SubstitutionMatrix { … … 14 16 public double getGapPenalty(); 15 17 16 public void generate(Collection<List<Event>> eventList); 18 public void generate(List<IUserSession> sessions); 19 17 20 18 21 } -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java
r1552 r1553 25 25 import java.util.logging.Level; 26 26 27 import de.ugoe.cs.autoquest. plugin.alignment.seqgen.NumberSequence;27 import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.NumberSequence; 28 28 import de.ugoe.cs.autoquest.tasktrees.taskequality.TaskEquality; 29 29 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; … … 96 96 private TaskHandlingStrategy identityTaskHandlingStrategy;; 97 97 98 99 private ArrayList<NumberSequence> numberseqs; 100 98 101 /** 99 102 * <p> … … 107 110 * @param taskBuilder the task builder to be used for creating substructures 108 111 */ 112 113 109 114 SequenceForTaskDetectionRuleAlignment(TaskEquality minimalTaskEquality, 110 115 ITaskFactory taskFactory, … … 116 121 this.preparationTaskHandlingStrategy = new TaskHandlingStrategy(minimalTaskEquality); 117 122 this.identityTaskHandlingStrategy = new TaskHandlingStrategy(TaskEquality.IDENTICAL); 123 118 124 } 119 125 … … 132 138 public RuleApplicationResult apply(List<IUserSession> sessions) { 133 139 RuleApplicationData appData = new RuleApplicationData(sessions); 134 private ArrayList<NumberSequence> numberseqs;140 numberseqs = new ArrayList<NumberSequence>(); 135 141 136 142 // this is the real rule application. Loop while something is replaced. 137 143 harmonizeEventTaskInstancesModel(appData); 144 145 138 146 //Hier mein kram hin 139 147 /*do { … … 195 203 for (IUserSession session : sessions) { 196 204 Console.traceln(Level.FINE, "handling " + (++sessionNo) + ". " + session); 197 for (ITaskInstance taskInstance : session) { 205 NumberSequence templist = new NumberSequence(session.size()) ; 206 207 for (int i = 0; i < session.size(); i++) { 208 ITaskInstance taskInstance = session.get(i); 198 209 task = uniqueTasks.getValue(taskInstance); 199 210 200 211 if (task == null) { 201 212 uniqueTasks.addSymbol(taskInstance, taskInstance.getTask()); 213 templist.getSequence()[i]=taskInstance.getTask().getId(); 202 214 } 203 215 else { 204 216 taskBuilder.setTask(taskInstance, task); 217 templist.getSequence()[i]=task.getId(); 205 218 unifiedTasks++; 206 219 }
Note: See TracChangeset
for help on using the changeset viewer.