* @param mpx
* Currenct MPXFile instance
*/
private void processResourceAssignments(MPXFile mpx) {
TaskManager tm = m_project.getTaskManager();
HumanResourceManager hrm = (HumanResourceManager) m_project
.getHumanResourceManager();
LinkedList assignments = mpx.getAllResourceAssignments();
Iterator iter = assignments.iterator();
com.tapsterrock.mpx.ResourceAssignment assignment;
int gTaskID;
int gResourceID;
GanttTask gTask;
ProjectResource gResource;
ResourceAssignment gAssignment;
while (iter.hasNext() == true) {
assignment = (com.tapsterrock.mpx.ResourceAssignment) iter.next();
gTaskID = mapTaskNumber(assignment.getTask().getID());
gResourceID = mapResourceNumber(assignment.getResource().getID());
if ((gTaskID != -1) && (gResourceID != -1)) {
gTask = tm.getTask(gTaskID);
gResource = hrm.getById(gResourceID);
gAssignment = gTask.getAssignmentCollection().addAssignment(
gResource);
gAssignment.setLoad((float) assignment.getUnitsValue());
gAssignment.setCoordinator(false);