Package data

Examples of data.StatisticController


public class StatisticDomainController {

 
    public void saveStatistics(int id) {
        //agafa de domini i guarda a disc
    StatisticController sc = new StatisticController();
    UserStatistics us = UserStatistics.getInstance()
   
    sc.setStatistics(id, us.getTotalWords(), us.getMarkedWords(), us.getNominalizedTexts(),
        us.getLearntRules(), us.getLearntPairs(), us.getAddedVerbs(), us.getVerbsMean());
    }
View Full Code Here


        us.getLearntRules(), us.getLearntPairs(), us.getAddedVerbs(), us.getVerbsMean());
    }

    public void loadStatistics(int id) {
        //agafa les dades de disc i les carrega a les dues classes de domini
    StatisticController sc = new StatisticController();
    UserStatistics us = UserStatistics.getInstance();
   
    int[] stats = sc.getStatistics(id);
    double meanVerbs = sc.getStatisticsMeanVerbs(id);
   
    us.setTotalWords(stats[0]);
    us.setMarkedWords(stats[1]);
    us.setNominalizedTexts(stats[2]);
    us.setLearntRules(stats[3]);
View Full Code Here

TOP

Related Classes of data.StatisticController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.