private void readResourceAssignment ( Allocation gpAllocation ) { Integer taskID = Integer . valueOf ( NumberHelper . getInt ( gpAllocation . getTaskId ( ) ) + 1 ) ; Integer resourceID = Integer . valueOf ( NumberHelper . getInt ( gpAllocation . getResourceId ( ) ) + 1 ) ; Task task = m_projectFile . getTaskByUniqueID ( taskID ) ; Resource resource = m_projectFile . getResourceByUniqueID ( resourceID ) ; if ( task != null && resource != null ) { ResourceAssignment mpxjAssignment = task . addResourceAssignment ( resource ) ; mpxjAssignment . setUnits ( gpAllocation . getLoad ( ) ) ; m_eventManager . fireAssignmentReadEvent ( mpxjAssignment ) ; } }
Read an individual GanttProject resource assignment .