Package com.projity.pm.assignment.contour

Examples of com.projity.pm.assignment.contour.AbstractContour


//  }
 
  void adjustRemainingWork(double multiplier) {
    long dur;
   
    AbstractContour newContour = workContour.contourAdjustWork(multiplier, getActualDuration());
    if (workContour != newContour) { // adjust the work contour - the case of a personal contour
      workContour = newContour; // if contour was changed
      dur =workContour.calcTotalBucketDuration(getDuration()); // cannot perform simple multiplication of duration because non-work periods are NOT multiplied
    } else {
      dur = (long) (getActualDuration() + getRemainingDuration() * multiplier);
 
View Full Code Here


        return; // don't extend if value is 0
      }
      makeContourPersonal();
      long extraDuration = cal.compare(end,getFinish(),false);
      setDurationMillis(getDurationMillis() + extraDuration);
      AbstractContour contour = PersonalContour.addEmptyBucket(getWorkContour(), extraDuration,true);
      newDetail().setWorkContour(contour);

      // adjust task end too
      if (end > getTask().getEnd())
        getTask().setEnd(end);
View Full Code Here

    if (oldDelay == 0)
      return;
    makeContourPersonal();
    setTotalDelay(0);
    setDurationMillis(getDurationMillis() + oldDelay);
    AbstractContour contour = PersonalContour.addEmptyBucket(getWorkContour(), oldDelay,false); // add empty space before
    newDetail().setWorkContour(contour);
  }
View Full Code Here

TOP

Related Classes of com.projity.pm.assignment.contour.AbstractContour

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.