|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.sf.mpxj.ProjectEntity
net.sf.mpxj.ResourceAssignment
public final class ResourceAssignment
This class represents a resource assignment record from an MPX file.
| Field Summary | |
|---|---|
static java.lang.Double |
DEFAULT_UNITS
Default units value: 100%. |
| Constructor Summary | |
|---|---|
ResourceAssignment(ProjectFile file,
Task task)
Default constructor. |
|
| Method Summary | |
|---|---|
ResourceAssignmentWorkgroupFields |
addWorkgroupAssignment()
This method allows a resource assignment workgroup fields record to be added to the current resource assignment. |
java.lang.Number |
getActualCost()
Returns the actual cost for this resource assignment. |
Duration |
getActualWork()
Returns the actual completed work of this resource assignment. |
ProjectCalendar |
getCalendar()
Retrieves the calendar used for this resource assignment. |
java.lang.Number |
getCost()
Returns the cost of this resource assignment. |
Duration |
getDelay()
Returns the delay for this resource assignment. |
java.util.Date |
getFinish()
Returns the finish date for this resource assignment. |
boolean |
getHasTimephasedData()
Retrieve a flag indicating if this resource assignment has timephased data associated with it. |
Duration |
getOvertimeWork()
Returns the overtime work done of this resource assignment. |
java.lang.Number |
getPlannedCost()
Returns the planned cost for this resource assignment. |
Duration |
getPlannedWork()
Returns the planned work of this resource assignment. |
Duration |
getRemainingWork()
Returns the remaining work for this resource assignment. |
Resource |
getResource()
This method retrieves a reference to the resource with which this assignment is associated. |
java.lang.Integer |
getResourceUniqueID()
Returns the resources unique id for this resource assignment. |
java.util.Date |
getStart()
Returns the start of this resource assignment. |
Task |
getTask()
This method retrieves a reference to the task with which this assignment is associated. |
java.util.List<TimephasedResourceAssignment> |
getTimephasedComplete()
Retrieves the timephased breakdown of the completed work for this resource assignment. |
java.util.List<TimephasedResourceAssignment> |
getTimephasedPlanned()
Retrieves the timephased breakdown of the planned work for this resource assignment. |
java.lang.Number |
getUnits()
Returns the units of this resource assignment. |
Duration |
getWork()
Returns the work of this resource assignment. |
WorkContour |
getWorkContour()
This method returns the Work Contour type of this Assignment. |
ResourceAssignmentWorkgroupFields |
getWorkgroupAssignment()
Gets the Resource Assignment Workgroup Fields if one exists. |
void |
remove()
Removes this resource assignment from the project. |
void |
setActualCost(java.lang.Number val)
Sets the actual cost so far incurred for this resource assignment. |
void |
setActualWork(Duration dur)
Sets the actual completed work for this resource assignment. |
void |
setCost(java.lang.Number val)
Sets the cost for this resource assignment. |
void |
setDelay(Duration dur)
Sets the delay for this resource assignment. |
void |
setFinish(java.util.Date val)
Sets the finish date for this resource assignment. |
void |
setOvertimeWork(Duration dur)
Sets the overtime work for this resource assignment. |
void |
setPlannedCost(java.lang.Number val)
Sets the planned cost for this resource assignment. |
void |
setPlannedWork(Duration dur)
Sets the planned work for this resource assignment. |
void |
setRemainingWork(Duration remainingWork)
Sets the remaining work for this resource assignment. |
void |
setResourceUniqueID(java.lang.Integer val)
Sets the resources unique id for this resource assignment. |
void |
setStart(java.util.Date val)
Sets the start date for this resource assignment. |
void |
setTimephasedComplete(java.util.List<TimephasedResourceAssignment> timephasedComplete,
boolean raw)
Sets the timephased breakdown of the completed work for this resource assignment. |
void |
setTimephasedNormaliser(TimephasedResourceAssignmentNormaliser normaliser)
Set the class instance used to normalise timephased data. |
void |
setTimephasedPlanned(java.util.List<TimephasedResourceAssignment> timephasedPlanned,
boolean raw)
Sets the timephased breakdown of the planned work for this resource assignment. |
void |
setUnits(java.lang.Number val)
Sets the units for this resource assignment. |
void |
setWork(Duration dur)
Sets the work for this resource assignment. |
void |
setWorkContour(WorkContour workContour)
This method sets the Work Contour type of this Assignment. |
java.lang.String |
toString()
|
| Methods inherited from class net.sf.mpxj.ProjectEntity |
|---|
getParentFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Double DEFAULT_UNITS
| Constructor Detail |
|---|
ResourceAssignment(ProjectFile file,
Task task)
file - The parent file to which this record belongs.task - The task to which this assignment is being made| Method Detail |
|---|
public ResourceAssignmentWorkgroupFields addWorkgroupAssignment()
throws MPXJException
MPXJException - if MSP defined limit of 1 is exceededpublic java.lang.Number getUnits()
public void setUnits(java.lang.Number val)
val - unitspublic Duration getWork()
public void setWork(Duration dur)
dur - workpublic Duration getPlannedWork()
public void setPlannedWork(Duration dur)
dur - planned workpublic Duration getActualWork()
public void setActualWork(Duration dur)
dur - actual completed workpublic Duration getOvertimeWork()
public void setOvertimeWork(Duration dur)
dur - overtime workpublic java.lang.Number getCost()
public void setCost(java.lang.Number val)
val - costpublic java.lang.Number getPlannedCost()
public void setPlannedCost(java.lang.Number val)
val - planned costpublic java.lang.Number getActualCost()
public void setActualCost(java.lang.Number val)
val - actual costpublic java.util.Date getStart()
public void setStart(java.util.Date val)
val - start datepublic java.util.Date getFinish()
public void setFinish(java.util.Date val)
val - finish datepublic Duration getDelay()
public void setDelay(Duration dur)
dur - delaypublic java.lang.Integer getResourceUniqueID()
public void setResourceUniqueID(java.lang.Integer val)
val - resources unique idpublic ResourceAssignmentWorkgroupFields getWorkgroupAssignment()
public Task getTask()
public Resource getResource()
public WorkContour getWorkContour()
public void setWorkContour(WorkContour workContour)
workContour - the Work Contour typepublic void remove()
public Duration getRemainingWork()
public void setRemainingWork(Duration remainingWork)
remainingWork - remaining workpublic java.util.List<TimephasedResourceAssignment> getTimephasedComplete()
public void setTimephasedComplete(java.util.List<TimephasedResourceAssignment> timephasedComplete,
boolean raw)
timephasedComplete - timephased completed workraw - flag indicating if the assignment data is rawpublic java.util.List<TimephasedResourceAssignment> getTimephasedPlanned()
public void setTimephasedPlanned(java.util.List<TimephasedResourceAssignment> timephasedPlanned,
boolean raw)
timephasedPlanned - timephased planned workraw - flag indicating if the assignment data is rawpublic void setTimephasedNormaliser(TimephasedResourceAssignmentNormaliser normaliser)
normaliser - class instance used to normalise timephased datapublic boolean getHasTimephasedData()
public ProjectCalendar getCalendar()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||