/// /// <summary> * creates a new phasetime that spans lastphase and this phase /// * </summary> /// * <param name="lastphase"> the phase to merge </param> /// * <returns> true if successful </returns> /// public virtual bool mergeLastPhase(JDFJobPhase lastphase) { if (!isSamePhase(lastphase, false)) { return(false); } setStartTime(lastphase.getStartTime()); setPhaseAmount(getPhaseAmount() + lastphase.getPhaseAmount()); setPhaseWaste(getPhaseWaste() + lastphase.getPhaseWaste()); return(true); }