Package de.fzi.herakles.commons.statistic

Examples of de.fzi.herakles.commons.statistic.StatisticData


     

    }
    // set the statistic data
    else {
      StatisticData data = HeraklesManager.getStatisticData();
//      percentage = getPercentageString(data.getPercentage(functionName, name));
      percentage = getPercentageString(data.getSelectionFinishingPercentage(functionName, name));
      taskNumber = Integer.toString(data.getTaskNumber(functionName, name));
      currentTask = getCurrentTaskString(data.getCurrentTask(name));
     
      Font font = new Font("cell", Font.PLAIN, 14);
     
      percentagePanel.setText(percentage);
      percentagePanel.setFont(font);
View Full Code Here


   
    // set the header
    if(name.equals("Header")){
     

      StatisticData data = HeraklesManager.getStatisticData();
      List<Query> functions = data.getLastTasks();
     
      name     = "Reasoner";
     
      for(int i=0; i<displayNumber; i++){
        if(functions.get(i) != null){
          String taskName = Parameter.getTaskFunctionName(functions.get(i));
          tasks[i] = taskName;
          if(i==0){
            tasks[i] += "(lastest)";
          }
        }
        else {
          tasks[i] = "-";
        }
       
      }
     
      Font font = new Font("Header", Font.BOLD, 16);
     
      for(int i=0; i<=displayNumber; i++){
        if(i==0){
          panes[i].setText(name);
        } else {
          panes[i].setText(tasks[i-1]);
        }
        panes[i].setFont(font);
        panes[i].setBackground(bgColor);
        panes[i].setForeground(Color.blue);
      }
     
     

    }
    // set the statistic data
    else {
      StatisticData data = HeraklesManager.getStatisticData();
      List<Query> functions = data.getLastTasks();
     
      for(int i=0; i<displayNumber; i++){
        if(functions.get(i) != null){
          tasks[i] = data.getTime(name, functions.get(i));
        }
        else {
          tasks[i] = "-";
        }
       
View Full Code Here

TOP

Related Classes of de.fzi.herakles.commons.statistic.StatisticData

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.