public class ResourceAssignment extends Object
Represents a resource assignment.
// create resource Resource resource = new Resource("Fred"); resource.setType(ResourceType.Work); resource.setCalendar(Calendar.makeStandardCalendar()); // create task Task task = new Task("Task1", 16 * 24 * 60 * 60 * 1000 * 10000L); task.setRemainingDuration(16 * 24 * 60 * 60 * 1000 * 10000L); task.setStart(new Date(2001, 5, 13, 9, 0, 0)); // assign ResourceAssignment resourceAssignment = new ResourceAssignment(task, resource); // create timephased data resourceAssignment.timephasedDataFromTaskDuration(task.getCalendar());
Constructor and Description |
---|
ResourceAssignment()
Default constructor.
|
ResourceAssignment(Task task,
Resource resource)
Creates the resource assignment to a task.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes resource assignment from project assignments collection.
|
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
BigDecimal |
getActualCost() |
Date |
getActualFinish() |
BigDecimal |
getActualOvertimeCost() |
long |
getActualOvertimeWork() |
long |
getActualOvertimeWorkProtected() |
Date |
getActualStart() |
long |
getActualWork() |
long |
getActualWorkProtected() |
double |
getAcwp()
Returns or sets the actual cost of a work performed on an assignment to-date.
|
String |
getAssnOwner()
Returns or sets the name of an assignment owner.
|
String |
getAssnOwnerGuid()
Returns or sets the Guid of an assignment owner.
|
List<AssignmentBaseline> |
getBaseline() |
double |
getBcwp()
Returns or sets the budgeted cost of a work performed on assignment to-date.
|
double |
getBcws()
Returns or sets the budgeted cost of a work on assignment.
|
int |
getBookingType()
Returns or sets the booking type of an assignment.
|
BigDecimal |
getBudgetCost() |
long |
getBudgetWork() |
boolean |
getConfirmed()
Determines whether a resource has accepted all of its assignments.
|
BigDecimal |
getCost() |
int |
getCostRateTable()
Deprecated.
|
int |
getCostRateTableType()
Returns or sets the cost rate table used for this assignment.
|
double |
getCostVariance()
Returns or sets the difference between the cost and baseline cost of a resource.
|
Date |
getCreationDate() |
double |
getCv()
Returns or sets the earned value cost variance.
|
int |
getDelay()
Returns or sets the delay of an assignment.
|
List<ExtendedAttribute> |
getExtendedAttribute() |
Date |
getFinish() |
int |
getFinishVariance()
Returns or sets the variance of an assignment finish date from a baseline finish date.
|
boolean |
getFixedMaterial()
Determines whether the consumption of an assigned material resource occurs in a single, fixed amount.
|
String |
getHyperlink()
Returns or sets the title of the hyperlink associated with an assignment.
|
String |
getHyperlinkAddress()
Returns or sets the hyperlink associated with an assignment.
|
String |
getHyperlinkSubAddress()
Returns or sets the document bookmark of the hyperlink associated with an assignment.
|
int |
getLevelingDelay()
Returns or sets the delay caused by leveling.
|
int |
getLevelingDelayFormat()
Returns or sets the duration format of a delay.
|
boolean |
getLinkedFields()
Determines whether the Project is linked to another OLE object.
|
boolean |
getMilestone()
Determines whether the assignment is a milestone.
|
String |
getNotes()
Returns or sets the text notes associated with an assignment.
|
boolean |
getOverallocated()
Determines whether the assignment is overallocated.
|
BigDecimal |
getOvertimeCost() |
long |
getOvertimeWork() |
double |
getPeakUnits()
Returns or sets the largest number of a resource's units assigned to a task.
|
int |
getPercentWorkComplete()
Returns or sets the amount of a work completed on an assignment.
|
int |
getRateScale()
Returns the time unit for the usage rate of the material resource assignment.
|
long |
getRegularWork() |
BigDecimal |
getRemainingCost() |
BigDecimal |
getRemainingOvertimeCost() |
long |
getRemainingOvertimeWork() |
long |
getRemainingWork() |
Resource |
getResource()
Returns or sets the resource assigned to a task.
|
boolean |
getResponsePending()
Determines whether the response has been received for a TeamAssign message.
|
Date |
getResume() |
Date |
getStart() |
int |
getStartVariance()
Returns or sets the variance of an assignment start date from a baseline start date.
|
Date |
getStop() |
boolean |
getSummary()
Determines whether the task is a summary task.
|
double |
getSv()
Returns or sets the earned value schedule variance, through the project status date.
|
Task |
getTask()
Returns or sets the task to which a resource is assigned.
|
List<TimephasedData> |
getTimephasedData() |
int |
getUid()
Returns or sets the unique identifier of an assignment.
|
double |
getUnits()
Returns or sets the number of units for an assignment.
|
boolean |
getUpdateNeeded()
Determines whether the resource assigned to a task needs to be updated as to the status of the task.
|
double |
getVac()
Returns or sets the difference between basline cost and total cost.
|
long |
getWork() |
int |
getWorkContour()
Returns or sets the work contour of an assignment.
|
double |
getWorkVariance()
Returns or sets the variance of an assignment work from the baseline work as minutes.
|
boolean |
hasFixedRateUnits()
Determines whether the Units have Fixed Rate.
|
void |
hasFixedRateUnits(boolean value) |
Date |
makeTPs(Date start,
long time,
Calendar calendar,
List<TimephasedData> outTP,
boolean isWorking,
int type) |
Date |
makeTPs(Date start,
long time,
long workTime,
Calendar calendar,
List<TimephasedData> outTP,
double units,
int type) |
void |
setActualCost(BigDecimal value) |
void |
setActualFinish(Date value) |
void |
setActualOvertimeCost(BigDecimal value) |
void |
setActualOvertimeWork(long value) |
void |
setActualOvertimeWorkProtected(long value) |
void |
setActualStart(Date value) |
void |
setActualWork(long value) |
void |
setActualWorkProtected(long value) |
void |
setAcwp(double value) |
void |
setAssnOwner(String value) |
void |
setAssnOwnerGuid(String value) |
void |
setBaseline(List<AssignmentBaseline> value) |
void |
setBcwp(double value) |
void |
setBcws(double value) |
void |
setBookingType(int value) |
void |
setBudgetCost(BigDecimal value) |
void |
setBudgetWork(long value) |
void |
setConfirmed(boolean value) |
void |
setCost(BigDecimal value) |
void |
setCostRateTable(int value)
Deprecated.
|
void |
setCostRateTableType(int value) |
void |
setCostVariance(double value) |
void |
setCreationDate(Date value) |
void |
setCv(double value) |
void |
setDelay(int value) |
void |
setExtendedAttribute(List<ExtendedAttribute> value) |
void |
setFinish(Date value) |
void |
setFinishVariance(int value) |
void |
setFixedMaterial(boolean value) |
void |
setHyperlink(String value) |
void |
setHyperlinkAddress(String value) |
void |
setHyperlinkSubAddress(String value) |
void |
setLevelingDelay(int value) |
void |
setLevelingDelayFormat(int value) |
void |
setLinkedFields(boolean value) |
void |
setMilestone(boolean value) |
void |
setNotes(String value) |
void |
setOverallocated(boolean value) |
void |
setOvertimeCost(BigDecimal value) |
void |
setOvertimeWork(long value) |
void |
setPeakUnits(double value) |
void |
setPercentWorkComplete(int value) |
void |
setRateScale(int value) |
void |
setRegularWork(long value) |
void |
setRemainingCost(BigDecimal value) |
void |
setRemainingOvertimeCost(BigDecimal value) |
void |
setRemainingOvertimeWork(long value) |
void |
setRemainingWork(long value) |
void |
setResource(Resource value) |
void |
setResponsePending(boolean value) |
void |
setResume(Date value) |
void |
setStart(Date value) |
void |
setStartVariance(int value) |
void |
setStop(Date value) |
void |
setSummary(boolean value) |
void |
setSv(double value) |
void |
setTask(Task value) |
void |
setTimephasedData(List<TimephasedData> value) |
void |
setUid(int value) |
void |
setUnits(double value) |
void |
setUpdateNeeded(boolean value) |
void |
setVac(double value) |
void |
setWork(long value) |
void |
setWorkContour(int value) |
void |
setWorkVariance(double value) |
void |
splitTask(Date start,
Date finish,
Calendar calendar) |
void |
timephasedDataFromTaskDuration(Calendar calendar)
Generates list of TimephasedData basen on the task duration and the scheduled start date.
|
List<TimephasedData> |
timeScaleData(Date start,
Date end) |
List<TimephasedData> |
timeScaleData(Date start,
Date end,
int timephasedType) |
public Task getTask()
Returns or sets the task to which a resource is assigned.
Read/write Aspose.Tasks.Task
.
public void setTask(Task value)
public Resource getResource()
Returns or sets the resource assigned to a task.
Read/write Aspose.Tasks.Resource
.
public void setResource(Resource value)
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
public int getUid()
Returns or sets the unique identifier of an assignment.
Read/write int
.
public void setUid(int value)
public int getPercentWorkComplete()
Returns or sets the amount of a work completed on an assignment.
Read/write int
.
public void setPercentWorkComplete(int value)
public BigDecimal getActualCost()
public void setActualCost(BigDecimal value)
public Date getActualFinish()
public void setActualFinish(Date value)
public BigDecimal getActualOvertimeCost()
public void setActualOvertimeCost(BigDecimal value)
public long getActualOvertimeWork()
public void setActualOvertimeWork(long value)
public Date getActualStart()
public void setActualStart(Date value)
public long getActualWork()
public void setActualWork(long value)
public double getAcwp()
Returns or sets the actual cost of a work performed on an assignment to-date.
Read/write double
.
public void setAcwp(double value)
public boolean getConfirmed()
Determines whether a resource has accepted all of its assignments.
Read/write bool
.
public void setConfirmed(boolean value)
public BigDecimal getCost()
public void setCost(BigDecimal value)
@Deprecated public int getCostRateTable()
Returns or sets the cost rate table used for an assignment.
Read/write int
.
@Deprecated public void setCostRateTable(int value)
public int getCostRateTableType()
Returns or sets the cost rate table used for this assignment.
Resd/write Aspose.Tasks.RateType
.
public void setCostRateTableType(int value)
public double getCostVariance()
Returns or sets the difference between the cost and baseline cost of a resource.
Read/write double
.
public void setCostVariance(double value)
public double getCv()
Returns or sets the earned value cost variance.
Read/write double
.
public void setCv(double value)
public int getDelay()
Returns or sets the delay of an assignment.
Read/write int
.
public void setDelay(int value)
public Date getFinish()
public void setFinish(Date value)
public int getFinishVariance()
Returns or sets the variance of an assignment finish date from a baseline finish date.
Read/write int
.
public void setFinishVariance(int value)
public String getHyperlink()
Returns or sets the title of the hyperlink associated with an assignment.
Read/write string
.
public void setHyperlink(String value)
public String getHyperlinkAddress()
Returns or sets the hyperlink associated with an assignment.
Read/write string
.
public void setHyperlinkAddress(String value)
public String getHyperlinkSubAddress()
Returns or sets the document bookmark of the hyperlink associated with an assignment.
Read/write string
.
public void setHyperlinkSubAddress(String value)
public double getWorkVariance()
Returns or sets the variance of an assignment work from the baseline work as minutes.
Read/write double
.
public void setWorkVariance(double value)
public boolean hasFixedRateUnits()
Determines whether the Units have Fixed Rate.
Read/write bool
.
public void hasFixedRateUnits(boolean value)
public boolean getFixedMaterial()
Determines whether the consumption of an assigned material resource occurs in a single, fixed amount.
Read/write bool
.
public void setFixedMaterial(boolean value)
public int getLevelingDelay()
Returns or sets the delay caused by leveling.
Read/write int
.
public void setLevelingDelay(int value)
public int getLevelingDelayFormat()
Returns or sets the duration format of a delay.
Read/write Aspose.Tasks.TimeUnitType
.
public void setLevelingDelayFormat(int value)
public boolean getLinkedFields()
Determines whether the Project is linked to another OLE object.
Read/write bool
.
public void setLinkedFields(boolean value)
public boolean getMilestone()
Determines whether the assignment is a milestone.
Read/write bool
.
public void setMilestone(boolean value)
public String getNotes()
Returns or sets the text notes associated with an assignment.
Read/write string
.
public void setNotes(String value)
public boolean getOverallocated()
Determines whether the assignment is overallocated.
Read/write bool
.
public void setOverallocated(boolean value)
public BigDecimal getOvertimeCost()
public void setOvertimeCost(BigDecimal value)
public long getOvertimeWork()
public void setOvertimeWork(long value)
public double getPeakUnits()
Returns or sets the largest number of a resource's units assigned to a task.
Read/write double
.
public void setPeakUnits(double value)
public long getRegularWork()
public void setRegularWork(long value)
public BigDecimal getRemainingCost()
public void setRemainingCost(BigDecimal value)
public BigDecimal getRemainingOvertimeCost()
public void setRemainingOvertimeCost(BigDecimal value)
public long getRemainingOvertimeWork()
public void setRemainingOvertimeWork(long value)
public long getRemainingWork()
public void setRemainingWork(long value)
public boolean getResponsePending()
Determines whether the response has been received for a TeamAssign message.
Read/write bool
.
public void setResponsePending(boolean value)
public Date getStart()
public void setStart(Date value)
public Date getStop()
public void setStop(Date value)
public Date getResume()
public void setResume(Date value)
public int getStartVariance()
Returns or sets the variance of an assignment start date from a baseline start date.
Read/write int
.
public void setStartVariance(int value)
public boolean getSummary()
Determines whether the task is a summary task.
Read/write bool
.
public void setSummary(boolean value)
public double getSv()
Returns or sets the earned value schedule variance, through the project status date.
Read/write double
.
public void setSv(double value)
public double getUnits()
Returns or sets the number of units for an assignment.
Read/write double
.
public void setUnits(double value)
public boolean getUpdateNeeded()
Determines whether the resource assigned to a task needs to be updated as to the status of the task.
Read/write bool
.
public void setUpdateNeeded(boolean value)
public double getVac()
Returns or sets the difference between basline cost and total cost.
Read/write double
.
public void setVac(double value)
public long getWork()
public void setWork(long value)
public int getWorkContour()
Returns or sets the work contour of an assignment.
Read/write WorkContourType
.
public void setWorkContour(int value)
public double getBcws()
Returns or sets the budgeted cost of a work on assignment.
Read/write double
.
public void setBcws(double value)
public double getBcwp()
Returns or sets the budgeted cost of a work performed on assignment to-date.
Read/write double
.
public void setBcwp(double value)
public int getBookingType()
Returns or sets the booking type of an assignment.
Read/write Aspose.Tasks.BookingType
.
public void setBookingType(int value)
public long getActualWorkProtected()
public void setActualWorkProtected(long value)
public long getActualOvertimeWorkProtected()
public void setActualOvertimeWorkProtected(long value)
public Date getCreationDate()
public void setCreationDate(Date value)
public String getAssnOwner()
Returns or sets the name of an assignment owner.
Read/write string
.
public void setAssnOwner(String value)
public String getAssnOwnerGuid()
Returns or sets the Guid of an assignment owner.
Read/write string
.
public void setAssnOwnerGuid(String value)
public BigDecimal getBudgetCost()
public void setBudgetCost(BigDecimal value)
public long getBudgetWork()
public void setBudgetWork(long value)
public List<ExtendedAttribute> getExtendedAttribute()
public void setExtendedAttribute(List<ExtendedAttribute> value)
public List<AssignmentBaseline> getBaseline()
public void setBaseline(List<AssignmentBaseline> value)
public List<TimephasedData> getTimephasedData()
public void setTimephasedData(List<TimephasedData> value)
public int getRateScale()
Returns the time unit for the usage rate of the material resource assignment.
Read/write int
.
public void setRateScale(int value)
public void timephasedDataFromTaskDuration(Calendar calendar)
Generates list of TimephasedData basen on the task duration and the scheduled start date.
public Date makeTPs(Date start, long time, long workTime, Calendar calendar, List<TimephasedData> outTP, double units, int type)
public Date makeTPs(Date start, long time, Calendar calendar, List<TimephasedData> outTP, boolean isWorking, int type)
public List<TimephasedData> timeScaleData(Date start, Date end, int timephasedType)
public List<TimephasedData> timeScaleData(Date start, Date end)
public void delete()
Deletes resource assignment from project assignments collection.
Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.