Package com.projity.algorithm.buffer

Examples of com.projity.algorithm.buffer.CalculatedValues


  }
 
  public CalculatedValues computeTrace(Iterator taskIterator, List resources, Object trace,  boolean histogram, boolean cumulative) {
    if (taskIterator == null || !taskIterator.hasNext()) // if no task selected, dont change chart
      return null;
    CalculatedValues calculatedValues;
    if (histogram)
      calculatedValues = new GroupedCalculatedValues();
    else
      calculatedValues = new NonGroupedCalculatedValues(cumulative,coord.getOrigin());
   
View Full Code Here


    return calculatedValues;
  }


  public CalculatedValues computeAvailability(List resources) {
    CalculatedValues calculatedValues = new GroupedCalculatedValues();
    if (resources != null) {
      Iterator r = resources.iterator();
      while (r.hasNext()) {
        Object obj = r.next();
        if (!(obj instanceof Resource))
View Full Code Here

//    }
//    return null;
//  }
  // Other Projects
  public CalculatedValues computeOtherProjects(List tasks, List resources) {
    CalculatedValues calculatedValues = new GroupedCalculatedValues();
    if ((resources!=null&&resources.size()>0)||(tasks!=null&&tasks.size()>0)){ //resources can be put in tasks list, is it a bug?
      Iterator j=((resources==null||resources.size()==0)?tasks:resources).iterator();
      GroupedCalculatedValues c=(GroupedCalculatedValues)calculatedValues;
     
      TimeIterator timeIterator = coord.getProjectTimeIterator();
View Full Code Here

 
 
  public void computeValues(List tasks, List resources, boolean cumulative, Object[] traces, boolean histogram) {
    if (tasks == null)
      return;
    CalculatedValues valuesArray[] = new CalculatedValues[traces.length];
    seriesCollection = new XYSeriesCollection();

    secondSeriesCollection = null;
    XYSeries series;
    for (int i = 0; i < traces.length; i++) {
View Full Code Here

TOP

Related Classes of com.projity.algorithm.buffer.CalculatedValues

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.