Changeset 1568 for branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/ObjectDistanceSubstitionMatrix.java
- Timestamp:
- 06/18/14 08:59:41 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/ObjectDistanceSubstitionMatrix.java
r1559 r1568 26 26 private TriangleMatrix matrix; 27 27 private SymbolMap<ITaskInstance, ITask> uniqueTasks; 28 private floatgapPenalty;29 private floatpositiveThreshold;28 private double gapPenalty; 29 private double positiveThreshold; 30 30 31 31 public ObjectDistanceSubstitionMatrix( … … 40 40 41 41 @Override 42 public floatgetGapPenalty() {42 public double getGapPenalty() { 43 43 return gapPenalty; 44 44 } … … 48 48 int index = 0; 49 49 //TODO We need to determine this parameter before generating the matrix.. 50 float meandistance = 18;50 //float meandistance = 18; 51 51 //TODO We need to determine this parameter before generating the matrix.. 52 52 float maxDistance =34; … … 58 58 eti1 = (IEventTaskInstance) obj1; 59 59 } 60 //System.out.println(eti1.getTask().toString()); 60 61 61 62 for (Iterator<ITaskInstance> jt = uniqueTasks.getSymbols() … … 121 122 122 123 @Override 123 public floatgetDistance(int taskId1, int taskId2) {124 public double getDistance(int taskId1, int taskId2) { 124 125 //System.out.println("Taskid1: " + taskId1 + " Taskid2: " + taskId2 + " Idmapping1: " + idmapping.get(taskId1) + " Idmapping2: " + idmapping.get(taskId2)); 125 126 return matrix.get(idmapping.get(taskId1),idmapping.get(taskId2));
Note: See TracChangeset
for help on using the changeset viewer.