Package com.projity.pm.resource

Examples of com.projity.pm.resource.ResourceImpl


        Node  node=(Node)iterator.next();
        if (!(node.getImpl() instanceof ResourceImpl)) {
      return null;
        }
   
      ResourceImpl resource=(ResourceImpl)node.getImpl(); //ResourceImpl to have the EnterpriseResource link
      //if (globalIdsOnly) CommonDataObject.makeGlobal(resource); //modify enterprise resource in fact
      return resource;
  }
View Full Code Here


  }
  public Node createTask(Project project){
    return new NodeBridge(new NormalTask(project));
  }
  public Node createResource(ResourcePool resourcePool){
    return new NodeBridge(new ResourceImpl(new EnterpriseResource(resourcePool)));
  }
View Full Code Here

        TimeInterval interval=timeIterator.next();
        c.set(k,interval.getStart1(),interval.getEnd1(),0.0,null);
      }
        //return calculatedValues;
      while (j.hasNext()){
        ResourceImpl resource;
        Object obj=j.next();
        if (obj instanceof Assignment)
          resource=(ResourceImpl)((Assignment)obj).getResource();
        else if (obj instanceof ResourceImpl)
          resource=(ResourceImpl)obj;
        else
          continue;
        GroupedCalculatedValues global=resource.getGlobalResource().getGlobalWorkVector();
        if (global != null) {
          global=global.dayByDayConvert();
          c.mergeIn(global);
        }
      }
View Full Code Here

        continue;
      AssociationList snapshotAssignments = snapshot.getHasAssignments().getAssignments();
      if (snapshotAssignments.size() > 0) {
        for (Iterator j = snapshotAssignments.iterator(); j.hasNext();) {
          Assignment assignment = (Assignment) j.next();
          ResourceImpl r = (ResourceImpl) assignment.getResource();
          if (r.isDefault())
            continue;

          Project.Assignments.Assignment.Baseline baseline = m_factory
              .createProjectAssignmentsAssignmentBaseline();
          // For some silly reason, the baseline fields are all
View Full Code Here

TOP

Related Classes of com.projity.pm.resource.ResourceImpl

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.