Examples of calcDependencyDate()


Examples of com.projity.pm.dependency.Dependency.calcDependencyDate()

    if (list.isEmpty()) {
      if (!task.isExternal() && task != context.sentinel) { // When the task is the sentinel, do nothing, otherwise find dependency and update it
        dependency = (Dependency) context.sentinel.getDependencyList(forward).find(forward,task); // find sentinel's dependency concerning this task
       
        if (dependency != null) { // tasks in a subproject won't have a sentinel dependency
          dependency.calcDependencyDate(forward,newBegin,newEnd,false); // calculate it to store off value
          context.sentinel.setCalculationStateCount(context.stateCount); // need to process successor(predecessor) later on in pass
          context.sentinel.getSchedule(type).setDependencyDate(needsCalculation); //sentinel needs dependencies calculated - I assume more than one
        }
      }
    } else {
View Full Code Here

Examples of com.projity.pm.dependency.Dependency.calcDependencyDate()

        long dependencyCount = dependencyTask.getDependencyList(forward).size();

        long dep = newBegin; // by default (if no preds for example)
        if (dependencyCount > 0) {
          boolean useSooner = !dependencyTask.isWbsParent() && dependencyTask.hasDuration();
          dep = dependency.calcDependencyDate(forward,newBegin,newEnd,useSooner); // calculate it and store off value
          if (dependencyCount > 1) // can't just set date directly because more than one
            dep = needsCalculation; // it will need to be calculated later
        }
        dependencyTaskSchedule.setDependencyDate(dep);
        dependencyTask.setCalculationStateCount(context.stateCount); // need to process successor(predecessor) later on in pass
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.