Examples of selectFrom()


Examples of com.projity.algorithm.Query.selectFrom()

  public double acwp(long start, long end) {
    if (!isInRange(start,end))
      return NO_VALUE_DOUBLE;
    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(Math.max(start,detail.effectiveBaselineStart()),Math.min(end,getCompletedOrStatusDate()));
    query.selectFrom(clause)
      .action(cost(clause,false))
      .execute();
    return ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

    if (AdvancedOption.getInstance().isEarnedValueFieldsCumulative())
      start = getStart(); // start from the beginning of the task and ignore the range start

    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(Math.max(start,detail.effectiveBaselineStart()),Math.min(end,getStatusDate()));
    query.selectFrom(clause)
      .action(baselineData(COST,clause))
      .execute();
    return ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

  public double bac(long start, long end) {
    if (!isInRange(start,end))
      return NO_VALUE_DOUBLE;
    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(start,end);
    query.selectFrom(clause)
      .action(baselineData(COST,clause))
      .execute();
    return ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

  public double cost(long start, long end) {
    if (!isInRange(start,end))
      return NO_VALUE_DOUBLE;
    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(start,end);
    query.selectFrom(clause)
      .action(cost(clause,false))
      .execute();
    return ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

      return NO_VALUE_LONG;
//    if (!isLabor()) // TODO this right?
//      return 0;
    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(start,end);
    query.selectFrom(clause)
      .action(work(clause))
      .execute();
    return (long) ((DoubleValue)query.getActionVisitor()).getValue();

  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

    if (!isInRange(start,end))
      return NO_VALUE_DOUBLE;

    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(Math.max(start,detail.getStart()),Math.min(end,getStop()));
    query.selectFrom(clause)
      .action(cost(clause,false))
      .execute();
    return ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

      return NO_VALUE_LONG;
    if (!isLabor()) // TODO this right?
      return 0;
    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(Math.max(start,detail.getStart()),Math.min(end,getStop()));
    query.selectFrom(clause)
      .action(work(clause))
      .execute();
    return (long) ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

      return NO_VALUE_LONG;
    if (!isLabor()) // TODO this right?
      return 0;
    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(Math.max(start,detail.getStop()),Math.min(end,getEnd()));
    query.selectFrom(clause)
      .action(work(clause))
      .execute();
    return (long) ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

//    if (!isInRange(start,end))
//      return NO_VALUE_DOUBLE;

    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(start,end);
    query.selectFrom(clause)
      .action(baselineData(COST,clause))
      .execute();
    return ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here

Examples of com.projity.algorithm.Query.selectFrom()

//      return NO_VALUE_LONG;
    if (!isLabor()) // TODO this right?
      return 0;
    Query query = Query.getInstance();
    SelectFrom clause = SelectFrom.getInstance().whereInRange(start,end);
    query.selectFrom(clause)
      .action(baselineData(WORK,clause))
      .execute();
    return (long) ((DoubleValue)query.getActionVisitor()).getValue();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.