Package com.projity.algorithm

Examples of com.projity.algorithm.CollectionIntervalGenerator


  }

  private AssignmentFieldFunctor availability(SelectFrom clause) {
    //TODO this is untested, as histogram is currently broken 8/12/04 hk
    ResourceAvailabilityFunctor functor = ResourceAvailabilityFunctor.getInstance(this);
    CollectionIntervalGenerator availability = CollectionIntervalGenerator.getInstance(((ResourceImpl)detail.getResource()).getAvailabilityTable().getList());
    clause.select(functor)
        .from(availability); //use range?
    return functor;
  }
View Full Code Here


   * @return
   */
  private static AssignmentFieldFunctor resourceAvailability(SelectFrom clause, Resource resource) {
    //TODO this is untested, as histogram is currently broken 8/12/04 hk
    ResourceAvailabilityFunctor functor = ResourceAvailabilityFunctor.getInstance(resource);
    CollectionIntervalGenerator availability = CollectionIntervalGenerator.getInstance(resource.getAvailabilityTable().getList());
    clause.select(functor)
        .from(availability); //use range?
    return functor;
  }
View Full Code Here

    } else {
      boolean prorated = isProratedCost();
      // if prorated, or if calculating a total, then treat as prorated
      if (all || prorated) {
        ContourBucketIntervalGenerator workContour = contourGeneratorInstance(WORK);
        CollectionIntervalGenerator costRate = CollectionIntervalGenerator.getInstance(detail.getResource().getCostRateTable(detail.getCostRateIndex()).getList());
        clause.from(costRate).from(workContour);
        // Note that the getStart() parameter implies cost per use is applied at start
        CostFunctor costF = CostFunctor.getInstance(this, getEffectiveWorkCalendar(), workContour, detail.calcOvertimeUnits(), costRate, getStart(),prorated);
        clause.select(costF);
        return costF;
View Full Code Here

TOP

Related Classes of com.projity.algorithm.CollectionIntervalGenerator

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.