| java.lang.Object com.projity.pm.assignment.contour.AbstractContour com.projity.pm.assignment.contour.PersonalContour
Method Summary | |
public static PersonalContour | addEmptyBucket(AbstractContour from, long duration, boolean after) | public AbstractContour | adjustDuration(long newDuration, long actualDuration) Set the duration of the personal contour. | public AbstractContour | adjustUnits(double multiplier, long startingFrom) Set the units of the personal contour by multiplying each bucket's units by a multipier. | public long | calcTotalWork(long assignmentDuration) | public Object | clone() | public static PersonalContour | constructUsingSizeOf(AbstractContour from) | public AbstractContour | contourAdjustWork(double multiplier, long actualDuration) | public AbstractContour | convertToFlatIfPossible() | public AbstractContour | extend(long end, long extendDuration) | public AbstractContour | extendBefore(long start, long extendDuration) | public PersonalContour | extendBucket(long atDuration, long extendDuration) | public long | extractDelay() | public static PersonalContour | getInstance(Collection list) | public static PersonalContour | getInstance(AbstractContourBucket[] contourBuckets) | public String | getName() | public MutableInterval | getRangeThatIntervalCanBeMoved(long start, long end) Given an interval as start and end, determine the range which this interval can move in. | public int | getType() | public PersonalContour | insertBucket(long atDuration, AbstractContourBucket newBucket) Inserts a bucket into the contour. | public boolean | isPersonal() | public static PersonalContour | makePersonal(AbstractContour contour, long assignmentDuration) | public AbstractContour | removeEmptyBucketAtDuration(long atDuration) Remove a blank bucket, if any, that starts or occurs at a duration. | public AbstractContour | removeFillerAfter(long atDuration) Removes any buckets having filler status after a given date. | public PersonalContour | setInterval(long startDuration, long endDuration, double units) | public PersonalContour | shift(long start, long end, long shiftDuration) | public void | validate() |
PersonalContour | public PersonalContour(AbstractContour standard, long assignmentDuration)(Code) | | Make a personal contour from a standard one. This is used when the user explicity changes to a personal contour, or if he types
in values in the spreadsheet.
It essentially clones a contour to a personal contour.
Parameters: standard - Parameters: assignmentDuration - |
addEmptyBucket | public static PersonalContour addEmptyBucket(AbstractContour from, long duration, boolean after)(Code) | | Add empty duration bucket either before or after
Parameters: from - Parameters: duration - Parameters: after - |
adjustDuration | public AbstractContour adjustDuration(long newDuration, long actualDuration)(Code) | | Set the duration of the personal contour. This implies either truncating the bucket array or changing the last bucket
to accommodate the new duration. Note that only the last bucket will be modified. The number of buckets will never increase.
Since the buckets themselves are immutable, the last element will most likely be replaced.
newDuration: The new duration to set to. |
adjustUnits | public AbstractContour adjustUnits(double multiplier, long startingFrom)(Code) | | Set the units of the personal contour by multiplying each bucket's units by a multipier.
Since buckets are immutable, each element is copied to a new one
The multiplier is newRate / oldRate
multiplier: The new value to set to. |
calcTotalWork | public long calcTotalWork(long assignmentDuration)(Code) | | Calculates total work
|
contourAdjustWork | public AbstractContour contourAdjustWork(double multiplier, long actualDuration)(Code) | | Replace every element of the array with another that has its work adjusted
|
extendBucket | public PersonalContour extendBucket(long atDuration, long extendDuration)(Code) | | Extend a bucket by a duration
Parameters: atDuration - - point on bucket to extend Parameters: extendDuration - - amount to extend - can be negative to contract - new contour |
extractDelay | public long extractDelay()(Code) | | Remove any starting empty buckets from the contour and return the duration of those buckets
|
getRangeThatIntervalCanBeMoved | public MutableInterval getRangeThatIntervalCanBeMoved(long start, long end)(Code) | | Given an interval as start and end, determine the range which this interval can move in.
Parameters: start - Parameters: end - an interval which is a superset of the start,end interval |
getType | public int getType()(Code) | | |
insertBucket | public PersonalContour insertBucket(long atDuration, AbstractContourBucket newBucket)(Code) | | Inserts a bucket into the contour. If the bucket is past the end, it is not inserted
Parameters: atDuration - Parameters: newBucket - |
isPersonal | public boolean isPersonal()(Code) | | |
removeEmptyBucketAtDuration | public AbstractContour removeEmptyBucketAtDuration(long atDuration)(Code) | | Remove a blank bucket, if any, that starts or occurs at a duration.
This is used when updating progress to assure that a task resumes on a certain date
Parameters: atDuration - |
removeFillerAfter | public AbstractContour removeFillerAfter(long atDuration)(Code) | | Removes any buckets having filler status after a given date. This is used in the obscure case where we uncomplete
work and we want to eliminate gaps that exist due to dependency dates. These gaps should not be considered part of the contour.
Parameters: atDuration - |
shift | public PersonalContour shift(long start, long end, long shiftDuration)(Code) | | Shift an interval (usually a bar) to the right or left
Parameters: start - - start of interval (expressed as an offset from the start) Parameters: end - - end of interval (expressed as an offset from the start) Parameters: shiftDuration - (if positive, shifting right, negative means shifting left) |
validate | public void validate()(Code) | | |
|
|