Package comum.util.grafico

Examples of comum.util.grafico.Projection


    if(comQtde){
      Date start = getDataInicioProjecaoIndicador(Pagina.getParam(request, "codIndicador"), Pagina.getParam(request, "codAri"), comQtde, soPrevisao);
      GregorianCalendar calendar = new GregorianCalendar();
      calendar.setTime(start);

      Projection myProjection = FactoryCalculoProjecao.getProjection(tipoProjecao, valuesProjection, calendar);
     
      TimeSeries projectionSerie = new TimeSeries("Projetado", Month.class);
     
      calendar.add(GregorianCalendar.MONTH,valuesProjection.size()-1);
     
      Map<GregorianCalendar,Double> projection = myProjection.getMapProjection(calendar, myProjection.getDate(previstoFinal));
     
     
      for(GregorianCalendar date: projection.keySet()){
        projectionSerie.add(new Month(date.get(GregorianCalendar.MONTH) + 1, date.get(GregorianCalendar.YEAR)), projection.get(date));
      }
View Full Code Here


   */
  public GregorianCalendar getProjecaoDataTermino(ItemEstrtIndResulIettr indicador, AcompReferenciaItemAri ari, double previsto) throws ECARException{
    try{
      GregorianCalendar start = this.getDateInicioRealizado(indicador);
      List<Double> values = getRealizado(indicador, ari);
      Projection projection = FactoryCalculoProjecao.getProjection(values, start);
      return projection.getDate(previsto);
    } catch(Exception e){
      this.logger.error(e);
      return null;
    }
  }
View Full Code Here

   
    try{
      GregorianCalendar start = this.getDateInicioRealizado(indicador);
      GregorianCalendar end   = this.getDateFimProjecao(indicador);
      List<Double> values = getRealizado(indicador, ari);
      Projection projection = FactoryCalculoProjecao.getProjection(values, start);
     
      return projection.getValue(end);
      //return auxCalculoProjecao(indicador,ari);
    } catch(Exception e){
      this.logger.error(e);
      return 0;
    }
View Full Code Here

TOP

Related Classes of comum.util.grafico.Projection

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.