code: public void addResourceAssignment(ResourceAssignment assignment)
     {
        if (getExistingResourceAssignment(assignment.getResource()) == null)
        {
           m_assignments.add(assignment);
           getParentFile().getResourceAssignments().add(assignment);
  
           Resource resource = assignment.getResource();
           if (resource != null)
           {
              resource.addResourceAssignment(assignment);
           }
        }
     }
docs: Add a resource assignment which has been populated elsewhere.
  
  @param assignment resource assignment