Ignore:
Timestamp:
09/02/14 22:43:36 (10 years ago)
Author:
rkrimmel
Message:

Saving matseqs to file

Location:
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/Match.java

    r1693 r1717  
    11package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 
    22 
     3import java.io.Serializable; 
    34import java.util.ArrayList; 
    45import java.util.LinkedList; 
     
    67 
    78 
    8 public class Match { 
     9public class Match implements Serializable{ 
     10        /** 
     11         *  
     12         */ 
     13        private static final long serialVersionUID = -3206992723755714741L; 
     14 
    915        private ArrayList<NumberSequence> matchseqs; 
    1016 
  • branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/MatchOccurence.java

    r1667 r1717  
    11package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 
    22 
    3 public class MatchOccurence { 
     3import java.io.Serializable; 
     4 
     5public class MatchOccurence implements Serializable{ 
     6        /** 
     7         *  
     8         */ 
     9        private static final long serialVersionUID = 6186633243145293781L; 
    410        private int startindex; 
    511        private int endindex; 
  • branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/NumberSequence.java

    r1693 r1717  
    11package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; 
    22 
     3import java.io.Serializable; 
    34import java.util.LinkedList; 
    45import java.util.Random; 
    56 
    6 public class NumberSequence { 
     7public class NumberSequence implements Serializable{ 
     8        /** 
     9         *  
     10         */ 
     11        private static final long serialVersionUID = -4604570107534055589L; 
    712        private int[] sequence; 
    813        private int id; 
  • branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java

    r1711 r1717  
    658658                        NumberSequence ns1 = appData.getNumberSequences().get(i); 
    659659                        count++; 
    660                         if((count%(size/100)==0)) { 
    661                                 Console.traceln(Level.INFO,(Math.round((float) count/size*100))+ "%"); 
    662                         } 
     660        //              if((count%(size/100)==0)) { 
     661        //                      Console.traceln(Level.INFO,(Math.round((float) count/size*100))+ "%"); 
     662        //              } 
    663663                        for (int j = 0; j < appData.getNumberSequences().size(); j++) { 
    664664                                NumberSequence ns2 = appData.getNumberSequences().get(j); 
    665665                                if (i != j) { 
    666                                          
    667                                         Console.traceln(Level.FINEST,"Aligning sequence " + i + " with sequence " + j); 
     666                                        //Console.traceln(Level.FINEST,"Aligning sequence " + i + " with sequence " + j); 
    668667                                        AlignmentAlgorithm aa = AlignmentAlgorithmFactory.create(); 
    669668                                        aa.align(ns1, ns2, appData.getSubmat(),9); 
     
    672671                        } 
    673672                } 
    674  
     673                GlobalDataContainer.getInstance().addData("aligned", matchseqs); 
     674                saveAppData("aligned"); 
    675675 
    676676                Console.traceln(Level.INFO, "searching for patterns occuring most"); 
Note: See TracChangeset for help on using the changeset viewer.