Package com.projity.pm.scheduling

Examples of com.projity.pm.scheduling.Schedule


    return TimesheetHelper.getTimesheetStatusName(getTimesheetStatus());
  }

  public final long getEarliestStop() {
    long stop = Long.MAX_VALUE;
    Schedule s;
    Object nodeImpl;
    if (isWbsParent()) {
      Collection children = getWbsChildrenNodes();
      Iterator i = children.iterator();
      while (i.hasNext()) {
        Object x = i.next();
        if (!(x instanceof Node))
          continue;
        nodeImpl = ((Node)x).getImpl();
        if (! (nodeImpl  instanceof Schedule))
          continue;
        s = (Schedule)nodeImpl;
        stop = Math.min(stop,s.getEarliestStop());
      }
    } else {
      Iterator i = getAssignments().iterator();
      while (i.hasNext()) {
        Assignment ass = (Assignment)i.next();
View Full Code Here


    }else{
      collection=new ArrayList(1);
      collection.add(schedule);
    }
    for (Iterator i=collection.iterator();i.hasNext();){
      Schedule s=(Schedule)i.next();
      backups.put(s,s.backupDetail());
    }
    this.source=source;
  }
View Full Code Here

    super.redo();
  }
  public void undo() throws CannotUndoException {
    super.undo();
    for (Iterator i=backups.keySet().iterator();i.hasNext();){
      Schedule s=(Schedule)i.next();
      s.restoreDetail(source, backups.get(s), false);
    }
  }
View Full Code Here

    return TimesheetHelper.getTimesheetStatusName(getTimesheetStatus());
  }

  public final long getEarliestStop() {
    long stop = Long.MAX_VALUE;
    Schedule s;
    Object nodeImpl;
    if (isWbsParent()) {
      Collection children = getWbsChildrenNodes();
      Iterator i = children.iterator();
      while (i.hasNext()) {
        Object x = i.next();
        if (!(x instanceof Node))
          continue;
        nodeImpl = ((Node)x).getImpl();
        if (! (nodeImpl  instanceof Schedule))
          continue;
        s = (Schedule)nodeImpl;
        stop = Math.min(stop,s.getEarliestStop());
      }
    } else {
      Iterator i = getAssignments().iterator();
      while (i.hasNext()) {
        Assignment ass = (Assignment)i.next();
View Full Code Here

TOP

Related Classes of com.projity.pm.scheduling.Schedule

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.