Class ResourceAssignment
- java.lang.Object
-
- com.aspose.tasks.ResourceAssignment
-
- All Implemented Interfaces:
com.aspose.ms.System.IEquatable<ResourceAssignment>
public class ResourceAssignment extends Object implements com.aspose.ms.System.IEquatable<ResourceAssignment>
Represents a resource assignment in a project.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Deletes resource assignment from project assignments collection.booleanequals(ResourceAssignment other)Returns a value indicating whether this instance is equal to a specified instance of theResourceAssignmentclass.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.BigDecimalgetActualCost()Gets a value of ActualCost.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.StringgetAssignmentOwner()Gets a value of AssignmentOwner.StringgetAssignmentOwnerGuid()Gets a value of AssignmentOwnerGuid.AssignmentBaselineCollectiongetBaselines()Gets AssignmentBaselineCollection object.doublegetBCWP()Gets a value of BCWP.doublegetBCWS()Gets a value of BCWS.intgetBookingType()Gets a value of BookingType.BigDecimalgetBudgetCost()Gets a value of BudgetCost.DurationgetBudgetWork()Gets a value of BudgetWork.booleangetConfirmed()Gets a value indicating whether Confirmed is set or not.BigDecimalgetCost()Gets a value of Cost.intgetCostRateTableType()Gets a value of CostRateTableType.doublegetCostVariance()Gets a value of CostVariance.DategetCreated()Gets a value of Created.doublegetCV()Gets a value of CV.DurationgetDelay()Gets a value of Delay.ExtendedAttributeCollectiongetExtendedAttributes()Gets an instance of the ExtendedAttributeCollection class for this object.DategetFinish()Gets a value of Finish.DurationgetFinishVariance()Gets a value of FinishVariance.booleangetFixedMaterial()Gets a value indicating whether FixedMaterial is set or not.UUIDgetGuid()Gets unique identifier for this assignment.StringgetHyperlink()Gets a value of Hyperlink.StringgetHyperlinkAddress()Gets a value of HyperlinkAddress.StringgetHyperlinkSubAddress()Gets a value of HyperlinkSubAddress.Iterable<com.aspose.tasks.IExtendedAttributeParent>getItems()DurationgetLevelingDelay()Gets a value of LevelingDelay.booleangetLinkedFields()Gets a value indicating whether LinkedFields is set or not.booleangetMilestone()Gets a value indicating whether Milestone is set or not.StringgetNotesRTF()Gets the text notes in RTF format.StringgetNotesText()Gets notes' plain text extracted from RTF data.booleangetOverallocated()Gets a value indicating whether Overallocated is set or not.BigDecimalgetOvertimeCost()Gets a value of OvertimeCost.DurationgetOvertimeWork()Gets a value of OvertimeWork.ProjectgetParentProject()Gets parent project for this assignment.doublegetPeakUnits()Gets a value of PeakUnits.intgetPercentWorkComplete()Gets a value of PercentWorkComplete.intgetRateScale()Gets a value of RateScale.DurationgetRegularWork()Gets a value of RegularWork.BigDecimalgetRemainingCost()Gets a value of RemainingCost.BigDecimalgetRemainingOvertimeCost()Gets a value of RemainingOvertimeCost.DurationgetRemainingOvertimeWork()Gets a value of RemainingOvertimeWork.DurationgetRemainingWork()Gets a value of RemainingWork.ResourcegetResource()The resource assigned to a task.booleangetResponsePending()Gets a value indicating whether ResponsePending is set or not.DategetResume()Gets a value of Resume.DategetStart()Gets a value of Start.DurationgetStartVariance()Gets a value of StartVariance.DategetStop()Gets a value of Stop.booleangetSummary()Gets a value indicating whether Summary is set or not.doublegetSV()Gets a value of SV.TaskgetTask()The task to which a resource is assigned.TimephasedDataCollectiongetTimephasedData()Gets the instance ofTimephasedDataCollectionclass containing elements ofTimephasedData(getTimephasedData(java.util.Date, java.util.Date, byte)/setTimephasedData(com.aspose.tasks.TimephasedDataCollection)) class.TimephasedDataCollectiongetTimephasedData(Date start, Date end)ReturnsTimephasedDataCollectionobject with the instances ofTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) class within given start and end dates ofTimephasedDataType.AssignmentWork.TimephasedDataCollectiongetTimephasedData(Date start, Date end, byte timephasedType)Returns the instanceTimephasedDataCollectionclass containing instances ofTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) class within given start and end dates of specifiedTimephasedDataType.doublegetTimephasedWork(Date start, Date end)Gets amount of timephased work for the specified date time interval.doublegetTimephasedWork(Date start, Date end, byte timephasedDataType)Gets amount of timephased work for the specified date time interval.intgetUid()Gets a value of Uid.doublegetUnits()Gets a value of Units.booleangetUpdateNeeded()Gets a value indicating whether UpdateNeeded is set or not.doublegetVAC()Gets a value of VAC.DurationgetWork()Gets a value of Work.intgetWorkContour()Gets a value of WorkContour.DurationgetWorkVariance()Gets a value of WorkVariance.booleanhasChildren()Gets a value indicating that this resource assignment has children.booleanhasFixedRateUnits()Gets a value indicating whether HasFixedRateUnits is set or not.inthashCode()Returns a hash code value for the instance of theResourceAssignmentclass.DatemakeTPs(Date start, double time, Calendar calendar, List<TimephasedData> list, boolean isWorking, int type)Generates a list of time phased data.<T> voidset(Key<T,Byte> key, T val)Maps the specified property to the specified value in this container.voidsetActualCost(BigDecimal value)Sets a value of ActualCost.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.voidsetAssignmentOwner(String value)Sets a value of AssignmentOwner.voidsetAssignmentOwnerGuid(String value)Sets a value of AssignmentOwnerGuid.voidsetBCWP(double value)Sets a value of BCWP.voidsetBCWS(double value)Sets a value of BCWS.voidsetBookingType(int value)Sets a value of BookingType.voidsetBudgetCost(BigDecimal value)Sets a value of BudgetCost.voidsetBudgetWork(Duration value)Sets a value of BudgetWork.voidsetConfirmed(boolean value)Sets a value indicating whether Confirmed is set or not.voidsetCost(BigDecimal value)Sets a value of Cost.voidsetCostRateTableType(int value)Sets a value of CostRateTableType.voidsetCostVariance(double value)Sets a value of CostVariance.voidsetCreated(Date value)Sets a value of Created.voidsetCV(double value)Sets a value of CV.voidsetDelay(Duration value)Sets a value of Delay.voidsetExtendedAttributes(ExtendedAttributeCollection value)Sets an instance of the ExtendedAttributeCollection class for this object.voidsetFinish(Date value)Sets a value of Finish.voidsetFinishVariance(Duration value)Sets a value of FinishVariance.voidsetFixedMaterial(boolean value)Sets a value indicating whether FixedMaterial is set or not.voidsetFixedRateUnits(boolean value)Sets a value indicating whether HasFixedRateUnits is set or not.voidsetGuid(UUID value)Sets unique identifier for this assignment.voidsetHyperlink(String value)Sets a value of Hyperlink.voidsetHyperlinkAddress(String value)Sets a value of HyperlinkAddress.voidsetHyperlinkSubAddress(String value)Sets a value of HyperlinkSubAddress.voidsetLevelingDelay(Duration value)Sets a value of LevelingDelay.voidsetLinkedFields(boolean value)Sets a value indicating whether LinkedFields is set or not.voidsetMaterialResourceUnits(double units, int rateScaleType)Sets units for assignment of a material resource with variable material consumption.voidsetMilestone(boolean value)Sets a value indicating whether Milestone is set or not.voidsetNotesRTF(String value)Sets the text notes in RTF format.voidsetNotesText(String value)Sets notes' plain text extracted from RTF data.voidsetOverallocated(boolean value)Sets a value indicating whether Overallocated is set or not.voidsetOvertimeCost(BigDecimal value)Sets a value of OvertimeCost.voidsetOvertimeWork(Duration value)Sets a value of OvertimeWork.voidsetPeakUnits(double value)Sets a value of PeakUnits.voidsetPercentWorkComplete(int value)Sets a value of PercentWorkComplete.voidsetRateScale(int value)Sets a value of RateScale.voidsetRegularWork(Duration value)Sets a value of RegularWork.voidsetRemainingCost(BigDecimal value)Sets a value of RemainingCost.voidsetRemainingOvertimeCost(BigDecimal value)Sets a value of RemainingOvertimeCost.voidsetRemainingOvertimeWork(Duration value)Sets a value of RemainingOvertimeWork.voidsetRemainingWork(Duration value)Sets a value of RemainingWork.voidsetResource(Resource value)The resource assigned to a task.voidsetResponsePending(boolean value)Sets a value indicating whether ResponsePending is set or not.voidsetResume(Date value)Sets a value of Resume.voidsetStart(Date value)Sets a value of Start.voidsetStartVariance(Duration value)Sets a value of StartVariance.voidsetStop(Date value)Sets a value of Stop.voidsetSummary(boolean value)Sets a value indicating whether Summary is set or not.voidsetSV(double value)Sets a value of SV.voidsetTask(Task value)The task to which a resource is assigned.voidsetTimephasedData(TimephasedDataCollection value)Sets the instance ofTimephasedDataCollectionclass containing elements ofTimephasedData(getTimephasedData(java.util.Date, java.util.Date, byte)/setTimephasedData(com.aspose.tasks.TimephasedDataCollection)) class.voidsetUid(int value)Sets a value of Uid.voidsetUnits(double value)Sets a value of Units.voidsetUpdateNeeded(boolean value)Sets a value indicating whether UpdateNeeded is set or not.voidsetVAC(double value)Sets a value of VAC.voidsetWork(Duration value)Sets a value of Work.voidsetWorkContour(int value)Sets a value of WorkContour.voidsetWorkVariance(Duration value)Sets a value of WorkVariance.voidsplitTask(Date start, Date finish, Calendar calendar)Splits task into two parts.voidtimephasedDataFromTaskDuration(Calendar calendar)Generates list of time phased data based on the task duration and the scheduled start date.StringtoString()Returns short string representation of the instance of theResourceAssignmentclass.
-
-
-
Method Detail
-
delete
public final void delete()
Deletes resource assignment from project assignments collection.
-
equals
public final boolean equals(ResourceAssignment other)
Returns a value indicating whether this instance is equal to a specified instance of the
ResourceAssignmentclass.- Parameters:
other- The specified instance of theResourceAssignmentclass to compare with this instance.- Returns:
- True if the specified instance of the
ResourceAssignmentclass has the same UID value as this instance; otherwise, false.
-
equals
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
- Specified by:
equalsin interfacecom.aspose.ms.System.IEquatable<ResourceAssignment>- Overrides:
equalsin classObject- Parameters:
obj- The object to compare with this instance.- Returns:
- True if o is a ResourceAssignment that assign the same resource and task as this instance; otherwise, false.
-
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.Asnfor 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.
-
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.
-
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.
-
getAssignmentOwner
public final String getAssignmentOwner()
Gets a value of AssignmentOwner.
- Returns:
- a value of AssignmentOwner.
-
setAssignmentOwner
public final void setAssignmentOwner(String value)
Sets a value of AssignmentOwner.
- Parameters:
value- a value of AssignmentOwner.
-
getAssignmentOwnerGuid
public final String getAssignmentOwnerGuid()
Gets a value of AssignmentOwnerGuid.
- Returns:
- a value of AssignmentOwnerGuid.
-
setAssignmentOwnerGuid
public final void setAssignmentOwnerGuid(String value)
Sets a value of AssignmentOwnerGuid.
- Parameters:
value- a value of AssignmentOwnerGuid.
-
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 AssignmentBaselineCollection getBaselines()
Gets AssignmentBaselineCollection object. The collection of baseline values associated with an assignment.
- Returns:
- AssignmentBaselineCollection object.
-
getBookingType
public final int getBookingType()
Gets a value of BookingType.
- Returns:
- a value of BookingType.
-
setBookingType
public final void setBookingType(int value)
Sets a value of BookingType.
- Parameters:
value- a value of BookingType.
-
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.
-
getConfirmed
public final boolean getConfirmed()
Gets a value indicating whether Confirmed is set or not.
- Returns:
- a value indicating whether Confirmed is set or not.
-
setConfirmed
public final void setConfirmed(boolean value)
Sets a value indicating whether Confirmed is set or not.
- Parameters:
value- a value indicating whether Confirmed is set or not.
-
getCost
public final BigDecimal getCost()
Gets a value of Cost.
- Returns:
- a value of Cost.
-
getCostRateTableType
public final int getCostRateTableType()
Gets a value of CostRateTableType.
- Returns:
- a value of CostRateTableType.
-
setCostRateTableType
public final void setCostRateTableType(int value)
Sets a value of CostRateTableType.
- Parameters:
value- a value of CostRateTableType.
-
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.
-
getDelay
public final Duration getDelay()
Gets a value of Delay.
- Returns:
- a value of Delay.
-
setDelay
public final void setDelay(Duration value)
Sets a value of Delay.
- Parameters:
value- a value of Delay.
-
getExtendedAttributes
public final ExtendedAttributeCollection getExtendedAttributes()
Gets an instance of the ExtendedAttributeCollection class for this object.
Reading supported for XML format only.- Returns:
- an instance of the ExtendedAttributeCollection class for this object.
-
setExtendedAttributes
public final void setExtendedAttributes(ExtendedAttributeCollection value)
Sets an instance of the ExtendedAttributeCollection class for this object.
Reading supported for XML format only.- Parameters:
value- an instance of the ExtendedAttributeCollection class for this object.
-
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.
-
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.
-
getFixedMaterial
public final boolean getFixedMaterial()
Gets a value indicating whether FixedMaterial is set or not.
- Returns:
- a value indicating whether FixedMaterial is set or not.
-
setFixedMaterial
public final void setFixedMaterial(boolean value)
Sets a value indicating whether FixedMaterial is set or not.
- Parameters:
value- a value indicating whether FixedMaterial is set or not.
-
getGuid
public final UUID getGuid()
Gets unique identifier for this assignment.
- Returns:
- unique identifier for this assignment.
-
setGuid
public final void setGuid(UUID value)
Sets unique identifier for this assignment.
- Parameters:
value- unique identifier for this assignment.
-
getHyperlink
public final String getHyperlink()
Gets a value of Hyperlink.
- Returns:
- a value of Hyperlink.
-
setHyperlink
public final void setHyperlink(String value)
Sets a value of Hyperlink.
- Parameters:
value- a value of Hyperlink.
-
getHyperlinkAddress
public final String getHyperlinkAddress()
Gets a value of HyperlinkAddress.
- Returns:
- a value of HyperlinkAddress.
-
setHyperlinkAddress
public final void setHyperlinkAddress(String value)
Sets a value of HyperlinkAddress.
- Parameters:
value- a value of HyperlinkAddress.
-
getHyperlinkSubAddress
public final String getHyperlinkSubAddress()
Gets a value of HyperlinkSubAddress.
- Returns:
- a value of HyperlinkSubAddress.
-
setHyperlinkSubAddress
public final void setHyperlinkSubAddress(String value)
Sets a value of HyperlinkSubAddress.
- Parameters:
value- a value of HyperlinkSubAddress.
-
getItems
public final Iterable<com.aspose.tasks.IExtendedAttributeParent> getItems()
- Returns:
-
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.
-
getLinkedFields
public final boolean getLinkedFields()
Gets a value indicating whether LinkedFields is set or not.
- Returns:
- a value indicating whether LinkedFields is set or not.
-
setLinkedFields
public final void setLinkedFields(boolean value)
Sets a value indicating whether LinkedFields is set or not.
- Parameters:
value- a value indicating whether LinkedFields is set or not.
-
getMilestone
public final boolean getMilestone()
Gets a value indicating whether Milestone is set or not.
- Returns:
- a value indicating whether Milestone is set or not.
-
setMilestone
public final void setMilestone(boolean value)
Sets a value indicating whether Milestone is set or not.
- Parameters:
value- a value indicating whether Milestone is set or not.
-
getNotesRTF
public final String getNotesRTF()
Gets the text notes in RTF format.
Supported for MPP formats only.- Returns:
- the text notes in RTF format.
-
setNotesRTF
public final void setNotesRTF(String value)
Sets the text notes in RTF format.
Supported for MPP formats only.- Parameters:
value- the text notes in RTF format.
-
getNotesText
public final String getNotesText()
Gets notes' plain text extracted from RTF data.
- Returns:
- notes' plain text extracted from RTF data.
-
setNotesText
public final void setNotesText(String value)
Sets notes' plain text extracted from RTF data.
- Parameters:
value- notes' plain text extracted from RTF data.
-
getOverallocated
public final boolean getOverallocated()
Gets a value indicating whether Overallocated is set or not.
- Returns:
- a value indicating whether Overallocated is set or not.
-
setOverallocated
public final void setOverallocated(boolean value)
Sets a value indicating whether Overallocated is set or not.
- Parameters:
value- a value indicating whether Overallocated is set or not.
-
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 parent project for this assignment.
- Returns:
- parent project for this assignment.
-
getPeakUnits
public final double getPeakUnits()
Gets a value of PeakUnits.
- Returns:
- a value of PeakUnits.
-
setPeakUnits
public final void setPeakUnits(double value)
Sets a value of PeakUnits.
- Parameters:
value- a value of PeakUnits.
-
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.
-
getRateScale
public final int getRateScale()
Gets a value of RateScale.
- Returns:
- a value of RateScale.
-
setRateScale
public final void setRateScale(int value)
Sets a value of RateScale.
- Parameters:
value- a value of RateScale.
-
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.
-
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.
-
getResource
public final Resource getResource()
The resource assigned to a task.
- Returns:
- resource assigned to a task.
-
setResource
public final void setResource(Resource value)
The resource assigned to a task.
- Parameters:
value- the resource assigned to a task.
-
getResponsePending
public final boolean getResponsePending()
Gets a value indicating whether ResponsePending is set or not.
- Returns:
- a value indicating whether ResponsePending is set or not.
-
setResponsePending
public final void setResponsePending(boolean value)
Sets a value indicating whether ResponsePending is set or not.
- Parameters:
value- a value indicating whether ResponsePending is set or not.
-
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()
Gets a value of SV.
- Returns:
- a value of SV.
-
setSV
public final void setSV(double value)
Sets a value of SV.
- Parameters:
value- a value of SV.
-
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.
-
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.
-
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.
-
getSummary
public final boolean getSummary()
Gets a value indicating whether Summary is set or not.
- Returns:
- a value indicating whether Summary is set or not.
-
setSummary
public final void setSummary(boolean value)
Sets a value indicating whether Summary is set or not.
- Parameters:
value- a value indicating whether Summary is set or not.
-
getTask
public final Task getTask()
The task to which a resource is assigned.
- Returns:
- task to which a resource is assigned.
-
setTask
public final void setTask(Task value)
The task to which a resource is assigned.
- Parameters:
value- the task to which a resource is assigned.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end, byte timephasedType)
Returns the instance
TimephasedDataCollectionclass containing instances ofTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) class within given start and end dates of specifiedTimephasedDataType.- 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:
- returns a list which contains instances of
TimephasedDataclass.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns
TimephasedDataCollectionobject with the instances ofTimephasedData(getTimephasedData()/setTimephasedData(TimephasedDataCollection)) class within given start and end dates ofTimephasedDataType.AssignmentWork.- Parameters:
start- The start date for the time phased data.end- The end date for the time phased data.- Returns:
- returns a list containing instances of
TimephasedDataclass.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData()
Gets the instance of
TimephasedDataCollectionclass containing elements ofTimephasedData(getTimephasedData(java.util.Date, java.util.Date, byte)/setTimephasedData(com.aspose.tasks.TimephasedDataCollection)) class.- Returns:
- the instance of
TimephasedDataCollectionclass containing elements ofTimephasedData(getTimephasedData(java.util.Date, java.util.Date, byte)/setTimephasedData(com.aspose.tasks.TimephasedDataCollection)) class.
-
setTimephasedData
public final void setTimephasedData(TimephasedDataCollection value)
Sets the instance of
TimephasedDataCollectionclass containing elements ofTimephasedData(getTimephasedData(java.util.Date, java.util.Date, byte)/setTimephasedData(com.aspose.tasks.TimephasedDataCollection)) class.- Parameters:
value- the instance ofTimephasedDataCollectionclass containing elements ofTimephasedData(getTimephasedData(java.util.Date, java.util.Date, byte)/setTimephasedData(com.aspose.tasks.TimephasedDataCollection)) class.
-
getTimephasedWork
public final double getTimephasedWork(Date start, Date end, byte timephasedDataType)
Gets amount of timephased work for the specified date time interval.
- Parameters:
start- Start of the date time interval.end- End of the date time interval.timephasedDataType- Type of the timephased data to use.- Returns:
- amount of timephased work for the specified date time interval.
-
getTimephasedWork
public final double getTimephasedWork(Date start, Date end)
Gets amount of timephased work for the specified date time interval.
- Parameters:
start- Start of the date time interval.end- End of the date time interval.- Returns:
- amount of timephased work for the specified date time interval.
-
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.
-
getUnits
public final double getUnits()
Gets a value of Units.
- Returns:
- a value of Units.
-
setUnits
public final void setUnits(double value)
Sets a value of Units.
- Parameters:
value- a value of Units.
-
getUpdateNeeded
public final boolean getUpdateNeeded()
Gets a value indicating whether UpdateNeeded is set or not.
- Returns:
- a value indicating whether UpdateNeeded is set or not.
-
setUpdateNeeded
public final void setUpdateNeeded(boolean value)
Sets a value indicating whether UpdateNeeded is set or not.
- Parameters:
value- a value indicating whether UpdateNeeded is set or not.
-
getVAC
public final double getVAC()
Gets a value of VAC.
- Returns:
- a value of VAC.
-
setVAC
public final void setVAC(double value)
Sets a value of VAC.
- Parameters:
value- a value of VAC.
-
getWork
public final Duration getWork()
Gets a value of Work.
- Returns:
- a value of Work.
-
getWorkContour
public final int getWorkContour()
Gets a value of WorkContour.
- Returns:
- a value of WorkContour.
-
setWorkContour
public final void setWorkContour(int value)
Sets a value of WorkContour.
- Parameters:
value- a value of WorkContour.
-
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 resource assignment has children.- Returns:
- Always false.
-
hasFixedRateUnits
public final boolean hasFixedRateUnits()
Gets a value indicating whether HasFixedRateUnits is set or not.
- Returns:
- a value indicating whether HasFixedRateUnits is set or not.
-
hashCode
public int hashCode()
Returns a hash code value for the instance of the
ResourceAssignmentclass.
-
setCost
public final void setCost(BigDecimal value)
Sets a value of Cost.
- Parameters:
value- a value of Cost.
-
setWork
public final void setWork(Duration value)
Sets a value of Work.
- Parameters:
value- a value of Work.
-
makeTPs
public final Date makeTPs(Date start, double time, Calendar calendar, List<TimephasedData> list, boolean isWorking, int type)
Generates a list of time phased data.
- Parameters:
start- The specified start date.time- The specified working time.calendar- The specified working calendar.list- The list of time phased data.isWorking- The specified flag which specifies whether time-phased data is working or not.type- The specified time-phased data type.- Returns:
- A maximum date from list or start date if list is empty.
-
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.Asnfor getting the property key.val- the value.
-
setFixedRateUnits
public final void setFixedRateUnits(boolean value)
Sets a value indicating whether HasFixedRateUnits is set or not.
- Parameters:
value- a value indicating whether HasFixedRateUnits is set or not.
-
setMaterialResourceUnits
public final void setMaterialResourceUnits(double units, int rateScaleType)Sets units for assignment of a material resource with variable material consumption. The variable material consumption means that as the assignment duration changes, the quantity of materials used changes proportionally.
- Parameters:
units- Number of units accrued at the time period.rateScaleType- Time period at which the unit value is accrued.
For example, to set '123/month', SetUnitsScaled(123D, RateScaleType.Month) should be called.- Throws:
com.aspose.ms.System.InvalidOperationException- If the method is called for assignment of non-material resource.
-
splitTask
public final void splitTask(Date start, Date finish, Calendar calendar)
Splits task into two parts.
- Parameters:
start- The beginning of work interruption to split based on.finish- The end of work interruption to split based on.calendar- The calendar to split based on.- Throws:
com.aspose.ms.System.ArgumentOutOfRangeException- Throws when start date is less than the assignment start date.com.aspose.ms.System.ArgumentOutOfRangeException- Throws when finish date is greater than the assignment finish date.
-
timephasedDataFromTaskDuration
public final void timephasedDataFromTaskDuration(Calendar calendar)
Generates list of time phased data based on the task duration and the scheduled start date.
- Parameters:
calendar- The calendar to generate time phased data from.
-
toString
public String toString()
Returns short string representation of the instance of the
ResourceAssignmentclass. The exact details of the representation are unspecified and subject to change.
-
-