Class Task
- java.lang.Object
-
- com.aspose.tasks.Task
-
public class Task extends Object implements com.aspose.ms.System.IEquatable<Task>, Cloneable
Represents a task in a project.
The Task is representing a one atomic chunk of work.
One can use Task to plan a project by creating tasks and assign appropriate resources onto them. Tasks in a project are organized as a rooted hierarchical tree structure, with a root task and subtrees of children tasks.To build a tree of tasks one can use a specialized collection
TaskCollectionby accessingProject.RootTask(Project.getRootTask()/Project.setRootTask(Task)) property e.g.:Project project = new Project(); // add new tasks Task task1 = project.RootTask.Children.Add(); // a parent task with empty name is added Task childTask1 = task1.Children.Add("Child 1"); childTask1.Set(Tsk.Start, new DateTime(2020, 2, 12, 8, 0, 0)) childTask1.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour)); childTask1.Set(Tsk.Finish, new DateTime(2020, 2, 12, 17, 0, 0)); Task childTask3 = task1.Children.Add("Child 3"); childTask3.Set(Tsk.Start, new DateTime(2020, 2, 13, 8, 0, 0)) childTask3.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour)); childTask3.Set(Tsk.Finish, new DateTime(2020, 2, 13, 17, 0, 0)); Task childTask2 = task1.Children.Add("Child 2", 2); // inserts a task before the childTask3 childTask2.Set(Tsk.Start, new DateTime(2020, 2, 14, 8, 0, 0)) childTask2.Set(Tsk.Duration, project.GetDuration(8, TimeUnitType.Hour)); childTask2.Set(Tsk.Finish, new DateTime(2020, 2, 14, 17, 0, 0)); // save project in the one of available formats project.Save("Filled project.xml", SaveFileFormat.Mpp);
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdeepClone()Creates full copy of a task without subtasks.voiddelete()Deletes a task from parent project tasks collection and all its assignments.booleanequals(Task other)Returns a value indicating whether this instance is equal to a specified task.booleanequals(Object obj)Returns a value indicating whether this instance is equal to a specified object.<T> Tget(Key<T,Byte> key)Returns the value to which the property is mapped in this container.StringgetActivityId()Represents activity id field - a task's unique identifier used by Primavera.BigDecimalgetActualCost()Gets a value of ActualCost.DurationgetActualDuration()Gets a value of ActualDuration.DategetActualFinish()Gets a value of ActualFinish.BigDecimalgetActualOvertimeCost()Gets a value of ActualOvertimeCost.DurationgetActualOvertimeWork()Gets a value of ActualOvertimeWork.DurationgetActualOvertimeWorkProtected()Gets a value of ActualOvertimeWorkProtected.DategetActualStart()Gets a value of ActualStart.DurationgetActualWork()Gets a value of ActualWork.DurationgetActualWorkProtected()Gets a value of ActualWorkProtected.doublegetACWP()Gets a value of ACWP.ResourceAssignmentCollectiongetAssignments()Gets a collection of resource assignments for this object.TaskBaselineCollectiongetBaselines()Gets the collection of baseline values of the task.doublegetBCWP()Gets a value of BCWP.doublegetBCWS()Gets a value of BCWS.BigDecimalgetBudgetCost()Gets a value of BudgetCost.DurationgetBudgetWork()Gets a value of BudgetWork.CalendargetCalendar()Gets a value of Calendar.TaskCollectiongetChildren()Gets a child task collection of this object.DategetCommitmentFinish()Gets a value of CommitmentFinish.DategetCommitmentStart()Gets a value of CommitmentStart.intgetCommitmentType()Gets a value of CommitmentType.DategetConstraintDate()Gets a value of ConstraintDate.intgetConstraintType()Gets a value of ConstraintType.StringgetContact()Gets a value of Contact.BigDecimalgetCost()Gets a value of Cost.doublegetCostVariance()Gets a value of CostVariance.DategetCreated()Gets a value of Created.doublegetCV()Gets a value of CV.DategetDeadline()Gets a value of Deadline.NullableBoolgetDisplayAsSummary()Gets a value indicating whether DisplayAsSummary is set or not.booleangetDisplayOnTimeline()Gets a value indicating whether DisplayOnTimeline is set or not.DurationgetDuration()Gets a value of Duration.bytegetDurationFormat()Gets a value of DurationFormat.StringgetDurationText()Gets a value of DurationText.DurationgetDurationVariance()Gets a value of DurationVariance.DategetEarlyFinish()Gets a value of EarlyFinish.DategetEarlyStart()Gets a value of EarlyStart.intgetEarnedValueMethod()Gets a value of EarnedValueMethod.ExtendedAttributeCollectiongetExtendedAttributes()Gets ExtendedAttributeCollection object containing the values of an extended attribute.intgetExternalId()Gets a value of ExternalId.StringgetExternalTaskProject()Gets a value of ExternalTaskProject.intgetExternalUid()Gets the external task's Unique identifier when the task is external.DategetFinish()Gets a value of Finish.doublegetFinishSlack()Gets a value of FinishSlack.StringgetFinishText()Gets a value of FinishText.DurationgetFinishVariance()Gets a value of FinishVariance.doublegetFixedCost()Gets a value of FixedCost.intgetFixedCostAccrual()Gets a value of FixedCostAccrual.doublegetFreeSlack()Gets a value of FreeSlack.StringgetGuid()Gets a value of Guid.NullableBoolgetHideBar()Gets a value indicating whether HideBar is set or not.StringgetHyperlink()Gets the title or explanatory text for a hyperlink associated with a task.StringgetHyperlinkAddress()Gets the address for a hyperlink associated with a task.StringgetHyperlinkSubAddress()Gets the specific location in a document in a hyperlink associated with a task.intgetId()Gets a value of Id.NullableBoolgetIgnoreResourceCalendar()Gets a value indicating whether IgnoreResourceCalendar is set or not.booleangetIgnoreWarnings()Gets a value indicating whether IgnoreWarnings is set or not.Iterable<com.aspose.tasks.IExtendedAttributeParent>getItems()DategetLateFinish()Gets a value of LateFinish.DategetLateStart()Gets a value of LateStart.NullableBoolgetLevelAssignments()Gets a value indicating whether LevelAssignments is set or not.NullableBoolgetLevelingCanSplit()Gets a value indicating whether LevelingCanSplit is set or not.DurationgetLevelingDelay()Gets a value of LevelingDelay.DurationgetManualDuration()Gets a value of ManualDuration.DategetManualFinish()Gets a value of ManualFinish.DategetManualStart()Gets a value of ManualStart.StringgetName()Gets a value of Name.StringgetNotesRTF()Gets a value of NotesRTF.StringgetNotesText()Gets a value of NotesText.OutlineCodeCollectiongetOutlineCodes()GetsOutlineCodeCollectionobject.intgetOutlineLevel()Gets a value of OutlineLevel.StringgetOutlineNumber()Gets a value of OutlineNumber.BigDecimalgetOvertimeCost()Gets a value of OvertimeCost.DurationgetOvertimeWork()Gets a value of OvertimeWork.ProjectgetParentProject()Gets the parent project of a task.TaskgetParentTask()Gets the parent task of a task.intgetPercentComplete()Gets a value of PercentComplete.intgetPercentWorkComplete()Gets a value of PercentWorkComplete.intgetPhysicalPercentComplete()Gets a value of PhysicalPercentComplete.TaskCollectiongetPredecessors()Gets aTaskCollectionobject which contains all predecessors of this Task object.DategetPreleveledFinish()Gets a value of PreleveledFinish.DategetPreleveledStart()Gets a value of PreleveledStart.PrimaveraTaskPropertiesgetPrimaveraProperties()Gets an object containing Primavera-specific properties for a task read from Primavera file.intgetPriority()Gets a value of Priority.RecurringTaskInfogetRecurringInfo()Gets the instance ofRecurringTaskInfoclass for the task which is a recurring task; if the task is not a recurring one then returns null;DurationgetRegularWork()Gets a value of RegularWork.BigDecimalgetRemainingCost()Gets a value of RemainingCost.DurationgetRemainingDuration()Gets a value of RemainingDuration.BigDecimalgetRemainingOvertimeCost()Gets a value of RemainingOvertimeCost.DurationgetRemainingOvertimeWork()Gets a value of RemainingOvertimeWork.DurationgetRemainingWork()Gets a value of RemainingWork.DategetResume()Gets a value of Resume.SplitPartCollectiongetSplitParts()Gets a SplitPart collection that represents the portions of a task.DategetStart()Gets a value of Start.doublegetStartSlack()Gets a value of StartSlack.StringgetStartText()Gets a value of StartText.DurationgetStartVariance()Gets a value of StartVariance.intgetStatus()Gets task status.StringgetStatusManager()Gets a value of StatusManager.DategetStop()Gets a value of Stop.StringgetSubprojectName()Gets a value of SubprojectName.TaskCollectiongetSuccessors()Gets aTaskCollectionobject which contains all successors of this Task object.doublegetSV()The earned value schedule variance, through the project status date.TimephasedDataCollectiongetTimephasedData()Gets a TimephasedDataCollection object of this task.TimephasedDataCollectiongetTimephasedData(Date start, Date end)ReturnsTimephasedDataCollectionobject withTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates.TimephasedDataCollectiongetTimephasedData(Date start, Date end, byte timephasedType)ReturnsTimephasedDataCollectionobject withTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specified time-phased data type.doublegetTotalSlack()Gets a value of TotalSlack.intgetType()Gets a value of Type.intgetUid()Gets a value of Uid.booleangetWarning()Gets a value indicating whether Warning is set or not.StringgetWBS()Gets a value of WBS.StringgetWBSLevel()Gets a value of WBSLevel.DurationgetWork()Gets a value of Work.DurationgetWorkVariance()Gets a value of WorkVariance.booleanhasChildren()Gets a value indicating that this task has children.inthashCode()Returns a hash code value for this Task.NullableBoolisActive()Gets a value indicating whether IsActive is set or not.NullableBoolisCritical()Gets a value indicating whether IsCritical is set or not.NullableBoolisEffortDriven()Gets a value indicating whether IsEffortDriven is set or not.NullableBoolisEstimated()Gets a value indicating whether IsEstimated is set or not.NullableBoolisExpanded()Gets a value indicating whether IsExpanded is set or not.booleanisExternalTask()Gets a value indicating whether IsExternalTask is set or not.NullableBoolisManual()Gets a value indicating whether IsManual is set or not.booleanisMarked()Gets a value indicating whether IsMarked is set or not.NullableBoolisMilestone()Gets a value indicating whether IsMilestone is set or not.NullableBoolisNull()Gets a value indicating whether IsNull is set or not.NullableBoolisOverallocated()Gets a value indicating whether IsOverallocated is set or not.NullableBoolisPublished()Gets a value indicating whether IsPublished is set or not.NullableBoolisRecurring()Gets a value indicating whether IsRecurring is set or not.NullableBoolisResumeValid()Gets a value indicating whether IsResumeValid is set or not.NullableBoolisRollup()Gets a value indicating whether IsRollup is set or not.booleanisSubproject()Gets a value indicating whether IsSubproject is set or not.NullableBoolisSubprojectReadOnly()Gets a value indicating whether IsSubprojectReadOnly is set or not.booleanisSummary()Gets a value indicating whether IsSummary is set or not.voidmoveToSibling(int beforeTaskId)Moves the current task at the same Outline Level before a task with the specified Id.voidmoveToSibling(Task beforeTask)Moves the current task at the same Outline Level before the specified task.voidoutlineIndent()Indents a task in the outline.voidoutlineOutdent()Promotes a task in the outline.Iterable<Task>selectAllChildTasks()Recursively collects all child tasks of this task.voidset(Key<Date,Byte> key, Date val)Maps the specified property to the specified value in this container.<T> voidset(Key<T,Byte> key, T val)Maps the specified property to the specified value in this container.voidsetActive(NullableBool value)Sets a value indicating whether IsActive is set or not.voidsetActivityId(String value)Represents activity id field - a task's unique identifier used by Primavera.voidsetActualCost(BigDecimal value)Sets a value of ActualCost.voidsetActualDuration(Duration value)Sets a value of ActualDuration.voidsetActualFinish(Date value)Sets a value of ActualFinish.voidsetActualOvertimeCost(BigDecimal value)Sets a value of ActualOvertimeCost.voidsetActualOvertimeWork(Duration value)Sets a value of ActualOvertimeWork.voidsetActualOvertimeWorkProtected(Duration value)Sets a value of ActualOvertimeWorkProtected.voidsetActualStart(Date value)Sets a value of ActualStart.voidsetActualWork(Duration value)Sets a value of ActualWork.voidsetActualWorkProtected(Duration value)Sets a value of ActualWorkProtected.voidsetACWP(double value)Sets a value of ACWP.voidsetBaselines(TaskBaselineCollection value)Sets the collection of baseline values of the task.voidsetBCWP(double value)Sets a value of BCWP.voidsetBCWS(double value)Sets a value of BCWS.voidsetBudgetCost(BigDecimal value)Sets a value of BudgetCost.voidsetBudgetWork(Duration value)Sets a value of BudgetWork.voidsetCalendar(Calendar value)Sets a value of Calendar.voidsetCommitmentFinish(Date value)Sets a value of CommitmentFinish.voidsetCommitmentStart(Date value)Sets a value of CommitmentStart.voidsetCommitmentType(int value)Sets a value of CommitmentType.voidsetConstraintDate(Date value)Sets a value of ConstraintDate.voidsetConstraintType(int value)Sets a value of ConstraintType.voidsetContact(String value)Sets a value of Contact.voidsetCost(BigDecimal value)Sets a value of Cost.voidsetCostVariance(double value)Sets a value of CostVariance.voidsetCreated(Date value)Sets a value of Created.voidsetCritical(NullableBool value)Sets a value indicating whether IsCritical is set or not.voidsetCV(double value)Sets a value of CV.voidsetDeadline(Date value)Sets a value of Deadline.voidsetDisplayAsSummary(NullableBool value)Sets a value indicating whether DisplayAsSummary is set or not.voidsetDisplayOnTimeline(boolean value)Sets a value indicating whether DisplayOnTimeline is set or not.voidsetDuration(Duration value)Sets a value of Duration.voidsetDurationFormat(byte value)Sets a value of DurationFormat.voidsetDurationText(String value)Sets a value of DurationText.voidsetDurationVariance(Duration value)Sets a value of DurationVariance.voidsetEarlyFinish(Date value)Sets a value of EarlyFinish.voidsetEarlyStart(Date value)Sets a value of EarlyStart.voidsetEarnedValueMethod(int value)Sets a value of EarnedValueMethod.voidsetEffortDriven(NullableBool value)Sets a value indicating whether IsEffortDriven is set or not.voidsetEstimated(NullableBool value)Sets a value indicating whether IsEstimated is set or not.voidsetExpanded(NullableBool value)Sets a value indicating whether IsExpanded is set or not.voidsetExternalId(int value)Sets a value of ExternalId.voidsetExternalTask(boolean value)Sets a value indicating whether IsExternalTask is set or not.voidsetExternalTaskProject(String value)Sets a value of ExternalTaskProject.voidsetExternalUid(int value)Set the external task's Unique identifier when the task is external.voidsetFinish(Date value)Sets a value of Finish.voidsetFinishSlack(double value)Sets a value of FinishSlack.voidsetFinishText(String value)Sets a value of FinishText.voidsetFinishVariance(Duration value)Sets a value of FinishVariance.voidsetFixedCost(double value)Sets a value of FixedCost.voidsetFixedCostAccrual(int value)Sets a value of FixedCostAccrual.voidsetFreeSlack(double value)Sets a value of FreeSlack.voidsetGuid(String value)Sets a value of Guid.voidsetHideBar(NullableBool value)Sets a value indicating whether HideBar is set or not.voidsetHyperlink(String value)Sets the title or explanatory text for a hyperlink associated with a task.voidsetHyperlinkAddress(String value)Sets the address for a hyperlink associated with a task.voidsetHyperlinkSubAddress(String value)Sets the specific location in a document in a hyperlink associated with a task.voidsetId(int value)Sets a value of Id.voidsetIgnoreResourceCalendar(NullableBool value)Sets a value indicating whether IgnoreResourceCalendar is set or not.voidsetIgnoreWarnings(boolean value)Sets a value indicating whether IgnoreWarnings is set or not.voidsetLateFinish(Date value)Sets a value of LateFinish.voidsetLateStart(Date value)Sets a value of LateStart.voidsetLevelAssignments(NullableBool value)Sets a value indicating whether LevelAssignments is set or not.voidsetLevelingCanSplit(NullableBool value)Sets a value indicating whether LevelingCanSplit is set or not.voidsetLevelingDelay(Duration value)Sets a value of LevelingDelay.voidsetManual(NullableBool value)Sets a value indicating whether IsManual is set or not.voidsetManualDuration(Duration value)Sets a value of ManualDuration.voidsetManualFinish(Date value)Sets a value of ManualFinish.voidsetManualStart(Date value)Sets a value of ManualStart.voidsetMarked(boolean value)Sets a value indicating whether IsMarked is set or not.voidsetMilestone(NullableBool value)Sets a value indicating whether IsMilestone is set or not.voidsetName(String value)Sets a value of Name.voidsetNotesRTF(String value)Sets a value of NotesRTF.voidsetNotesText(String value)Sets a value of NotesText.voidsetNull(NullableBool value)Sets a value indicating whether IsNull is set or not.voidsetOutlineCodes(OutlineCodeCollection value)SetsOutlineCodeCollectionobject.voidsetOutlineLevel(int value)Sets a value of OutlineLevel.voidsetOutlineNumber(String value)Sets a value of OutlineNumber.voidsetOverallocated(NullableBool value)Sets a value indicating whether IsOverallocated is set or not.voidsetOvertimeCost(BigDecimal value)Sets a value of OvertimeCost.voidsetOvertimeWork(Duration value)Sets a value of OvertimeWork.voidsetPercentComplete(int value)Sets a value of PercentComplete.voidsetPercentWorkComplete(int value)Sets a value of PercentWorkComplete.voidsetPhysicalPercentComplete(int value)Sets a value of PhysicalPercentComplete.voidsetPreleveledFinish(Date value)Sets a value of PreleveledFinish.voidsetPreleveledStart(Date value)Sets a value of PreleveledStart.voidsetPriority(int value)Sets a value of Priority.voidsetPublished(NullableBool value)Sets a value indicating whether IsPublished is set or not.voidsetRecurring(NullableBool value)Sets a value indicating whether IsRecurring is set or not.voidsetRegularWork(Duration value)Sets a value of RegularWork.voidsetRemainingCost(BigDecimal value)Sets a value of RemainingCost.voidsetRemainingDuration(Duration value)Sets a value of RemainingDuration.voidsetRemainingOvertimeCost(BigDecimal value)Sets a value of RemainingOvertimeCost.voidsetRemainingOvertimeWork(Duration value)Sets a value of RemainingOvertimeWork.voidsetRemainingWork(Duration value)Sets a value of RemainingWork.voidsetResume(Date value)Sets a value of Resume.voidsetResumeValid(NullableBool value)Sets a value indicating whether IsResumeValid is set or not.voidsetRollup(NullableBool value)Sets a value indicating whether IsRollup is set or not.voidsetStart(Date value)Sets a value of Start.voidsetStartSlack(double value)Sets a value of StartSlack.voidsetStartText(String value)Sets a value of StartText.voidsetStartVariance(Duration value)Sets a value of StartVariance.voidsetStatusManager(String value)Sets a value of StatusManager.voidsetStop(Date value)Sets a value of Stop.voidsetSubproject(boolean value)Sets a value indicating whether IsSubproject is set or not.voidsetSubprojectName(String value)Sets a value of SubprojectName.voidsetSubprojectReadOnly(NullableBool value)Sets a value indicating whether IsSubprojectReadOnly is set or not.voidsetSummary(boolean value)Sets a value indicating whether IsSummary is set or not.voidsetSV(double value)The earned value schedule variance, through the project status date.voidsetTimephasedData(TimephasedDataCollection value)Sets a TimephasedDataCollection object of this task.voidsetTotalSlack(double value)Sets a value of TotalSlack.voidsetType(int value)Sets a value of Type.voidsetUid(int value)Sets a value of Uid.voidsetWarning(boolean value)Sets a value indicating whether Warning is set or not.voidsetWBS(String value)Sets a value of WBS.voidsetWBSLevel(String value)Sets a value of WBSLevel.voidsetWork(Duration value)Sets a value of Work.voidsetWorkVariance(Duration value)Sets a value of WorkVariance.StringtoString()Returns short string representation of a task.
-
-
-
Method Detail
-
deepClone
public final Object deepClone()
Creates full copy of a task without subtasks.
- Returns:
- Created copy of a task.
-
delete
public final void delete()
Deletes a task from parent project tasks collection and all its assignments.
-
equals
public final boolean equals(Task other)
Returns a value indicating whether this instance is equal to a specified task.
- Parameters:
other- The specified task to compare with this instance.- Returns:
- returns true if the specified task and this instance have equal unique ids.
-
equals
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
-
get
public final <T> T get(Key<T,Byte> key)
Returns the value to which the property is mapped in this container.
- Parameters:
key- the specified property key.Tskfor getting the property key.- Returns:
- the value to which the property is mapped in this container.
-
getACWP
public final double getACWP()
Gets a value of ACWP.
- Returns:
- a value of ACWP.
-
setACWP
public final void setACWP(double value)
Sets a value of ACWP.
- Parameters:
value- a value of ACWP.
-
getActivityId
public final String getActivityId()
Represents activity id field - a task's unique identifier used by Primavera. (only applicable to Primavera projects).
- Returns:
- a value of ActivityId.
-
setActivityId
public final void setActivityId(String value)
Represents activity id field - a task's unique identifier used by Primavera. (only applicable to Primavera projects).
- Parameters:
value- a value of ActivityId.
-
getActualCost
public final BigDecimal getActualCost()
Gets a value of ActualCost.
- Returns:
- a value of ActualCost.
-
setActualCost
public final void setActualCost(BigDecimal value)
Sets a value of ActualCost.
- Parameters:
value- a value of ActualCost.
-
getActualDuration
public final Duration getActualDuration()
Gets a value of ActualDuration.
- Returns:
- a value of ActualDuration.
-
setActualDuration
public final void setActualDuration(Duration value)
Sets a value of ActualDuration.
- Parameters:
value- a value of ActualDuration.
-
getActualFinish
public final Date getActualFinish()
Gets a value of ActualFinish.
- Returns:
- a value of ActualFinish.
-
setActualFinish
public final void setActualFinish(Date value)
Sets a value of ActualFinish.
- Parameters:
value- a value of ActualFinish.
-
getActualOvertimeCost
public final BigDecimal getActualOvertimeCost()
Gets a value of ActualOvertimeCost.
- Returns:
- a value of ActualOvertimeCost.
-
setActualOvertimeCost
public final void setActualOvertimeCost(BigDecimal value)
Sets a value of ActualOvertimeCost.
- Parameters:
value- a value of ActualOvertimeCost.
-
getActualOvertimeWork
public final Duration getActualOvertimeWork()
Gets a value of ActualOvertimeWork.
- Returns:
- a value of ActualOvertimeWork.
-
setActualOvertimeWork
public final void setActualOvertimeWork(Duration value)
Sets a value of ActualOvertimeWork.
- Parameters:
value- a value of ActualOvertimeWork.
-
getActualOvertimeWorkProtected
public final Duration getActualOvertimeWorkProtected()
Gets a value of ActualOvertimeWorkProtected.
- Returns:
- a value of ActualOvertimeWorkProtected.
-
setActualOvertimeWorkProtected
public final void setActualOvertimeWorkProtected(Duration value)
Sets a value of ActualOvertimeWorkProtected.
- Parameters:
value- a value of ActualOvertimeWorkProtected.
-
getActualStart
public final Date getActualStart()
Gets a value of ActualStart.
- Returns:
- a value of ActualStart.
-
setActualStart
public final void setActualStart(Date value)
Sets a value of ActualStart.
- Parameters:
value- a value of ActualStart.
-
getActualWork
public final Duration getActualWork()
Gets a value of ActualWork.
- Returns:
- a value of ActualWork.
-
setActualWork
public final void setActualWork(Duration value)
Sets a value of ActualWork.
- Parameters:
value- a value of ActualWork.
-
getActualWorkProtected
public final Duration getActualWorkProtected()
Gets a value of ActualWorkProtected.
- Returns:
- a value of ActualWorkProtected.
-
setActualWorkProtected
public final void setActualWorkProtected(Duration value)
Sets a value of ActualWorkProtected.
- Parameters:
value- a value of ActualWorkProtected.
-
getAssignments
public final ResourceAssignmentCollection getAssignments()
Gets a collection of resource assignments for this object.
- Returns:
- a collection of resource assignments for this object.
-
getBCWP
public final double getBCWP()
Gets a value of BCWP.
- Returns:
- a value of BCWP.
-
setBCWP
public final void setBCWP(double value)
Sets a value of BCWP.
- Parameters:
value- a value of BCWP.
-
getBCWS
public final double getBCWS()
Gets a value of BCWS.
- Returns:
- a value of BCWS.
-
setBCWS
public final void setBCWS(double value)
Sets a value of BCWS.
- Parameters:
value- a value of BCWS.
-
getBaselines
public final TaskBaselineCollection getBaselines()
Gets the collection of baseline values of the task.
- Returns:
- the collection of baseline values of the task.
-
setBaselines
public final void setBaselines(TaskBaselineCollection value)
Sets the collection of baseline values of the task.
- Parameters:
value- the collection of baseline values of the task.
-
getBudgetCost
public final BigDecimal getBudgetCost()
Gets a value of BudgetCost.
- Returns:
- a value of BudgetCost.
-
setBudgetCost
public final void setBudgetCost(BigDecimal value)
Sets a value of BudgetCost.
- Parameters:
value- a value of BudgetCost.
-
getBudgetWork
public final Duration getBudgetWork()
Gets a value of BudgetWork.
- Returns:
- a value of BudgetWork.
-
setBudgetWork
public final void setBudgetWork(Duration value)
Sets a value of BudgetWork.
- Parameters:
value- a value of BudgetWork.
-
getCV
public final double getCV()
Gets a value of CV.
- Returns:
- a value of CV.
-
setCV
public final void setCV(double value)
Sets a value of CV.
- Parameters:
value- a value of CV.
-
getCalendar
public final Calendar getCalendar()
Gets a value of Calendar.
- Returns:
- a value of Calendar.
-
setCalendar
public final void setCalendar(Calendar value)
Sets a value of Calendar.
- Parameters:
value- a value of Calendar.
-
getChildren
public final TaskCollection getChildren()
Gets a child task collection of this object. TaskCollection object which represents children tasks.
- Returns:
- a child task collection of this object.
-
getCommitmentFinish
public final Date getCommitmentFinish()
Gets a value of CommitmentFinish.
- Returns:
- a value of CommitmentFinish.
-
setCommitmentFinish
public final void setCommitmentFinish(Date value)
Sets a value of CommitmentFinish.
- Parameters:
value- a value of CommitmentFinish.
-
getCommitmentStart
public final Date getCommitmentStart()
Gets a value of CommitmentStart.
- Returns:
- a value of CommitmentStart.
-
setCommitmentStart
public final void setCommitmentStart(Date value)
Sets a value of CommitmentStart.
- Parameters:
value- a value of CommitmentStart.
-
getCommitmentType
public final int getCommitmentType()
Gets a value of CommitmentType.
- Returns:
- a value of CommitmentType.
-
setCommitmentType
public final void setCommitmentType(int value)
Sets a value of CommitmentType.
- Parameters:
value- a value of CommitmentType.
-
getConstraintDate
public final Date getConstraintDate()
Gets a value of ConstraintDate.
- Returns:
- a value of ConstraintDate.
-
setConstraintDate
public final void setConstraintDate(Date value)
Sets a value of ConstraintDate.
- Parameters:
value- a value of ConstraintDate.
-
getConstraintType
public final int getConstraintType()
Gets a value of ConstraintType.
- Returns:
- a value of ConstraintType.
-
setConstraintType
public final void setConstraintType(int value)
Sets a value of ConstraintType.
- Parameters:
value- a value of ConstraintType.
-
getContact
public final String getContact()
Gets a value of Contact.
- Returns:
- a value of Contact.
-
setContact
public final void setContact(String value)
Sets a value of Contact.
- Parameters:
value- a value of Contact.
-
getCost
public final BigDecimal getCost()
Gets a value of Cost.
- Returns:
- a value of Cost.
-
setCost
public final void setCost(BigDecimal value)
Sets a value of Cost.
- Parameters:
value- a value of Cost.
-
getCostVariance
public final double getCostVariance()
Gets a value of CostVariance.
- Returns:
- a value of CostVariance.
-
setCostVariance
public final void setCostVariance(double value)
Sets a value of CostVariance.
- Parameters:
value- a value of CostVariance.
-
getCreated
public final Date getCreated()
Gets a value of Created.
- Returns:
- a value of Created.
-
setCreated
public final void setCreated(Date value)
Sets a value of Created.
- Parameters:
value- a value of Created.
-
getDeadline
public final Date getDeadline()
Gets a value of Deadline.
- Returns:
- a value of Deadline.
-
setDeadline
public final void setDeadline(Date value)
Sets a value of Deadline.
- Parameters:
value- a value of Deadline.
-
getDisplayAsSummary
public final NullableBool getDisplayAsSummary()
Gets a value indicating whether DisplayAsSummary is set or not.
- Returns:
- a value indicating whether DisplayAsSummary is set or not.
-
setDisplayAsSummary
public final void setDisplayAsSummary(NullableBool value)
Sets a value indicating whether DisplayAsSummary is set or not.
- Parameters:
value- a value indicating whether DisplayAsSummary is set or not.
-
getDisplayOnTimeline
public final boolean getDisplayOnTimeline()
Gets a value indicating whether DisplayOnTimeline is set or not.
- Returns:
- a value indicating whether DisplayOnTimeline is set or not.
-
setDisplayOnTimeline
public final void setDisplayOnTimeline(boolean value)
Sets a value indicating whether DisplayOnTimeline is set or not.
- Parameters:
value- a value indicating whether DisplayOnTimeline is set or not.
-
getDuration
public final Duration getDuration()
Gets a value of Duration.
- Returns:
- a value of Duration.
-
setDuration
public final void setDuration(Duration value)
Sets a value of Duration.
- Parameters:
value- a value of Duration.
-
getDurationFormat
public final byte getDurationFormat()
Gets a value of DurationFormat.
- Returns:
- a value of DurationFormat.
-
setDurationFormat
public final void setDurationFormat(byte value)
Sets a value of DurationFormat.
- Parameters:
value- a value of DurationFormat.
-
getDurationText
public final String getDurationText()
Gets a value of DurationText.
- Returns:
- a value of DurationText.
-
setDurationText
public final void setDurationText(String value)
Sets a value of DurationText.
- Parameters:
value- a value of DurationText.
-
getDurationVariance
public final Duration getDurationVariance()
Gets a value of DurationVariance.
- Returns:
- a value of DurationVariance.
-
setDurationVariance
public final void setDurationVariance(Duration value)
Sets a value of DurationVariance.
- Parameters:
value- a value of DurationVariance.
-
getEarlyFinish
public final Date getEarlyFinish()
Gets a value of EarlyFinish.
- Returns:
- a value of EarlyFinish.
-
setEarlyFinish
public final void setEarlyFinish(Date value)
Sets a value of EarlyFinish.
- Parameters:
value- a value of EarlyFinish.
-
getEarlyStart
public final Date getEarlyStart()
Gets a value of EarlyStart.
- Returns:
- a value of EarlyStart.
-
setEarlyStart
public final void setEarlyStart(Date value)
Sets a value of EarlyStart.
- Parameters:
value- a value of EarlyStart.
-
getEarnedValueMethod
public final int getEarnedValueMethod()
Gets a value of EarnedValueMethod.
- Returns:
- a value of EarnedValueMethod.
-
setEarnedValueMethod
public final void setEarnedValueMethod(int value)
Sets a value of EarnedValueMethod.
- Parameters:
value- a value of EarnedValueMethod.
-
getExtendedAttributes
public final ExtendedAttributeCollection getExtendedAttributes()
Gets ExtendedAttributeCollection object containing the values of an extended attribute.
Two pieces of data are necessary - a pointer back to the extended attribute table which is specified either by the unique ID or the Field ID, and the value which is specified either with the value, or a pointer back to the value list.- Returns:
- ExtendedAttributeCollection object containing the values of an extended attribute.
-
getExternalId
public final int getExternalId()
Gets a value of ExternalId.
- Returns:
- a value of ExternalId.
-
setExternalId
public final void setExternalId(int value)
Sets a value of ExternalId.
- Parameters:
value- a value of ExternalId.
-
getExternalTaskProject
public final String getExternalTaskProject()
Gets a value of ExternalTaskProject.
- Returns:
- a value of ExternalTaskProject.
-
setExternalTaskProject
public final void setExternalTaskProject(String value)
Sets a value of ExternalTaskProject.
- Parameters:
value- a value of ExternalTaskProject.
-
getExternalUid
public final int getExternalUid()
Gets the external task's Unique identifier when the task is external.
- Returns:
- the external task's Unique identifier when the task is external.
-
setExternalUid
public final void setExternalUid(int value)
Set the external task's Unique identifier when the task is external.
- Parameters:
value- the external task's Unique identifier when the task is external.
-
getFinish
public final Date getFinish()
Gets a value of Finish.
- Returns:
- a value of Finish.
-
setFinish
public final void setFinish(Date value)
Sets a value of Finish.
- Parameters:
value- a value of Finish.
-
getFinishSlack
public final double getFinishSlack()
Gets a value of FinishSlack.
- Returns:
- a value of FinishSlack.
-
setFinishSlack
public final void setFinishSlack(double value)
Sets a value of FinishSlack.
- Parameters:
value- a value of FinishSlack.
-
getFinishText
public final String getFinishText()
Gets a value of FinishText.
- Returns:
- a value of FinishText.
-
setFinishText
public final void setFinishText(String value)
Sets a value of FinishText.
- Parameters:
value- a value of FinishText.
-
getFinishVariance
public final Duration getFinishVariance()
Gets a value of FinishVariance.
- Returns:
- a value of FinishVariance.
-
setFinishVariance
public final void setFinishVariance(Duration value)
Sets a value of FinishVariance.
- Parameters:
value- a value of FinishVariance.
-
getFixedCost
public final double getFixedCost()
Gets a value of FixedCost.
- Returns:
- a value of FixedCost.
-
setFixedCost
public final void setFixedCost(double value)
Sets a value of FixedCost.
- Parameters:
value- a value of FixedCost.
-
getFixedCostAccrual
public final int getFixedCostAccrual()
Gets a value of FixedCostAccrual.
- Returns:
- a value of FixedCostAccrual.
-
setFixedCostAccrual
public final void setFixedCostAccrual(int value)
Sets a value of FixedCostAccrual.
- Parameters:
value- a value of FixedCostAccrual.
-
getFreeSlack
public final double getFreeSlack()
Gets a value of FreeSlack.
- Returns:
- a value of FreeSlack.
-
setFreeSlack
public final void setFreeSlack(double value)
Sets a value of FreeSlack.
- Parameters:
value- a value of FreeSlack.
-
getGuid
public final String getGuid()
Gets a value of Guid.
- Returns:
- a value of Guid.
-
setGuid
public final void setGuid(String value)
Sets a value of Guid.
- Parameters:
value- a value of Guid.
-
getHideBar
public final NullableBool getHideBar()
Gets a value indicating whether HideBar is set or not.
- Returns:
- a value indicating whether HideBar is set or not.
-
setHideBar
public final void setHideBar(NullableBool value)
Sets a value indicating whether HideBar is set or not.
- Parameters:
value- a value indicating whether HideBar is set or not.
-
getHyperlink
public final String getHyperlink()
Gets the title or explanatory text for a hyperlink associated with a task.
- Returns:
- the title or explanatory text for a hyperlink associated with a task.
-
setHyperlink
public final void setHyperlink(String value)
Sets the title or explanatory text for a hyperlink associated with a task.
- Parameters:
value- the title or explanatory text for a hyperlink associated with a task.
-
getHyperlinkAddress
public final String getHyperlinkAddress()
Gets the address for a hyperlink associated with a task.
The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.- Returns:
- the address for a hyperlink associated with a task.
-
setHyperlinkAddress
public final void setHyperlinkAddress(String value)
Sets the address for a hyperlink associated with a task.
The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.- Parameters:
value- the address for a hyperlink associated with a task.
-
getHyperlinkSubAddress
public final String getHyperlinkSubAddress()
Gets the specific location in a document in a hyperlink associated with a task.
The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.- Returns:
- the specific location in a document in a hyperlink associated with a task.
-
setHyperlinkSubAddress
public final void setHyperlinkSubAddress(String value)
Sets the specific location in a document in a hyperlink associated with a task.
The full address (Hyperlink Href in Microsoft Project) of the hyperlink is a concatenation of HyperlinkAddress and HyperlinkSubAddress.- Parameters:
value- the specific location in a document in a hyperlink associated with a task.
-
getId
public final int getId()
Gets a value of Id.
- Returns:
- a value of Id.
-
setId
public final void setId(int value)
Sets a value of Id.
- Parameters:
value- a value of Id.
-
getIgnoreResourceCalendar
public final NullableBool getIgnoreResourceCalendar()
Gets a value indicating whether IgnoreResourceCalendar is set or not.
- Returns:
- a value indicating whether IgnoreResourceCalendar is set or not.
-
setIgnoreResourceCalendar
public final void setIgnoreResourceCalendar(NullableBool value)
Sets a value indicating whether IgnoreResourceCalendar is set or not.
- Parameters:
value- a value indicating whether IgnoreResourceCalendar is set or not.
-
getIgnoreWarnings
public final boolean getIgnoreWarnings()
Gets a value indicating whether IgnoreWarnings is set or not.
- Returns:
- a value indicating whether IgnoreWarnings is set or not.
-
setIgnoreWarnings
public final void setIgnoreWarnings(boolean value)
Sets a value indicating whether IgnoreWarnings is set or not.
- Parameters:
value- a value indicating whether IgnoreWarnings is set or not.
-
getItems
public final Iterable<com.aspose.tasks.IExtendedAttributeParent> getItems()
- Returns:
-
getLateFinish
public final Date getLateFinish()
Gets a value of LateFinish.
- Returns:
- a value of LateFinish.
-
setLateFinish
public final void setLateFinish(Date value)
Sets a value of LateFinish.
- Parameters:
value- a value of LateFinish.
-
getLateStart
public final Date getLateStart()
Gets a value of LateStart.
- Returns:
- a value of LateStart.
-
setLateStart
public final void setLateStart(Date value)
Sets a value of LateStart.
- Parameters:
value- a value of LateStart.
-
getLevelAssignments
public final NullableBool getLevelAssignments()
Gets a value indicating whether LevelAssignments is set or not.
- Returns:
- a value indicating whether LevelAssignments is set or not.
-
setLevelAssignments
public final void setLevelAssignments(NullableBool value)
Sets a value indicating whether LevelAssignments is set or not.
- Parameters:
value- a value indicating whether LevelAssignments is set or not.
-
getLevelingCanSplit
public final NullableBool getLevelingCanSplit()
Gets a value indicating whether LevelingCanSplit is set or not.
- Returns:
- a value indicating whether LevelingCanSplit is set or not.
-
setLevelingCanSplit
public final void setLevelingCanSplit(NullableBool value)
Sets a value indicating whether LevelingCanSplit is set or not.
- Parameters:
value- a value indicating whether LevelingCanSplit is set or not.
-
getLevelingDelay
public final Duration getLevelingDelay()
Gets a value of LevelingDelay.
- Returns:
- a value of LevelingDelay.
-
setLevelingDelay
public final void setLevelingDelay(Duration value)
Sets a value of LevelingDelay.
- Parameters:
value- a value of LevelingDelay.
-
getManualDuration
public final Duration getManualDuration()
Gets a value of ManualDuration.
- Returns:
- a value of ManualDuration.
-
setManualDuration
public final void setManualDuration(Duration value)
Sets a value of ManualDuration.
- Parameters:
value- a value of ManualDuration.
-
getManualFinish
public final Date getManualFinish()
Gets a value of ManualFinish.
- Returns:
- a value of ManualFinish.
-
setManualFinish
public final void setManualFinish(Date value)
Sets a value of ManualFinish.
- Parameters:
value- a value of ManualFinish.
-
getManualStart
public final Date getManualStart()
Gets a value of ManualStart.
- Returns:
- a value of ManualStart.
-
setManualStart
public final void setManualStart(Date value)
Sets a value of ManualStart.
- Parameters:
value- a value of ManualStart.
-
getName
public final String getName()
Gets a value of Name.
- Returns:
- a value of Name.
-
setName
public final void setName(String value)
Sets a value of Name.
- Parameters:
value- a value of Name.
-
getNotesRTF
public final String getNotesRTF()
Gets a value of NotesRTF.
- Returns:
- a value of NotesRTF.
-
setNotesRTF
public final void setNotesRTF(String value)
Sets a value of NotesRTF.
- Parameters:
value- a value of NotesRTF.
-
getNotesText
public final String getNotesText()
Gets a value of NotesText.
- Returns:
- a value of NotesText.
-
setNotesText
public final void setNotesText(String value)
Sets a value of NotesText.
- Parameters:
value- a value of NotesText.
-
getOutlineCodes
public final OutlineCodeCollection getOutlineCodes()
Gets
OutlineCodeCollectionobject.
Two pieces of data are necessary - a pointer to the outline code table that is specified by the FieldID, and the value that is specified either by the ValueID or ValueGUID pointer to the value list.- Returns:
OutlineCodeCollectionobject.
-
setOutlineCodes
public final void setOutlineCodes(OutlineCodeCollection value)
Sets
OutlineCodeCollectionobject.
Two pieces of data are necessary - a pointer to the outline code table that is specified by the FieldID, and the value that is specified either by the ValueID or ValueGUID pointer to the value list.- Parameters:
value-OutlineCodeCollectionobject.
-
getOutlineLevel
public final int getOutlineLevel()
Gets a value of OutlineLevel.
- Returns:
- a value of OutlineLevel.
-
setOutlineLevel
public final void setOutlineLevel(int value)
Sets a value of OutlineLevel.
- Parameters:
value- a value of OutlineLevel.
-
getOutlineNumber
public final String getOutlineNumber()
Gets a value of OutlineNumber.
- Returns:
- a value of OutlineNumber.
-
setOutlineNumber
public final void setOutlineNumber(String value)
Sets a value of OutlineNumber.
- Parameters:
value- a value of OutlineNumber.
-
getOvertimeCost
public final BigDecimal getOvertimeCost()
Gets a value of OvertimeCost.
- Returns:
- a value of OvertimeCost.
-
setOvertimeCost
public final void setOvertimeCost(BigDecimal value)
Sets a value of OvertimeCost.
- Parameters:
value- a value of OvertimeCost.
-
getOvertimeWork
public final Duration getOvertimeWork()
Gets a value of OvertimeWork.
- Returns:
- a value of OvertimeWork.
-
setOvertimeWork
public final void setOvertimeWork(Duration value)
Sets a value of OvertimeWork.
- Parameters:
value- a value of OvertimeWork.
-
getParentProject
public final Project getParentProject()
Gets the parent project of a task.
Call Project.UpdateReferences to update these properties.- Returns:
- the parent project of a task.
-
getParentTask
public final Task getParentTask()
Gets the parent task of a task.
- Returns:
- the parent task of a task.
-
getPercentComplete
public final int getPercentComplete()
Gets a value of PercentComplete.
- Returns:
- a value of PercentComplete.
-
setPercentComplete
public final void setPercentComplete(int value)
Sets a value of PercentComplete.
- Parameters:
value- a value of PercentComplete.
-
getPercentWorkComplete
public final int getPercentWorkComplete()
Gets a value of PercentWorkComplete.
- Returns:
- a value of PercentWorkComplete.
-
setPercentWorkComplete
public final void setPercentWorkComplete(int value)
Sets a value of PercentWorkComplete.
- Parameters:
value- a value of PercentWorkComplete.
-
getPhysicalPercentComplete
public final int getPhysicalPercentComplete()
Gets a value of PhysicalPercentComplete.
- Returns:
- a value of PhysicalPercentComplete.
-
setPhysicalPercentComplete
public final void setPhysicalPercentComplete(int value)
Sets a value of PhysicalPercentComplete.
- Parameters:
value- a value of PhysicalPercentComplete.
-
getPredecessors
public final TaskCollection getPredecessors()
Gets a
TaskCollectionobject which contains all predecessors of this Task object.- Returns:
- Read-only instance of
TaskCollectionclass.
-
getPreleveledFinish
public final Date getPreleveledFinish()
Gets a value of PreleveledFinish.
- Returns:
- a value of PreleveledFinish.
-
setPreleveledFinish
public final void setPreleveledFinish(Date value)
Sets a value of PreleveledFinish.
- Parameters:
value- a value of PreleveledFinish.
-
getPreleveledStart
public final Date getPreleveledStart()
Gets a value of PreleveledStart.
- Returns:
- a value of PreleveledStart.
-
setPreleveledStart
public final void setPreleveledStart(Date value)
Sets a value of PreleveledStart.
- Parameters:
value- a value of PreleveledStart.
-
getPrimaveraProperties
public final PrimaveraTaskProperties getPrimaveraProperties()
Gets an object containing Primavera-specific properties for a task read from Primavera file.
- Returns:
- an object containing Primavera-specific properties for a task read from Primavera file.
-
getPriority
public final int getPriority()
Gets a value of Priority.
- Returns:
- a value of Priority.
-
setPriority
public final void setPriority(int value)
Sets a value of Priority.
- Parameters:
value- a value of Priority.
-
getRecurringInfo
public final RecurringTaskInfo getRecurringInfo()
Gets the instance of
RecurringTaskInfoclass for the task which is a recurring task; if the task is not a recurring one then returns null;
The info for the instance ofRecurringTaskInfois present in mpp file format only.- Returns:
- the instance of
RecurringTaskInfoclass for the task which is a recurring task; if the task is not a recurring one then returns null;
-
getRegularWork
public final Duration getRegularWork()
Gets a value of RegularWork.
- Returns:
- a value of RegularWork.
-
setRegularWork
public final void setRegularWork(Duration value)
Sets a value of RegularWork.
- Parameters:
value- a value of RegularWork.
-
getRemainingCost
public final BigDecimal getRemainingCost()
Gets a value of RemainingCost.
- Returns:
- a value of RemainingCost.
-
setRemainingCost
public final void setRemainingCost(BigDecimal value)
Sets a value of RemainingCost.
- Parameters:
value- a value of RemainingCost.
-
getRemainingDuration
public final Duration getRemainingDuration()
Gets a value of RemainingDuration.
- Returns:
- a value of RemainingDuration.
-
setRemainingDuration
public final void setRemainingDuration(Duration value)
Sets a value of RemainingDuration.
- Parameters:
value- a value of RemainingDuration.
-
getRemainingOvertimeCost
public final BigDecimal getRemainingOvertimeCost()
Gets a value of RemainingOvertimeCost.
- Returns:
- a value of RemainingOvertimeCost.
-
setRemainingOvertimeCost
public final void setRemainingOvertimeCost(BigDecimal value)
Sets a value of RemainingOvertimeCost.
- Parameters:
value- a value of RemainingOvertimeCost.
-
getRemainingOvertimeWork
public final Duration getRemainingOvertimeWork()
Gets a value of RemainingOvertimeWork.
- Returns:
- a value of RemainingOvertimeWork.
-
setRemainingOvertimeWork
public final void setRemainingOvertimeWork(Duration value)
Sets a value of RemainingOvertimeWork.
- Parameters:
value- a value of RemainingOvertimeWork.
-
getRemainingWork
public final Duration getRemainingWork()
Gets a value of RemainingWork.
- Returns:
- a value of RemainingWork.
-
setRemainingWork
public final void setRemainingWork(Duration value)
Sets a value of RemainingWork.
- Parameters:
value- a value of RemainingWork.
-
getResume
public final Date getResume()
Gets a value of Resume.
- Returns:
- a value of Resume.
-
setResume
public final void setResume(Date value)
Sets a value of Resume.
- Parameters:
value- a value of Resume.
-
getSV
public final double getSV()
The earned value schedule variance, through the project status date. Schedule variance (SV) is the difference between the BCWP and the BCWS.
- Returns:
- a value of SV.
-
setSV
public final void setSV(double value)
The earned value schedule variance, through the project status date. Schedule variance (SV) is the difference between the BCWP and the BCWS.
- Parameters:
value- a value of SV.
-
getSplitParts
public final SplitPartCollection getSplitParts()
Gets a SplitPart collection that represents the portions of a task.
- Returns:
- a SplitPart collection that represents the portions of a task.
-
getStart
public final Date getStart()
Gets a value of Start.
- Returns:
- a value of Start.
-
setStart
public final void setStart(Date value)
Sets a value of Start.
- Parameters:
value- a value of Start.
-
getStartSlack
public final double getStartSlack()
Gets a value of StartSlack.
- Returns:
- a value of StartSlack.
-
setStartSlack
public final void setStartSlack(double value)
Sets a value of StartSlack.
- Parameters:
value- a value of StartSlack.
-
getStartText
public final String getStartText()
Gets a value of StartText.
- Returns:
- a value of StartText.
-
setStartText
public final void setStartText(String value)
Sets a value of StartText.
- Parameters:
value- a value of StartText.
-
getStartVariance
public final Duration getStartVariance()
Gets a value of StartVariance.
- Returns:
- a value of StartVariance.
-
setStartVariance
public final void setStartVariance(Duration value)
Sets a value of StartVariance.
- Parameters:
value- a value of StartVariance.
-
getStatus
public final int getStatus()
Gets task status.
- Returns:
- task status.
-
getStatusManager
public final String getStatusManager()
Gets a value of StatusManager.
- Returns:
- a value of StatusManager.
-
setStatusManager
public final void setStatusManager(String value)
Sets a value of StatusManager.
- Parameters:
value- a value of StatusManager.
-
getStop
public final Date getStop()
Gets a value of Stop.
- Returns:
- a value of Stop.
-
setStop
public final void setStop(Date value)
Sets a value of Stop.
- Parameters:
value- a value of Stop.
-
getSubprojectName
public final String getSubprojectName()
Gets a value of SubprojectName.
- Returns:
- a value of SubprojectName.
-
setSubprojectName
public final void setSubprojectName(String value)
Sets a value of SubprojectName.
- Parameters:
value- a value of SubprojectName.
-
getSuccessors
public final TaskCollection getSuccessors()
Gets a
TaskCollectionobject which contains all successors of this Task object.- Returns:
- Read-only instance of
TaskCollectionclass.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData()
Gets a TimephasedDataCollection object of this task. The time phased data block associated with a task.
Reading supported for XML format only.- Returns:
- a TimephasedDataCollection object of this task.
-
setTimephasedData
public final void setTimephasedData(TimephasedDataCollection value)
Sets a TimephasedDataCollection object of this task. The time phased data block associated with a task.
Reading supported for XML format only.- Parameters:
value- a TimephasedDataCollection object of this task.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end, byte timephasedType)
Returns
TimephasedDataCollectionobject withTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specified time-phased data type.- Parameters:
start- The start date for the time phased data.end- The end date for the time phased data.timephasedType- The type of time phased data (TimephasedDataType).- Returns:
- A
TimephasedDataCollectionobject withTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates of specified timephased data type.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns
TimephasedDataCollectionobject withTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) values within given start and end dates.- Parameters:
start- The start date for the time phased data.end- The end date for the time phased data.- Returns:
- List of
TimephasedDatato be filled in.
-
getTotalSlack
public final double getTotalSlack()
Gets a value of TotalSlack.
- Returns:
- a value of TotalSlack.
-
setTotalSlack
public final void setTotalSlack(double value)
Sets a value of TotalSlack.
- Parameters:
value- a value of TotalSlack.
-
getType
public final int getType()
Gets a value of Type.
- Returns:
- a value of Type.
-
setType
public final void setType(int value)
Sets a value of Type.
- Parameters:
value- a value of Type.
-
getUid
public final int getUid()
Gets a value of Uid.
- Returns:
- a value of Uid.
-
setUid
public final void setUid(int value)
Sets a value of Uid.
- Parameters:
value- a value of Uid.
-
getWBS
public final String getWBS()
Gets a value of WBS.
- Returns:
- a value of WBS.
-
setWBS
public final void setWBS(String value)
Sets a value of WBS.
- Parameters:
value- a value of WBS.
-
getWBSLevel
public final String getWBSLevel()
Gets a value of WBSLevel.
- Returns:
- a value of WBSLevel.
-
setWBSLevel
public final void setWBSLevel(String value)
Sets a value of WBSLevel.
- Parameters:
value- a value of WBSLevel.
-
getWarning
public final boolean getWarning()
Gets a value indicating whether Warning is set or not.
- Returns:
- a value indicating whether Warning is set or not.
-
setWarning
public final void setWarning(boolean value)
Sets a value indicating whether Warning is set or not.
- Parameters:
value- a value indicating whether Warning is set or not.
-
getWork
public final Duration getWork()
Gets a value of Work.
- Returns:
- a value of Work.
-
setWork
public final void setWork(Duration value)
Sets a value of Work.
- Parameters:
value- a value of Work.
-
getWorkVariance
public final Duration getWorkVariance()
Gets a value of WorkVariance.
- Returns:
- a value of WorkVariance.
-
setWorkVariance
public final void setWorkVariance(Duration value)
Sets a value of WorkVariance.
- Parameters:
value- a value of WorkVariance.
-
hasChildren
public final boolean hasChildren()
Gets a value indicating that this task has children.- Returns:
- a value indicating that this task has children.
-
hashCode
public int hashCode()
Returns a hash code value for this Task.
-
isActive
public final NullableBool isActive()
Gets a value indicating whether IsActive is set or not.
- Returns:
- a value indicating whether IsActive is set or not.
-
isCritical
public final NullableBool isCritical()
Gets a value indicating whether IsCritical is set or not.
- Returns:
- a value indicating whether IsCritical is set or not.
-
isEffortDriven
public final NullableBool isEffortDriven()
Gets a value indicating whether IsEffortDriven is set or not.
- Returns:
- a value indicating whether IsEffortDriven is set or not.
-
isEstimated
public final NullableBool isEstimated()
Gets a value indicating whether IsEstimated is set or not.
- Returns:
- a value indicating whether IsEstimated is set or not.
-
isExpanded
public final NullableBool isExpanded()
Gets a value indicating whether IsExpanded is set or not.
- Returns:
- a value indicating whether IsExpanded is set or not.
-
isExternalTask
public final boolean isExternalTask()
Gets a value indicating whether IsExternalTask is set or not.
- Returns:
- a value indicating whether IsExternalTask is set or not.
-
setExternalTask
public final void setExternalTask(boolean value)
Sets a value indicating whether IsExternalTask is set or not.
- Parameters:
value- a value indicating whether IsExternalTask is set or not.
-
isManual
public final NullableBool isManual()
Gets a value indicating whether IsManual is set or not.
- Returns:
- a value indicating whether IsManual is set or not.
-
isMarked
public final boolean isMarked()
Gets a value indicating whether IsMarked is set or not.
- Returns:
- a value indicating whether IsMarked is set or not.
-
setMarked
public final void setMarked(boolean value)
Sets a value indicating whether IsMarked is set or not.
- Parameters:
value- a value indicating whether IsMarked is set or not.
-
isMilestone
public final NullableBool isMilestone()
Gets a value indicating whether IsMilestone is set or not.
- Returns:
- a value indicating whether IsMilestone is set or not.
-
isNull
public final NullableBool isNull()
Gets a value indicating whether IsNull is set or not.
- Returns:
- a value indicating whether IsNull is set or not.
-
isOverallocated
public final NullableBool isOverallocated()
Gets a value indicating whether IsOverallocated is set or not.
- Returns:
- a value indicating whether IsOverallocated is set or not.
-
isPublished
public final NullableBool isPublished()
Gets a value indicating whether IsPublished is set or not.
- Returns:
- a value indicating whether IsPublished is set or not.
-
isRecurring
public final NullableBool isRecurring()
Gets a value indicating whether IsRecurring is set or not.
- Returns:
- a value indicating whether IsRecurring is set or not.
-
isResumeValid
public final NullableBool isResumeValid()
Gets a value indicating whether IsResumeValid is set or not.
- Returns:
- a value indicating whether IsResumeValid is set or not.
-
isRollup
public final NullableBool isRollup()
Gets a value indicating whether IsRollup is set or not.
- Returns:
- a value indicating whether IsRollup is set or not.
-
isSubproject
public final boolean isSubproject()
Gets a value indicating whether IsSubproject is set or not.
- Returns:
- a value indicating whether IsSubproject is set or not.
-
setSubproject
public final void setSubproject(boolean value)
Sets a value indicating whether IsSubproject is set or not.
- Parameters:
value- a value indicating whether IsSubproject is set or not.
-
isSubprojectReadOnly
public final NullableBool isSubprojectReadOnly()
Gets a value indicating whether IsSubprojectReadOnly is set or not.
- Returns:
- a value indicating whether IsSubprojectReadOnly is set or not.
-
isSummary
public final boolean isSummary()
Gets a value indicating whether IsSummary is set or not.
- Returns:
- a value indicating whether IsSummary is set or not.
-
setSummary
public final void setSummary(boolean value)
Sets a value indicating whether IsSummary is set or not.
- Parameters:
value- a value indicating whether IsSummary is set or not.
-
moveToSibling
public final void moveToSibling(Task beforeTask)
Moves the current task at the same Outline Level before the specified task. If ParentProject.CalculationMode is None user should invoke Project.Recalculate() after using this method (It will reschedule all project tasks (start/finish dates, sets early/late dates) and calculate the dependent fields such as slacks, work and cost fields, outline levels). If ParentProject.CalculationMode is Manual the method will calculate only task id, outline level and outline numbers automatically. If ParentProject.CalculationMode is Automatic the method reschedules all project's tasks automatically (start/finish dates, sets early/late dates, calculates slacks, work and cost fields, recalculates ids and outline levels).
- Parameters:
beforeTask- Task before which the current task will be inserted.
-
moveToSibling
public final void moveToSibling(int beforeTaskId)
Moves the current task at the same Outline Level before a task with the specified Id. If ParentProject.CalculationMode is None user should invoke Project.Recalculate() after using this method (It will reschedule all project tasks (start/finish dates, sets early/late dates) and calculate the dependent fields such as slacks, work and cost fields, outline levels). If ParentProject.CalculationMode is Manual the method will calculate only task id, outline level and outline numbers automatically. If ParentProject.CalculationMode is Automatic the method reschedules all project's tasks automatically (start/finish dates, sets early/late dates, calculates slacks, work and cost fields, recalculates ids and outline levels).
- Parameters:
beforeTaskId- Id (Tsk.ID) of a task before which the current task will be inserted.
-
outlineIndent
public final void outlineIndent()
Indents a task in the outline.
-
outlineOutdent
public final void outlineOutdent()
Promotes a task in the outline.
-
selectAllChildTasks
public final Iterable<Task> selectAllChildTasks()
Recursively collects all child tasks of this task.
- Returns:
- A list of child tasks of this task.
-
set
public final <T> void set(Key<T,Byte> key, T val)
Maps the specified property to the specified value in this container.
- Parameters:
key- the specified property key.Tskfor getting the property key.val- the value.
-
set
public final void set(Key<Date,Byte> key, Date val)
Maps the specified property to the specified value in this container.
- Parameters:
key- the specified property key.Tskfor getting the property key.val- the value.
-
setActive
public final void setActive(NullableBool value)
Sets a value indicating whether IsActive is set or not.
- Parameters:
value- a value indicating whether IsActive is set or not.
-
setCritical
public final void setCritical(NullableBool value)
Sets a value indicating whether IsCritical is set or not.
- Parameters:
value- a value indicating whether IsCritical is set or not.
-
setEffortDriven
public final void setEffortDriven(NullableBool value)
Sets a value indicating whether IsEffortDriven is set or not.
- Parameters:
value- a value indicating whether IsEffortDriven is set or not.
-
setEstimated
public final void setEstimated(NullableBool value)
Sets a value indicating whether IsEstimated is set or not.
- Parameters:
value- a value indicating whether IsEstimated is set or not.
-
setExpanded
public final void setExpanded(NullableBool value)
Sets a value indicating whether IsExpanded is set or not.
- Parameters:
value- a value indicating whether IsExpanded is set or not.
-
setManual
public final void setManual(NullableBool value)
Sets a value indicating whether IsManual is set or not.
- Parameters:
value- a value indicating whether IsManual is set or not.
-
setMilestone
public final void setMilestone(NullableBool value)
Sets a value indicating whether IsMilestone is set or not.
- Parameters:
value- a value indicating whether IsMilestone is set or not.
-
setNull
public final void setNull(NullableBool value)
Sets a value indicating whether IsNull is set or not.
- Parameters:
value- a value indicating whether IsNull is set or not.
-
setOverallocated
public final void setOverallocated(NullableBool value)
Sets a value indicating whether IsOverallocated is set or not.
- Parameters:
value- a value indicating whether IsOverallocated is set or not.
-
setPublished
public final void setPublished(NullableBool value)
Sets a value indicating whether IsPublished is set or not.
- Parameters:
value- a value indicating whether IsPublished is set or not.
-
setRecurring
public final void setRecurring(NullableBool value)
Sets a value indicating whether IsRecurring is set or not.
- Parameters:
value- a value indicating whether IsRecurring is set or not.
-
setResumeValid
public final void setResumeValid(NullableBool value)
Sets a value indicating whether IsResumeValid is set or not.
- Parameters:
value- a value indicating whether IsResumeValid is set or not.
-
setRollup
public final void setRollup(NullableBool value)
Sets a value indicating whether IsRollup is set or not.
- Parameters:
value- a value indicating whether IsRollup is set or not.
-
setSubprojectReadOnly
public final void setSubprojectReadOnly(NullableBool value)
Sets a value indicating whether IsSubprojectReadOnly is set or not.
- Parameters:
value- a value indicating whether IsSubprojectReadOnly is set or not.
-
-