| java.lang.Object com.projity.pm.assignment.AssignmentDetail
Constructor Summary | |
| AssignmentDetail(Task task, Resource resource, double units, int requestDemandType, long delay) Construct an assignment. |
Method Summary | |
public void | addCalendarTime(long start, long end) | void | adjustRemainingDuration(long newRemainingDuration) | void | adjustRemainingUnits(double newUnits) | void | adjustRemainingWork(double multiplier) | void | adjustWorkingDuration(long newWorkingDuration) Allow setting of working duration. | public Object | backupDetail() | double | calcOvertimeUnits() Calculate the overtime value from the overtime work field. | public long | calcTotalDelay() | long | calcWork() | long | calcWorkingDuration() MSProject displays duration as only the working duration except in fixed duration tasks. | public void | clearDuration() | public Object | clone() | public void | consumeIntervals(IntervalConsumer consumer) | void | convertToBaselineAssignment(boolean useDefaultCalendar) | public void | debugSetWorkContour(AbstractContour contour) | long | effectiveBaselineFinish(Object baseline) | long | effectiveBaselineStart() | long | effectiveBaselineStart(Object baseline) | void | extend(long end, long extendDuration) | public void | extendBefore(long startOffset, long extendDuration) | long | extractDelay() | public long | getActualDuration() | public long | getActualFinish() | public long | getActualStart() | Assignment | getBaselineAssignment() | Assignment | getBaselineAssignment(Object baseline, boolean createIfDoestExist) | final public long | getCompletedThrough() | AbstractContourBucket[] | getContour(Object type) | AbstractContour | getCostContour() | int | getCostRateIndex() | public long | getDelay() | public long | getDependencyStart() | public long | getDuration() | final public long | getEarliestStop() | public WorkCalendar | getEffectiveWorkCalendar() | public long | getElapsedDuration() | public long | getEnd() | long | getFinish() | public long | getLevelingDelay() | public long | getOvertimeWork() | public double | getPercentComplete() | MutableInterval | getRangeThatIntervalCanBeMoved(long start, long end) | final public Rate | getRate() | public long | getRemainingDuration() | public int | getRequestDemandType() | Resource | getResource() | long | getResourceAvailability() | public long | getResume() | long | getSplitDuration() | public long | getStart() The assignment start is calculated like this:
Get the task start. | public long | getStop() returns calculated completed date. | Task | getTask() | TaskSchedule | getTaskSchedule() | TaskSchedule | getTaskScheduleOfAssignment() | long | getTaskStart() | double | getUnits() | public WorkCalendar | getWorkCalendar() | AbstractContour | getWorkContour() | boolean | hasDuration() | public void | invalidateAssignmentCalendar() | public Document | invalidateCalendar() | boolean | isBaseline() | public boolean | isComplete() | public boolean | isInvalidIntersectionCalendar() | public boolean | isJustModified() | final public boolean | isTemporal() | public void | moveInterval(Object eventSource, long start, long end, ScheduleInterval oldInterval, boolean isChild) | public void | moveRemainingToDate(long date) | void | recalculateDuration() | public void | removeEmptyBucketAtDuration(long atDuration) | void | removeFillerAfter(long stop) Remove any filler periods in the contour after a certain date. | void | replaceResourceAndUnits(double units, Resource resource) Set just the units and the resource. | public void | restoreDetail(Object source, Object detail, boolean isChild) | public void | setActualDuration(long actualDuration) Parameters: actualDuration - The actualDuration to set. | public void | setActualFinish(long actualFinish) Sets the actual finish. | public void | setActualStart(long actualStart) | public void | setComplete(boolean complete) | public void | setCompletedThrough(long completedThrough) | void | setContour(Object type, Collection bucketList) | void | setContour(Object type, AbstractContourBucket[] buckets) | void | setCostRateIndex(int costRateIndex) | void | setDelay(long delay) | public void | setDependencyStart(long dependencyStart) | public void | setDuration(long duration) | public void | setEnd(long end) | void | setLevelingDelay(long levelingDelay) | void | setOvertimeWork(long overtimeWork) | public void | setPercentComplete(double percentComplete) | final public void | setRate(Rate rate) | void | setRateUnit(int timeUnit) | public void | setRemainingDuration(long remainingDuration) | void | setRequestDemandType(int requestDemandType) | public void | setResource(Resource resource) | public void | setResume(long resume) | public void | setStart(long start) Sets the assignment start. | public void | setStop(long stop) | public void | setTask(Task task) | void | setTaskSchedule(TaskSchedule taskSchedule) | void | setUnits(double units) | public void | setWorkCalendar(WorkCalendar workCalendar) | void | setWorkContour(AbstractContour contour) | void | shift(long start, long end, long shiftDuration) | public void | split(Object eventSource, long from, long to) | public String | toString() |
percentComplete | double percentComplete(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
AssignmentDetail | AssignmentDetail(Task task, Resource resource, double units, int requestDemandType, long delay)(Code) | | Construct an assignment. The arguments are those that are presented in the assign resource dialog
Parameters: task - Parameters: resource - Parameters: units - Parameters: requestDemandType - -Normally empty |
addCalendarTime | public void addCalendarTime(long start, long end)(Code) | | |
adjustRemainingDuration | void adjustRemainingDuration(long newRemainingDuration)(Code) | | Parameters: duration - The duration to set. |
adjustRemainingUnits | void adjustRemainingUnits(double newUnits)(Code) | | Parameters: units - The units to set. |
adjustRemainingWork | void adjustRemainingWork(double multiplier)(Code) | | |
adjustWorkingDuration | void adjustWorkingDuration(long newWorkingDuration)(Code) | | Allow setting of working duration. MSProject displays working duration (excludes non-work intervals) except when
task type is fixed duration, in which case it shows duration with non-work intervals
Parameters: newWorkingDuration - |
calcOvertimeUnits | double calcOvertimeUnits()(Code) | | Calculate the overtime value from the overtime work field. MSProject distributes
overtime uniformly over the working days of the assignment.
overtime value |
calcTotalDelay | public long calcTotalDelay()(Code) | | |
calcWork | long calcWork()(Code) | | Calculate the total work by multiplying units by the calculated duration
total work. |
calcWorkingDuration | long calcWorkingDuration()(Code) | | MSProject displays duration as only the working duration except in fixed duration tasks.
duration with non-work periods excluded |
clearDuration | public void clearDuration()(Code) | | |
convertToBaselineAssignment | void convertToBaselineAssignment(boolean useDefaultCalendar)(Code) | | |
debugSetWorkContour | public void debugSetWorkContour(AbstractContour contour)(Code) | | Parameters: contour - The contour to set.TODO get rid of this |
effectiveBaselineFinish | long effectiveBaselineFinish(Object baseline)(Code) | | |
effectiveBaselineStart | long effectiveBaselineStart()(Code) | | |
effectiveBaselineStart | long effectiveBaselineStart(Object baseline)(Code) | | |
extend | void extend(long end, long extendDuration)(Code) | | |
extendBefore | public void extendBefore(long startOffset, long extendDuration)(Code) | | Parameters: startOffset - Parameters: extendDuration - |
extractDelay | long extractDelay()(Code) | | |
getActualDuration | public long getActualDuration()(Code) | | Returns the actualDuration. |
getActualFinish | public long getActualFinish()(Code) | | |
getActualStart | public long getActualStart()(Code) | | |
getCompletedThrough | final public long getCompletedThrough()(Code) | | |
getCostRateIndex | int getCostRateIndex()(Code) | | Returns the costRateIndex. |
getDelay | public long getDelay()(Code) | | Accessor for the assignment's delay
delay |
getDependencyStart | public long getDependencyStart()(Code) | | Use the start dependency in the task schedule
|
getDuration | public long getDuration()(Code) | | Returns the duration. |
getEarliestStop | final public long getEarliestStop()(Code) | | |
getElapsedDuration | public long getElapsedDuration()(Code) | | |
getEnd | public long getEnd()(Code) | | |
getFinish | long getFinish()(Code) | | |
getLevelingDelay | public long getLevelingDelay()(Code) | | |
getOvertimeWork | public long getOvertimeWork()(Code) | | |
getPercentComplete | public double getPercentComplete()(Code) | | Returns the percentComplete. |
getRangeThatIntervalCanBeMoved | MutableInterval getRangeThatIntervalCanBeMoved(long start, long end)(Code) | | |
getRemainingDuration | public long getRemainingDuration()(Code) | | |
getRequestDemandType | public int getRequestDemandType()(Code) | | Returns the requestDemandType. |
getResourceAvailability | long getResourceAvailability()(Code) | | returns the amount of effort that the resource as available to work on the assignment
|
getResume | public long getResume()(Code) | | |
getSplitDuration | long getSplitDuration()(Code) | | |
getStart | public long getStart()(Code) | | The assignment start is calculated like this:
Get the task start.
If the assignment is not started, use the task's dependency date if it's later than the start
Add in any delay
|
getStop | public long getStop()(Code) | | returns calculated completed date. If there is no advancement, the date is start date
|
getTaskStart | long getTaskStart()(Code) | | |
getUnits | double getUnits()(Code) | | Accessor for units (value of work)
units |
hasDuration | boolean hasDuration()(Code) | | |
invalidateAssignmentCalendar | public void invalidateAssignmentCalendar()(Code) | | |
isBaseline | boolean isBaseline()(Code) | | |
isComplete | public boolean isComplete()(Code) | | |
isInvalidIntersectionCalendar | public boolean isInvalidIntersectionCalendar()(Code) | | |
isJustModified | public boolean isJustModified()(Code) | | |
isTemporal | final public boolean isTemporal()(Code) | | |
moveRemainingToDate | public void moveRemainingToDate(long date)(Code) | | |
recalculateDuration | void recalculateDuration()(Code) | | |
removeEmptyBucketAtDuration | public void removeEmptyBucketAtDuration(long atDuration)(Code) | | |
removeFillerAfter | void removeFillerAfter(long stop)(Code) | | Remove any filler periods in the contour after a certain date. This is used in the special case
of uncompleting a task. There might be filler periods in the contour due to a task dependency
that pushed out remaining work that was subsequently completed. When uncompleting, the remaining
work needs to have this filler period removed, otherwise there will be an extra delay.
Parameters: stop - Stop date |
replaceResourceAndUnits | void replaceResourceAndUnits(double units, Resource resource)(Code) | | Set just the units and the resource. This is the case when replacing a resource with another,
such as the default resource assignment being replaced with a true one
Parameters: units - Parameters: resource - |
restoreDetail | public void restoreDetail(Object source, Object detail, boolean isChild)(Code) | | |
setActualDuration | public void setActualDuration(long actualDuration)(Code) | | Parameters: actualDuration - The actualDuration to set. Will fix actual start if needed |
setActualFinish | public void setActualFinish(long actualFinish)(Code) | | Sets the actual finish. This entails setting the end, the actual start (in case it's not set yet), the duration
and the actual duration.
|
setActualStart | public void setActualStart(long actualStart)(Code) | | |
setComplete | public void setComplete(boolean complete)(Code) | | |
setCompletedThrough | public void setCompletedThrough(long completedThrough)(Code) | | |
setCostRateIndex | void setCostRateIndex(int costRateIndex)(Code) | | |
setDelay | void setDelay(long delay)(Code) | | |
setDependencyStart | public void setDependencyStart(long dependencyStart)(Code) | | |
setDuration | public void setDuration(long duration)(Code) | | |
setEnd | public void setEnd(long end)(Code) | | |
setLevelingDelay | void setLevelingDelay(long levelingDelay)(Code) | | |
setOvertimeWork | void setOvertimeWork(long overtimeWork)(Code) | | |
setPercentComplete | public void setPercentComplete(double percentComplete)(Code) | | Parameters: percentComplete - The percentComplete to set. |
setRateUnit | void setRateUnit(int timeUnit)(Code) | | Parameters: timeUnit - |
setRemainingDuration | public void setRemainingDuration(long remainingDuration)(Code) | | |
setRequestDemandType | void setRequestDemandType(int requestDemandType)(Code) | | |
setResume | public void setResume(long resume)(Code) | | |
setStart | public void setStart(long start)(Code) | | Sets the assignment start. Since the assigment start is an offset (usually 0) from task start, setting a later start means
setting a delay for the assignment. Also, any levelling delay is cleared
|
setStop | public void setStop(long stop)(Code) | | |
setTaskSchedule | void setTaskSchedule(TaskSchedule taskSchedule)(Code) | | Parameters: taskSchedule - The taskSchedule to set. |
setUnits | void setUnits(double units)(Code) | | |
shift | void shift(long start, long end, long shiftDuration)(Code) | | |
split | public void split(Object eventSource, long from, long to)(Code) | | |
|
|