package eu.liveandgov.wp1.human_activity_recognition;

import eu.liveandgov.wp1.human_activity_recognition.containers.CountWindow;
import eu.liveandgov.wp1.human_activity_recognition.containers.TaggedWindow;
import eu.liveandgov.wp1.human_activity_recognition.helper.Persistor;
import eu.liveandgov.wp1.human_activity_recognition.producers.*;


/**
 * Created with IntelliJ IDEA.
 * User: cehlen
 * Date: 06/01/14
 * Time: 21:23
 * To change this template use File | Settings | File Templates.
 */
public class Main {

    public static void main(String args[]) {
        CSVReader csvReader = new CSVReader();


        WindowProducer windowProducer = new WindowProducer(5000, 4995);
        csvReader.setConsumer(windowProducer);

        QualityFilter qualityFilter = new QualityFilter(50.0, 1.0, "windowFreq.log");
        windowProducer.setConsumer(qualityFilter);


        Interpolator interpolator = new Interpolator(50.0);
        qualityFilter.setConsumer(interpolator);

        Persistor<CountWindow> p = new Persistor("out.csv");
        interpolator.setConsumer(p);

        csvReader.read("/Users/cehlen/TrainingData/WALKING/12");
    }

}

@@ -669,15 +669,14 @@
 cer(
-5000
+1001
 , 
-4
 995)
@@ -788,17 +788,16 @@
 (50.0, 1
-.
 0, %22wind
@@ -858,25 +858,24 @@
 tyFilter);%0A%0A
-%0A
         Inte
@@ -981,23 +981,27 @@
        P
-ersisto
+rintProduce
 r%3CCountW
@@ -1012,16 +1012,17 @@
 w%3E p
+p
  = new P
 ersi
@@ -1021,128 +1021,241 @@
 ew P
-ersistor(%22out.csv%22);%0A        interpolator.setConsumer(p);%0A%0A        csvReader.read(%22/Users/cehlen/TrainingData/WALKING/12
+rintProducer%3CCountWindow%3E(%22InterpolatedWindow%22);%0A        interpolator.setConsumer(pp);%0A%0A        Persistor%3CCountWindow%3E pers = new Persistor%3CCountWindow%3E(%22out.csv%22);%0A        pp.setConsumer(pers);%0A%0A        csvReader.read(%22Test/test.csv
 %22);%0A

Set main() to test data.