public class Resource extends Object
Represents a resource in a project.
Constructor and Description |
---|
Resource()
Default constructor.
|
Resource(String name)
Sets the name of a resource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canLevel()
Determines whether a resource can be leveled.
|
void |
canLevel(boolean value) |
void |
delete()
Deletes a resource and its assignments from project.
|
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
int |
getAccrueAt()
Determines how cost is accrued against the resource.
|
String |
getActiveDirectoryGuid()
The Active Directory Guid for a resource.
|
BigDecimal |
getActualCost() |
BigDecimal |
getActualOvertimeCost() |
long |
getActualOvertimeWork() |
long |
getActualOvertimeWorkProtected() |
long |
getActualWork() |
long |
getActualWorkProtected() |
double |
getAcwp()
The actual cost of a work performed by a resource for the project to-date.
|
String |
getAssignmentOwner()
The name of an assignment owner.
|
String |
getAssignmentOwnerGuid()
The GUID of an assignment owner.
|
List<AvailabilityPeriod> |
getAvailabilityPeriods() |
Date |
getAvailableFrom() |
Date |
getAvailableTo() |
List<Baseline> |
getBaseLine() |
double |
getBcwp()
The budgeted cost of a work performed by a resource for the project to-date.
|
double |
getBcws()
The budget cost of a work scheduled for a resource.
|
int |
getBookingType()
The booking type of a resource.
|
BigDecimal |
getBudgetCost() |
long |
getBudgetWork() |
Calendar |
getCalendar()
The calendar of a resource.
|
String |
getCode()
The code or other information about a resource.
|
BigDecimal |
getCost() |
String |
getCostCenter()
Indicates which cost center the costs accrued by the resource should be charged to.
|
BigDecimal |
getCostPerUse() |
double |
getCostVariance()
The difference between a baseline cost and a cost.
|
Date |
getCreationDate() |
double |
getCv()
The earned value cost variance, through the project status date.
|
String |
getEmailAddress()
The email address of a resource.
|
List<ExtendedAttribute> |
getExtendedAttribute() |
Date |
getFinish() |
String |
getGroup()
The group to which a resource belongs.
|
String |
getHyperlink()
The title of a hyperlink associated with a resource.
|
String |
getHyperlinkAddress()
The hyperlink associated with a resource.
|
String |
getHyperlinkSubAddress()
The document bookmark of a hyperlink associated with a resource.
|
int |
getId()
The position identifier of a resource within the list of resources.
|
String |
getInitials()
The initials of a resource.
|
String |
getMaterialLabel()
The unit of measure for the material resource.
|
double |
getMaxUnits()
The maximum number of units of a resource is available.
|
String |
getName()
The name of a resource.
|
String |
getNotes()
Deprecated.
|
String |
getNotesRTF()
The text notes in RTF format.
|
String |
getNotesText()
Notes' plain text extracted from RTF data.
|
String |
getNtAccount()
The NT account associated with a resource.
|
List<OutlineCode> |
getOutlineCode() |
boolean |
getOverAllocated()
Determines whether a resource is overallocated.
|
BigDecimal |
getOvertime() |
BigDecimal |
getOvertimeCost() |
BigDecimal |
getOvertimeRate() |
int |
getOvertimeRateFormat()
The units used by Microsoft Project to display the overtime rate.
|
long |
getOvertimeWork() |
double |
getPeakUnits()
The largest number of units assigned to a resource at any time.
|
int |
getPercentWorkComplete()
The percentage of work completed across all tasks.
|
String |
getPhonetics()
The phonetic spelling of the resource name.
|
List<Rate> |
getRates() |
long |
getRegularWork() |
BigDecimal |
getRemainingCost() |
BigDecimal |
getRemainingOvertimeCost() |
long |
getRemainingOvertimeWork() |
long |
getRemainingWork() |
BigDecimal |
getStandardRate() |
int |
getStandardRateFormat()
The units used by Microsoft Project to display the standard rate.
|
Date |
getStart() |
double |
getSv()
The earned value schedule variance, through the project status date.
|
boolean |
getTeamAssignmentPool()
Determines whether the current resource is a team resource.
|
List<TimephasedData> |
getTimephasedData() |
int |
getType()
The type of a resource.
|
int |
getUid()
The unique identifier of a resource.
|
long |
getWork() |
int |
getWorkGroup()
The type of a workgroup to which a resource belongs.
|
double |
getWorkVariance()
The difference between a baseline work and a work
Read/write
double . |
boolean |
isBudget()
Determines whether a resource is a budget resource.
|
void |
isBudget(boolean value) |
boolean |
isCostResource()
Determines whether a resource is a cost resource.
|
void |
isCostResource(boolean value) |
boolean |
isEnterprise()
Determines whether a resource is an Enterprise resource.
|
void |
isEnterprise(boolean value) |
boolean |
isGeneric()
Determines whether a resource is generic.
|
void |
isGeneric(boolean value) |
boolean |
isInactive()
Determines whether a resource is inactive.
|
void |
isInactive(boolean value) |
boolean |
isNull()
Determines whether a resource is null.
|
void |
isNull(boolean value) |
void |
setAccrueAt(int value) |
void |
setActiveDirectoryGuid(String value) |
void |
setActualCost(BigDecimal value) |
void |
setActualOvertimeCost(BigDecimal value) |
void |
setActualOvertimeWork(long value) |
void |
setActualOvertimeWorkProtected(long value) |
void |
setActualWork(long value) |
void |
setActualWorkProtected(long value) |
void |
setAcwp(double value) |
void |
setAssignmentOwner(String value) |
void |
setAssignmentOwnerGuid(String value) |
void |
setAvailabilityPeriods(List<AvailabilityPeriod> value) |
void |
setAvailableFrom(Date value) |
void |
setAvailableTo(Date value) |
void |
setBaseLine(List<Baseline> value) |
void |
setBcwp(double value) |
void |
setBcws(double value) |
void |
setBookingType(int value) |
void |
setCalendar(Calendar value) |
void |
setCode(String value) |
void |
setCost(BigDecimal value) |
void |
setCostCenter(String value) |
void |
setCostPerUse(BigDecimal value) |
void |
setCostVariance(double value) |
void |
setCreationDate(Date value) |
void |
setCv(double value) |
void |
setEmailAddress(String value) |
void |
setExtendedAttribute(List<ExtendedAttribute> value) |
void |
setFinish(Date value) |
void |
setGroup(String value) |
void |
setHyperlink(String value) |
void |
setHyperlinkAddress(String value) |
void |
setHyperlinkSubAddress(String value) |
void |
setId(int value) |
void |
setInitials(String value) |
void |
setMaterialLabel(String value) |
void |
setMaxUnits(double value) |
void |
setName(String value) |
void |
setNotes(String value)
Deprecated.
|
void |
setNotesText(String value) |
void |
setNtAccount(String value) |
void |
setOutlineCode(List<OutlineCode> value) |
void |
setOverAllocated(boolean value) |
void |
setOvertime(BigDecimal value) |
void |
setOvertimeCost(BigDecimal value) |
void |
setOvertimeRate(BigDecimal value) |
void |
setOvertimeRateFormat(int value) |
void |
setOvertimeWork(long value) |
void |
setPeakUnits(double value) |
void |
setPercentWorkComplete(int value) |
void |
setPhonetics(String value) |
void |
setRates(List<Rate> value) |
void |
setRegularWork(long value) |
void |
setRemainingCost(BigDecimal value) |
void |
setRemainingOvertimeCost(BigDecimal value) |
void |
setRemainingOvertimeWork(long value) |
void |
setRemainingWork(long value) |
void |
setStandardRate(BigDecimal value) |
void |
setStandardRateFormat(int value) |
void |
setStart(Date value) |
void |
setSv(double value) |
void |
setTeamAssignmentPool(boolean value) |
void |
setTimephasedData(List<TimephasedData> value) |
void |
setType(int value) |
void |
setUid(int value) |
void |
setWork(long value) |
void |
setWorkGroup(int value) |
void |
setWorkVariance(double value) |
List<TimephasedData> |
timeScaleData(Date start,
Date end) |
List<TimephasedData> |
timeScaleData(Date start,
Date end,
int timephasedType) |
public Resource()
Default constructor.
public Resource(String name)
Sets the name of a resource.
name
- New resource name.public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
public String getName()
The name of a resource.
Read/write string
.
public void setName(String value)
public int getUid()
The unique identifier of a resource.
Read/write int
.
public void setUid(int value)
public int getId()
The position identifier of a resource within the list of resources.
Read/write int
.
public void setId(int value)
public int getType()
The type of a resource.
Read/write ResourceType
.
public void setType(int value)
public boolean isNull()
Determines whether a resource is null.
Read/write bool
.
public void isNull(boolean value)
public String getInitials()
The initials of a resource.
Read/write string
.
public void setInitials(String value)
public String getPhonetics()
The phonetic spelling of the resource name. For use with Japanese only.
Read/write string
.
public void setPhonetics(String value)
public String getNtAccount()
The NT account associated with a resource.
Read/write string
.
public void setNtAccount(String value)
public String getMaterialLabel()
The unit of measure for the material resource.
Read/write string
.
public void setMaterialLabel(String value)
public String getCode()
The code or other information about a resource.
Read/write string
.
public void setCode(String value)
public String getGroup()
The group to which a resource belongs.
Read/write string
.
public void setGroup(String value)
public int getWorkGroup()
The type of a workgroup to which a resource belongs.
Read/write WorkGroupType
.
public void setWorkGroup(int value)
public String getEmailAddress()
The email address of a resource.
Read/write string
.
public void setEmailAddress(String value)
public String getHyperlink()
The title of a hyperlink associated with a resource.
Read/write string
.
public void setHyperlink(String value)
public String getHyperlinkAddress()
The hyperlink associated with a resource.
Read/write string
.
public void setHyperlinkAddress(String value)
public String getHyperlinkSubAddress()
The document bookmark of a hyperlink associated with a resource.
Read/write string
.
public void setHyperlinkSubAddress(String value)
public double getMaxUnits()
The maximum number of units of a resource is available.
Read/write double
.
public void setMaxUnits(double value)
public double getPeakUnits()
The largest number of units assigned to a resource at any time.
Read/write double
.
public void setPeakUnits(double value)
public boolean getOverAllocated()
Determines whether a resource is overallocated.
Read/write bool
.
public void setOverAllocated(boolean value)
public Date getAvailableFrom()
public void setAvailableFrom(Date value)
public Date getAvailableTo()
public void setAvailableTo(Date value)
public Date getStart()
public void setStart(Date value)
public Date getFinish()
public void setFinish(Date value)
public boolean canLevel()
Determines whether a resource can be leveled.
Read/write bool
.
public void canLevel(boolean value)
public int getAccrueAt()
Determines how cost is accrued against the resource.
Read/write CostAccrualType
.
public void setAccrueAt(int value)
public long getWork()
public void setWork(long value)
public long getRegularWork()
public void setRegularWork(long value)
public long getOvertimeWork()
public void setOvertimeWork(long value)
public long getActualWork()
public void setActualWork(long value)
public long getRemainingWork()
public void setRemainingWork(long value)
public long getActualOvertimeWork()
public void setActualOvertimeWork(long value)
public long getRemainingOvertimeWork()
public void setRemainingOvertimeWork(long value)
public int getPercentWorkComplete()
The percentage of work completed across all tasks.
Read/write int
.
public void setPercentWorkComplete(int value)
public BigDecimal getStandardRate()
public void setStandardRate(BigDecimal value)
public int getStandardRateFormat()
The units used by Microsoft Project to display the standard rate.
Read/write RateFormatType
.
public void setStandardRateFormat(int value)
public BigDecimal getCost()
public void setCost(BigDecimal value)
public BigDecimal getOvertime()
public void setOvertime(BigDecimal value)
public int getOvertimeRateFormat()
The units used by Microsoft Project to display the overtime rate.
Read/write RateFormatType
.
public void setOvertimeRateFormat(int value)
public BigDecimal getOvertimeCost()
public void setOvertimeCost(BigDecimal value)
public BigDecimal getCostPerUse()
public void setCostPerUse(BigDecimal value)
public BigDecimal getActualCost()
public void setActualCost(BigDecimal value)
public BigDecimal getActualOvertimeCost()
public void setActualOvertimeCost(BigDecimal value)
public BigDecimal getRemainingCost()
public void setRemainingCost(BigDecimal value)
public BigDecimal getRemainingOvertimeCost()
public void setRemainingOvertimeCost(BigDecimal value)
public double getWorkVariance()
The difference between a baseline work and a work
Read/write double
.
public void setWorkVariance(double value)
public double getCostVariance()
The difference between a baseline cost and a cost.
Read/write double
.
public void setCostVariance(double value)
public double getSv()
The earned value schedule variance, through the project status date.
Read/write double
.
public void setSv(double value)
public double getCv()
The earned value cost variance, through the project status date.
Read/write double
.
public void setCv(double value)
public double getAcwp()
The actual cost of a work performed by a resource for the project to-date.
Read/write double
.
public void setAcwp(double value)
public Calendar getCalendar()
The calendar of a resource.
Read/write Aspose.Tasks.Calendar
.
public void setCalendar(Calendar value)
@Deprecated public String getNotes()
The text notes associated with a resource.
Read/write string
.
@Deprecated public void setNotes(String value)
public String getNotesRTF()
The text notes in RTF format.
Read only string
.
public String getNotesText()
Notes' plain text extracted from RTF data.
Read/write string
.
public void setNotesText(String value)
public double getBcws()
The budget cost of a work scheduled for a resource.
Read/write double
.
public void setBcws(double value)
public double getBcwp()
The budgeted cost of a work performed by a resource for the project to-date.
Read/write double
.
public void setBcwp(double value)
public boolean isGeneric()
Determines whether a resource is generic.
Read/write bool
.
public void isGeneric(boolean value)
public boolean isInactive()
Determines whether a resource is inactive.
Read/write bool
.
public void isInactive(boolean value)
public boolean isEnterprise()
Determines whether a resource is an Enterprise resource.
Read/write bool
.
public void isEnterprise(boolean value)
public int getBookingType()
The booking type of a resource.
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 String getActiveDirectoryGuid()
The Active Directory Guid for a resource.
Read/write string
.
public void setActiveDirectoryGuid(String value)
public Date getCreationDate()
public void setCreationDate(Date value)
public String getCostCenter()
Indicates which cost center the costs accrued by the resource should be charged to.
public void setCostCenter(String value)
public List<ExtendedAttribute> getExtendedAttribute()
public void setExtendedAttribute(List<ExtendedAttribute> value)
public List<OutlineCode> getOutlineCode()
public void setOutlineCode(List<OutlineCode> value)
public boolean isCostResource()
Determines whether a resource is a cost resource.
Read/write bool
.
public void isCostResource(boolean value)
public boolean getTeamAssignmentPool()
Determines whether the current resource is a team resource.
public void setTeamAssignmentPool(boolean value)
public String getAssignmentOwner()
The name of an assignment owner.
Read/write string
.
public void setAssignmentOwner(String value)
public String getAssignmentOwnerGuid()
The GUID of an assignment owner.
Read/write string
.
public void setAssignmentOwnerGuid(String value)
public boolean isBudget()
Determines whether a resource is a budget resource.
Read/write bool
.
public void isBudget(boolean value)
public List<AvailabilityPeriod> getAvailabilityPeriods()
public void setAvailabilityPeriods(List<AvailabilityPeriod> value)
public long getBudgetWork()
public BigDecimal getBudgetCost()
public List<TimephasedData> getTimephasedData()
public void setTimephasedData(List<TimephasedData> value)
public BigDecimal getOvertimeRate()
public void setOvertimeRate(BigDecimal value)
public List<TimephasedData> timeScaleData(Date start, Date end, int timephasedType)
public List<TimephasedData> timeScaleData(Date start, Date end)
public void delete()
Deletes a resource and its assignments from project.
Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.