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 void
delete()
Deletes resource assignment from project assignments collection.boolean
equals(ResourceAssignment other)
Returns a value indicating whether this instance is equal to a specified instance of theResourceAssignment
class.boolean
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.<T> T
get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.BigDecimal
getActualCost()
Gets a value of ActualCost.Date
getActualFinish()
Gets a value of ActualFinish.BigDecimal
getActualOvertimeCost()
Gets a value of ActualOvertimeCost.Duration
getActualOvertimeWork()
Gets a value of ActualOvertimeWork.Duration
getActualOvertimeWorkProtected()
Gets a value of ActualOvertimeWorkProtected.Date
getActualStart()
Gets a value of ActualStart.Duration
getActualWork()
Gets a value of ActualWork.Duration
getActualWorkProtected()
Gets a value of ActualWorkProtected.double
getACWP()
Gets a value of ACWP.String
getAssignmentOwner()
Gets a value of AssignmentOwner.String
getAssignmentOwnerGuid()
Gets a value of AssignmentOwnerGuid.AssignmentBaselineCollection
getBaselines()
Gets AssignmentBaselineCollection object.double
getBCWP()
Gets a value of BCWP.double
getBCWS()
Gets a value of BCWS.int
getBookingType()
Gets a value of BookingType.BigDecimal
getBudgetCost()
Gets a value of BudgetCost.Duration
getBudgetWork()
Gets a value of BudgetWork.boolean
getConfirmed()
Gets a value indicating whether Confirmed is set or not.BigDecimal
getCost()
Gets a value of Cost.int
getCostRateTableType()
Gets a value of CostRateTableType.double
getCostVariance()
Gets a value of CostVariance.Date
getCreated()
Gets a value of Created.double
getCV()
Gets a value of CV.Duration
getDelay()
Gets a value of Delay.ExtendedAttributeCollection
getExtendedAttributes()
Gets an instance of the ExtendedAttributeCollection class for this object.Date
getFinish()
Gets a value of Finish.Duration
getFinishVariance()
Gets a value of FinishVariance.boolean
getFixedMaterial()
Gets a value indicating whether FixedMaterial is set or not.UUID
getGuid()
Gets unique identifier for this assignment.String
getHyperlink()
Gets a value of Hyperlink.String
getHyperlinkAddress()
Gets a value of HyperlinkAddress.String
getHyperlinkSubAddress()
Gets a value of HyperlinkSubAddress.com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent>
getItems()
Duration
getLevelingDelay()
Gets a value of LevelingDelay.int
getLevelingDelayFormat()
Gets a value of LevelingDelayFormat.boolean
getLinkedFields()
Gets a value indicating whether LinkedFields is set or not.boolean
getMilestone()
Gets a value indicating whether Milestone is set or not.String
getNotes()
Gets a value of Notes.boolean
getOverallocated()
Gets a value indicating whether Overallocated is set or not.BigDecimal
getOvertimeCost()
Gets a value of OvertimeCost.Duration
getOvertimeWork()
Gets a value of OvertimeWork.Project
getParentProject()
Gets parent project for this assignment.double
getPeakUnits()
Gets a value of PeakUnits.int
getPercentWorkComplete()
Gets a value of PercentWorkComplete.int
getRateScale()
Gets a value of RateScale.Duration
getRegularWork()
Gets a value of RegularWork.BigDecimal
getRemainingCost()
Gets a value of RemainingCost.BigDecimal
getRemainingOvertimeCost()
Gets a value of RemainingOvertimeCost.Duration
getRemainingOvertimeWork()
Gets a value of RemainingOvertimeWork.Duration
getRemainingWork()
Gets a value of RemainingWork.Resource
getResource()
The resource assigned to a task.boolean
getResponsePending()
Gets a value indicating whether ResponsePending is set or not.Date
getResume()
Gets a value of Resume.Date
getStart()
Gets a value of Start.Duration
getStartVariance()
Gets a value of StartVariance.Date
getStop()
Gets a value of Stop.boolean
getSummary()
Gets a value indicating whether Summary is set or not.double
getSV()
Gets a value of SV.Task
getTask()
The task to which a resource is assigned.TimephasedDataCollection
getTimephasedData()
Gets the instance ofTimephasedDataCollection
class containing elements ofTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.TimephasedDataCollection
getTimephasedData(Date start, Date end)
ReturnsTimephasedDataCollection
object with the instances ofTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class within given start and end dates ofTimephasedDataType.AssignmentWork
.TimephasedDataCollection
getTimephasedData(Date start, Date end, int timephasedType)
Returns the instanceTimephasedDataCollection
class containing instances ofTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class within given start and end dates of specifiedTimephasedDataType
.int
getUid()
Gets a value of Uid.double
getUnits()
Gets a value of Units.boolean
getUpdateNeeded()
Gets a value indicating whether UpdateNeeded is set or not.double
getVAC()
Gets a value of VAC.Duration
getWork()
Gets a value of Work.int
getWorkContour()
Gets a value of WorkContour.Duration
getWorkVariance()
Gets a value of WorkVariance.boolean
hasChildren()
Gets a value indicating that this resource assignment has children.boolean
hasFixedRateUnits()
Gets a value indicating whether HasFixedRateUnits is set or not.int
hashCode()
Returns a hash code value for the instance of theResourceAssignment
class.Date
makeTPs(Date start, double time, Calendar calendar, List<TimephasedData> list, boolean isWorking, int type)
Generates a list of time phased data.<T> void
set(Key<T,Integer> key, T val)
Maps the specified property to the specified value in this container.void
setActualCost(BigDecimal value)
Sets a value of ActualCost.void
setActualFinish(Date value)
Sets a value of ActualFinish.void
setActualOvertimeCost(BigDecimal value)
Sets a value of ActualOvertimeCost.void
setActualOvertimeWork(Duration value)
Sets a value of ActualOvertimeWork.void
setActualOvertimeWorkProtected(Duration value)
Sets a value of ActualOvertimeWorkProtected.void
setActualStart(Date value)
Sets a value of ActualStart.void
setActualWork(Duration value)
Sets a value of ActualWork.void
setActualWorkProtected(Duration value)
Sets a value of ActualWorkProtected.void
setACWP(double value)
Sets a value of ACWP.void
setAssignmentOwner(String value)
Sets a value of AssignmentOwner.void
setAssignmentOwnerGuid(String value)
Sets a value of AssignmentOwnerGuid.void
setBCWP(double value)
Sets a value of BCWP.void
setBCWS(double value)
Sets a value of BCWS.void
setBookingType(int value)
Sets a value of BookingType.void
setBudgetCost(BigDecimal value)
Sets a value of BudgetCost.void
setBudgetWork(Duration value)
Sets a value of BudgetWork.void
setConfirmed(boolean value)
Sets a value indicating whether Confirmed is set or not.void
setCost(BigDecimal value)
Sets a value of Cost.void
setCostRateTableType(int value)
Sets a value of CostRateTableType.void
setCostVariance(double value)
Sets a value of CostVariance.void
setCreated(Date value)
Sets a value of Created.void
setCV(double value)
Sets a value of CV.void
setDelay(Duration value)
Sets a value of Delay.void
setExtendedAttributes(ExtendedAttributeCollection value)
Sets an instance of the ExtendedAttributeCollection class for this object.void
setFinish(Date value)
Sets a value of Finish.void
setFinishVariance(Duration value)
Sets a value of FinishVariance.void
setFixedMaterial(boolean value)
Sets a value indicating whether FixedMaterial is set or not.void
setFixedRateUnits(boolean value)
Sets a value indicating whether HasFixedRateUnits is set or not.void
setGuid(UUID value)
Sets unique identifier for this assignment.void
setHyperlink(String value)
Sets a value of Hyperlink.void
setHyperlinkAddress(String value)
Sets a value of HyperlinkAddress.void
setHyperlinkSubAddress(String value)
Sets a value of HyperlinkSubAddress.void
setLevelingDelay(Duration value)
Sets a value of LevelingDelay.void
setLevelingDelayFormat(int value)
Sets a value of LevelingDelayFormat.void
setLinkedFields(boolean value)
Sets a value indicating whether LinkedFields is set or not.void
setMilestone(boolean value)
Sets a value indicating whether Milestone is set or not.void
setNotes(String value)
Sets a value of Notes.void
setOverallocated(boolean value)
Sets a value indicating whether Overallocated is set or not.void
setOvertimeCost(BigDecimal value)
Sets a value of OvertimeCost.void
setOvertimeWork(Duration value)
Sets a value of OvertimeWork.void
setPeakUnits(double value)
Sets a value of PeakUnits.void
setPercentWorkComplete(int value)
Sets a value of PercentWorkComplete.void
setRateScale(int value)
Sets a value of RateScale.void
setRegularWork(Duration value)
Sets a value of RegularWork.void
setRemainingCost(BigDecimal value)
Sets a value of RemainingCost.void
setRemainingOvertimeCost(BigDecimal value)
Sets a value of RemainingOvertimeCost.void
setRemainingOvertimeWork(Duration value)
Sets a value of RemainingOvertimeWork.void
setRemainingWork(Duration value)
Sets a value of RemainingWork.void
setResource(Resource value)
The resource assigned to a task.void
setResponsePending(boolean value)
Sets a value indicating whether ResponsePending is set or not.void
setResume(Date value)
Sets a value of Resume.void
setStart(Date value)
Sets a value of Start.void
setStartVariance(Duration value)
Sets a value of StartVariance.void
setStop(Date value)
Sets a value of Stop.void
setSummary(boolean value)
Sets a value indicating whether Summary is set or not.void
setSV(double value)
Sets a value of SV.void
setTask(Task value)
The task to which a resource is assigned.void
setTimephasedData(TimephasedDataCollection value)
Sets the instance ofTimephasedDataCollection
class containing elements ofTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.void
setUid(int value)
Sets a value of Uid.void
setUnits(double value)
Sets a value of Units.void
setUpdateNeeded(boolean value)
Sets a value indicating whether UpdateNeeded is set or not.void
setVAC(double value)
Sets a value of VAC.void
setWork(Duration value)
Sets a value of Work.void
setWorkContour(int value)
Sets a value of WorkContour.void
setWorkVariance(Duration value)
Sets a value of WorkVariance.void
splitTask(Date start, Date finish, Calendar calendar)
Splits task into two parts.void
timephasedDataFromTaskDuration(Calendar calendar)
Generates list of time phased data based on the task duration and the scheduled start date.String
toString()
Returns short string representation of the instance of theResourceAssignment
class.
-
-
-
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
ResourceAssignment
class.- Parameters:
other
- The specified instance of theResourceAssignment
class to compare with this instance.- Returns:
- True if the specified instance of the
ResourceAssignment
class 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:
equals
in interfacecom.aspose.ms.System.IEquatable<ResourceAssignment>
- Overrides:
equals
in 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,Integer> key)
Returns the value to which the property is mapped in this container.
- Parameters:
key
- the specified property key.Asn
for 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.
-
setCost
public final void setCost(BigDecimal value)
Sets a value of Cost.
- Parameters:
value
- 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 com.aspose.ms.System.Collections.Generic.IGenericEnumerable<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.
-
getLevelingDelayFormat
public final int getLevelingDelayFormat()
Gets a value of LevelingDelayFormat.
- Returns:
- a value of LevelingDelayFormat.
-
setLevelingDelayFormat
public final void setLevelingDelayFormat(int value)
Sets a value of LevelingDelayFormat.
- Parameters:
value
- a value of LevelingDelayFormat.
-
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.
-
getNotes
public final String getNotes()
Gets a value of Notes.
- Returns:
- a value of Notes.
-
setNotes
public final void setNotes(String value)
Sets a value of Notes.
- Parameters:
value
- a value of Notes.
-
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()
Gets the instance of
TimephasedDataCollection
class containing elements ofTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.- Returns:
- the instance of
TimephasedDataCollection
class containing elements ofTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.
-
setTimephasedData
public final void setTimephasedData(TimephasedDataCollection value)
Sets the instance of
TimephasedDataCollection
class containing elements ofTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.- Parameters:
value
- the instance ofTimephasedDataCollection
class containing elements ofTimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end, int timephasedType)
Returns the instance
TimephasedDataCollection
class 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
TimephasedData
class.
-
getTimephasedData
public final TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns
TimephasedDataCollection
object 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
TimephasedData
class.
-
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.
-
setWork
public final void setWork(Duration value)
Sets a value of Work.
- Parameters:
value
- 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
ResourceAssignment
class.
-
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,Integer> key, T val)
Maps the specified property to the specified value in this container.
- Parameters:
key
- the specified property key.Asn
for 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.
-
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
ResourceAssignment
class. The exact details of the representation are unspecified and subject to change.
-
-