public final class Resource extends AbstractFieldContainer<Resource> implements Comparable<Resource>, ProjectEntityWithID, ChildResourceContainer
Modifier and Type | Method and Description |
---|---|
ProjectCalendar |
addCalendar()
This method allows a calendar to be added to a resource.
|
void |
addChildResource(Resource child)
Add an existing resource as a child of the current resource.
|
Resource |
addResource()
Creates and adds a resource to the list of resources held by this object.
|
void |
addResourceAssignment(ResourceAssignment assignment)
This method is used internally within MPXJ to track tasks which are
assigned to a particular resource.
|
void |
addRoleAssignment(Resource role,
SkillLevel skillLevel)
Add a role assignment, and a skill level for the role, to this resource.
|
int |
compareTo(Resource o)
This method implements the only method in the Comparable interface.
|
boolean |
equals(Object o) |
AccrueType |
getAccrueAt()
Gets the Accrue at type.The Accrue At field provides choices for how and
when resource standard and overtime costs are to be charged, or accrued,
to the cost of a task.
|
boolean |
getActive()
Retrieves the active flag.
|
String |
getActiveDirectoryGUID()
Retrieves the active directory GUID for this resource.
|
Number |
getActualCost()
Retrieves the actual cost for the work already performed by this resource.
|
Number |
getActualOvertimeCost()
Retrieve actual overtime cost.
|
Duration |
getActualOvertimeWork()
Retrieve the value of the actual overtime work field.
|
Duration |
getActualOvertimeWorkProtected()
Retrieves the actual overtime work protected duration.
|
Duration |
getActualWork()
Retrieves the Actual Work field contains the amount of work that has
already been done for all assignments assigned to a resource.
|
Duration |
getActualWorkProtected()
Retrieves the actual work protected duration.
|
Number |
getACWP()
Set the actual cost of work performed.
|
protected boolean |
getAlwaysCalculatedField(FieldType field)
Determine if the supplied field is always calculated.
|
AvailabilityTable |
getAvailability()
Retrieve the availability table for this resource.
|
LocalDateTime |
getAvailableFrom()
Retrieves the "available from" date.
|
LocalDateTime |
getAvailableTo()
Retrieves the "available to" date.
|
String |
getBaseCalendar()
Retrieves Base Calendar name associated with this resource.
|
Number |
getBaselineBudgetCost()
Retrieve the baseline budget cost.
|
Number |
getBaselineBudgetCost(int baselineNumber)
Retrieve a baseline budget cost.
|
Duration |
getBaselineBudgetWork()
Retrieve the baseline budget work.
|
Duration |
getBaselineBudgetWork(int baselineNumber)
Retrieve a baseline budget work.
|
Number |
getBaselineCost()
Retrieves the Baseline Cost value.
|
Number |
getBaselineCost(int baselineNumber)
Retrieve a baseline value.
|
Duration |
getBaselineWork()
Retrieves the Baseline Work value.
|
Duration |
getBaselineWork(int baselineNumber)
Retrieve a baseline value.
|
Number |
getBCWP()
Retrieves the budgeted cost of work performed.
|
Number |
getBCWS()
Retrieves the budgeted cost of work scheduled.
|
BookingType |
getBookingType()
Retrieves the booking type.
|
boolean |
getBudget()
Retrieve the budget flag.
|
Number |
getBudgetCost()
Retrieve the budget cost.
|
Duration |
getBudgetWork()
Retrieve the budget work.
|
boolean |
getCalculateCostsFromUnits()
Retrieve the calculate costs from units flag.
|
protected Function<Resource,Object> |
getCalculationMethod(FieldType field)
Retrieve the method used to calculate the value of the supplied field.
|
ProjectCalendar |
getCalendar()
This method retrieves the calendar associated with this resource.
|
Integer |
getCalendarUniqueID()
Retrieve the calendar unique ID.
|
boolean |
getCanLevel()
Retrieves the flag indicating if the resource levelling can be applied to
this resource.
|
List<Resource> |
getChildResources()
Retrieve a list of child resources held by this object.
|
String |
getCode()
Gets code field value.
|
Number |
getCost()
Retrieves the cost field value.
|
Number |
getCost(int index)
Retrieve a cost value.
|
String |
getCostCenter()
Retrieve the cost center.
|
Number |
getCostPerUse()
Retrieve the cost per use.
|
CostRateTable |
getCostRateTable(int index)
Retrieves a cost rate table associated with a resource.
|
Number |
getCostVariance()
Retrieves the cost variance.
|
LocalDateTime |
getCreationDate()
Retrieves the creation date.
|
Availability |
getCurrentAvailabilityTableEntry()
Retrieve the availability table entry effective for the current date.
|
CostRateTableEntry |
getCurrentCostRateTableEntry(int costRateTable)
Retrieve the cost rate table entry effective for the current date.
|
Number |
getCV()
Retrieve the cost variance.
|
LocalDateTime |
getDate(int index)
Retrieve a date value.
|
Number |
getDefaultUnits()
Retrieves the default availability of a resource.
|
String |
getDescription()
Retrieve the description field.
|
Duration |
getDuration(int index)
Retrieve a duration value.
|
String |
getEmailAddress()
Retrieves the resource's email address.
|
boolean |
getEnterprise()
Retrieves a flag indicating that a resource is an enterprise resource.
|
Number |
getEnterpriseCost(int index)
Retrieve an enterprise field value.
|
LocalDateTime |
getEnterpriseDate(int index)
Retrieve an enterprise field value.
|
Duration |
getEnterpriseDuration(int index)
Retrieve an enterprise field value.
|
boolean |
getEnterpriseFlag(int index)
Retrieve an enterprise field value.
|
Number |
getEnterpriseNumber(int index)
Retrieve an enterprise field value.
|
String |
getEnterpriseText(int index)
Retrieve an enterprise field value.
|
boolean |
getExpensesOnly()
Retrieve the expenses only field.
|
Object |
getFieldByAlias(String alias)
Retrieve the value of a field using its alias.
|
LocalDateTime |
getFinish()
Retrieves the latest finish date for all assigned tasks.
|
LocalDateTime |
getFinish(int index)
Retrieve a finish value.
|
boolean |
getFlag(int index)
Retrieve a flag value.
|
boolean |
getGeneric()
Retrieves the generic flag.
|
String |
getGroup()
Gets Group field value.
|
UUID |
getGUID()
Retrieves the resource GUID.
|
String |
getHyperlink()
Retrieves the hyperlink text.
|
String |
getHyperlinkAddress()
Retrieves the hyperlink address.
|
String |
getHyperlinkScreenTip()
Retrieves the hyperlink screen tip attribute.
|
String |
getHyperlinkSubAddress()
Retrieves the hyperlink sub-address.
|
Integer |
getID()
Gets ID field value.
|
String |
getInitials()
Gets Initials of name field value.
|
boolean |
getLinkedFields()
Gets Linked Fields field value.
|
Location |
getLocation()
Retrieves the location.
|
Integer |
getLocationUniqueID()
Retrieves the location unique ID.
|
String |
getMaterialLabel()
Retrieves the units label for a material resource.
|
Number |
getMaxUnits()
Retrieves the maximum availability of a resource on the current date.
|
boolean |
getModifyOnIntegrate()
Retrieve the modify on integrate value.
|
String |
getName()
Gets Resource Name field value.
|
String |
getNotes()
Retrieve the plain text representation of the resource notes.
|
Notes |
getNotesObject()
Retrieve an object which contains both the plain text notes
and, if relevant, the original formatted version of the notes.
|
String |
getNtAccount()
Retrieves the Windows account name for a resource.
|
boolean |
getNull()
Retrieve a flag indicating if this is a null resource.
|
Number |
getNumber(int index)
Retrieve a number value.
|
Integer |
getObjects()
Gets objects field value.
|
String |
getOutlineCode(int index)
Retrieve an outline code value.
|
boolean |
getOverAllocated()
Retrieves the overallocated flag.
|
Number |
getOvertimeCost()
Retrieve the value of the overtime cost field.
|
Rate |
getOvertimeRate()
Retrieves the overtime rate for this resource.
|
Duration |
getOvertimeWork()
Retrieves the amount of overtime work.
|
ProjectFile |
getParentFile()
Accessor method allowing retrieval of ProjectFile reference.
|
Resource |
getParentResource()
Retrieve the parent resource.
|
Integer |
getParentResourceUniqueID()
Retrieve the parent resource's Unique ID.
|
Number |
getPeakUnits()
Retrieves the peak resource utilisation.
|
Number |
getPercentWorkComplete()
Retrieves the value of the percent work complete field.
|
Number |
getPerDay()
Retrieve the per day field.
|
Number |
getPeriodDur()
Retrieve the period dur field.
|
String |
getPhone()
Retrieve the phone field.
|
String |
getPhonetics()
Retrieves phonetic information for the Japanese version of MS Project.
|
Number |
getPool()
Retrieve the pool field.
|
Resource |
getPrimaryRole()
Retrieves the primary role.
|
Integer |
getPrimaryRoleUniqueID()
Retrieves the primary role unique ID.
|
Number |
getPriority()
Retrieve the priority field.
|
Number |
getRate()
Retrieve the rate field.
|
Duration |
getRegularWork()
Retrieve the value of the regular work field.
|
Number |
getRemainingCost()
Retrieves the remaining cost for this resource.
|
Number |
getRemainingOvertimeCost()
Retrieve the remaining overtime cost.
|
Duration |
getRemainingOvertimeWork()
Retrieve the value of the remaining overtime work field.
|
Duration |
getRemainingWork()
Gets Remaining Work field value.
|
String |
getResourceID()
Retrieve the resource ID field.
|
boolean |
getRole()
Retrieve the role field.
|
Map<Resource,SkillLevel> |
getRoleAssignments()
Retrieve a map of the roles assigned to this resource.
|
Integer |
getSequenceNumber()
Retrieve this resource's sequence number.
|
Shift |
getShift()
Retrieves the shift.
|
Integer |
getShiftUniqueID()
Retrieves the shift unique ID.
|
Rate |
getStandardRate()
Gets Standard Rate field value.
|
LocalDateTime |
getStart()
Retrieves the earliest start date for all assigned tasks.
|
LocalDateTime |
getStart(int index)
Retrieve a start value.
|
Integer |
getSubprojectResourceUniqueID()
Where a resource in an MPP file represents a resource from a subproject,
this value will be non-zero.
|
String |
getSupplyReference()
Retrieve the supply reference field.
|
Number |
getSV()
Retrieve the schedule variance.
|
List<ResourceAssignment> |
getTaskAssignments()
Retrieve a list of tasks assigned to this resource.
|
String |
getText(int index)
Retrieve a text value.
|
ResourceType |
getType()
Retrieves the resource type.
|
Integer |
getUniqueID()
Gets Unique ID field value.
|
String |
getUnit()
Retrieve the unit field.
|
UnitOfMeasure |
getUnitOfMeasure()
Retrieves the unit of measure for this resource.
|
Integer |
getUnitOfMeasureUniqueID()
Retrieve the unit of measure unique ID.
|
Duration |
getWork()
Gets Work field value.
|
WorkGroup |
getWorkGroup()
Retrieve the messaging method used to communicate with a project team.
|
Duration |
getWorkVariance()
Retrieves the work variance.
|
protected void |
handleFieldChange(FieldType field,
Object oldValue,
Object newValue)
Clear any cached calculated values which will be affected by this change.
|
int |
hashCode() |
void |
remove()
Removes this resource from the project.
|
void |
removeChildResource(Resource child)
Removes a child resource.
|
void |
removeRoleAssignment(Resource role)
Remove a role assignment from this resource.
|
void |
setAccrueAt(AccrueType type)
Sets the Accrue at type.The Accrue At field provides choices for how and
when resource standard and overtime costs are to be charged, or accrued,
to the cost of a task.
|
void |
setActive(boolean value)
Sets the active flag.
|
void |
setActiveDirectoryGUID(String guid)
Sets the active directory GUID for this resource.
|
void |
setActualCost(Number actualCost)
Set the actual cost for the work already performed by this resource.
|
void |
setActualOvertimeCost(Number actualOvertimeCost)
Sets the actual overtime cost.
|
void |
setActualOvertimeWork(Duration duration)
Sets the value of the actual overtime work field.
|
void |
setActualOvertimeWorkProtected(Duration duration)
Sets the actual overtime work protected duration.
|
void |
setActualWork(Duration val)
Sets the Actual Work field contains the amount of work that has already
been done for all assignments assigned to a resource.
|
void |
setActualWorkProtected(Duration duration)
Sets the actual work protected duration.
|
void |
setACWP(Number acwp)
Set the actual cost of work performed.
|
void |
setBaseCalendar(String val)
Sets the Base Calendar field indicates which calendar is the base calendar
for a resource calendar.
|
void |
setBaselineBudgetCost(int baselineNumber,
Number value)
Set a baseline budget cost.
|
void |
setBaselineBudgetCost(Number value)
Set the baseline budget cost.
|
void |
setBaselineBudgetWork(Duration value)
Set the baseline budget work.
|
void |
setBaselineBudgetWork(int baselineNumber,
Duration value)
Set a baseline budget work.
|
void |
setBaselineCost(int baselineNumber,
Number value)
Set a baseline value.
|
void |
setBaselineCost(Number val)
Sets the baseline cost.
|
void |
setBaselineWork(Duration val)
Sets the baseline work duration.
|
void |
setBaselineWork(int baselineNumber,
Duration value)
Set a baseline value.
|
void |
setBCWP(Number bcwp)
Sets the budgeted cost of work performed.
|
void |
setBCWS(Number bcws)
Sets the budgeted cost of work scheduled.
|
void |
setBookingType(BookingType bookingType)
Sets the booking type.
|
void |
setBudget(boolean budget)
Set the budget flag.
|
void |
setBudgetCost(Number value)
Set the budget cost.
|
void |
setBudgetWork(Duration value)
Set the budget work.
|
void |
setCalculateCostsFromUnits(boolean calculateCostsFromUnits)
Set the calculate costs from units flag.
|
void |
setCalendar(ProjectCalendar calendar)
This method allows a pre-existing resource calendar to be attached to a
resource.
|
void |
setCalendarUniqueID(Integer id)
Set the calendar unique ID.
|
void |
setCanLevel(boolean canLevel)
Sets the flag indicating if the resource levelling can be applied to this
resource.
|
void |
setCode(String val)
Sets code field value.
|
void |
setCost(int index,
Number value)
Set a cost value.
|
void |
setCost(Number cost)
Sets the cost field value.
|
void |
setCostCenter(String value)
Set the cost center.
|
void |
setCostRateTable(int index,
CostRateTable crt)
Associates a complete cost rate table with the
current resource.
|
void |
setCostVariance(Number costVariance)
Sets the cost variance.
|
void |
setCreationDate(LocalDateTime creationDate)
Sets the creation date.
|
void |
setCV(Number cv)
Set the cost variance.
|
void |
setDate(int index,
LocalDateTime value)
Set a date value.
|
void |
setDefaultUnits(Number defaultUnits)
Sets the default availability of a resource.
|
void |
setDescription(String value)
Set the description field.
|
void |
setDuration(int index,
Duration value)
Set a duration value.
|
void |
setEmailAddress(String emailAddress)
Set the resource's email address.
|
void |
setEnterprise(boolean enterprise)
Sets a flag indicating that a resource is an enterprise resource.
|
void |
setEnterpriseCost(int index,
Number value)
Set an enterprise field value.
|
void |
setEnterpriseDate(int index,
LocalDateTime value)
Set an enterprise field value.
|
void |
setEnterpriseDuration(int index,
Duration value)
Set an enterprise field value.
|
void |
setEnterpriseFlag(int index,
boolean value)
Set an enterprise field value.
|
void |
setEnterpriseNumber(int index,
Number value)
Set an enterprise field value.
|
void |
setEnterpriseText(int index,
String value)
Set an enterprise field value.
|
void |
setExpensesOnly(boolean value)
Set the expenses only field.
|
void |
setFieldByAlias(String alias,
Object value)
Set the value of a field using its alias.
|
void |
setFinish(int index,
LocalDateTime value)
Set a finish value.
|
void |
setFlag(int index,
boolean value)
Set a flag value.
|
void |
setGeneric(boolean value)
Sets the generic flag.
|
void |
setGroup(String val)
Sets Group field value.
|
void |
setGUID(UUID value)
Sets the resource GUID.
|
void |
setHyperlink(String hyperlink)
Sets the hyperlink text.
|
void |
setHyperlinkAddress(String hyperlinkAddress)
Sets the hyperlink address.
|
void |
setHyperlinkScreenTip(String text)
Sets the hyperlink screen tip attribute.
|
void |
setHyperlinkSubAddress(String hyperlinkSubAddress)
Sets the hyperlink sub-address.
|
void |
setID(Integer val)
Sets ID field value.
|
void |
setInitials(String val)
Sets Initials field value.
|
void |
setIsNull(boolean isNull)
Set the flag indicating that this is a null resource.
|
void |
setLinkedFields(boolean val)
This field is ignored on import into MS Project.
|
void |
setLocation(Location location)
Sets the location.
|
void |
setLocationUniqueID(Integer uniqueID)
Sets the location unique ID.
|
void |
setModifyOnIntegrate(boolean value)
Set the modify on integrate field.
|
void |
setName(String val)
Sets Name field value.
|
void |
setNotes(String notes)
Sets the notes text for this resource.
|
void |
setNotesObject(Notes notes)
Set the Notes instance representing the resource notes.
|
void |
setNtAccount(String ntAccount)
Sets the Windows account name for a resource.
|
void |
setNumber(int index,
Number value)
Set a number value.
|
void |
setObjects(Integer val)
Set objects.
|
void |
setOutlineCode(int index,
String value)
Set an outline code value.
|
void |
setOverAllocated(boolean overallocated)
Set the overallocated flag.
|
void |
setOvertimeCost(Number currency)
Set the value of the overtime cost field.
|
void |
setOvertimeWork(Duration overtimeWork)
Sets the amount of overtime work.
|
void |
setParentResource(Resource resource)
Set the parent resource.
|
void |
setParentResourceUniqueID(Integer id)
Sets the parent resource's Unique ID.
|
void |
setPeakUnits(Number peakUnits)
Sets peak resource utilisation.
|
void |
setPercentWorkComplete(Number percentWorkComplete)
Sets the value of the percent work complete field.
|
void |
setPerDay(Number value)
Set the per day field.
|
void |
setPeriodDur(Number value)
Set the period dur field.
|
void |
setPhone(String value)
Set the phone field.
|
void |
setPhonetics(String phonetics)
Sets phonetic information for the Japanese version of MS Project.
|
void |
setPool(Number value)
Set the pool field.
|
void |
setPrimaryRole(Resource role)
Sets the primary role.
|
void |
setPrimaryRoleUniqueID(Integer uniqueID)
Sets the primary role unique ID.
|
void |
setPriority(Number value)
Set the priority field.
|
void |
setRate(Number value)
Set the rate field.
|
void |
setRegularWork(Duration duration)
Set the value of the regular work field.
|
void |
setRemainingCost(Number remainingCost)
Sets the remaining cost for this resource.
|
void |
setRemainingOvertimeCost(Number remainingOvertimeCost)
Set the remaining overtime cost.
|
void |
setRemainingOvertimeWork(Duration duration)
Sets the value of the remaining overtime work field.
|
void |
setRemainingWork(Duration val)
This field is ignored on import into MS Project.
|
void |
setResourceID(String value)
Set the resource ID field.
|
void |
setRole(boolean value)
Set the role field.
|
void |
setSequenceNumber(Integer sequenceNumber)
Set this resource's sequence number.
|
void |
setShift(Shift shift)
Sets the shift.
|
void |
setShiftUniqueID(Integer uniqueID)
Sets the shift unique ID.
|
void |
setStart(int index,
LocalDateTime value)
Set a start value.
|
void |
setSubprojectResourceUniqueID(Integer subprojectUniqueResourceID)
Sets the sub project unique resource ID.
|
void |
setSupplyReference(String value)
Set the supply reference field.
|
void |
setSV(Number sv)
Set the schedule variance.
|
void |
setText(int index,
String value)
Set a text value.
|
void |
setType(ResourceType type)
Set the resource type.
|
void |
setUniqueID(Integer val)
Sets Unique ID of this resource.
|
void |
setUnit(String value)
Set the unit field.
|
void |
setUnitOfMeasure(UnitOfMeasure unitOfMeasure)
Sets the unit of measure instance for this resource.
|
void |
setUnitOfMeasureUniqueID(Integer uniqueID)
Sets the unit of measure unique ID.
|
void |
setWork(Duration val)
This field is ignored on import into MS Project.
|
void |
setWorkGroup(WorkGroup workGroup)
Set the messaging method used to communicate with a project team.
|
void |
setWorkVariance(Duration workVariance)
Sets the work variance.
|
String |
toString() |
addFieldListener, disableEvents, enableEvents, get, getCachedValue, removeFieldListener, set
public Resource addResource()
ChildResourceContainer
addResource
in interface ChildResourceContainer
public void addChildResource(Resource child)
child
- child resourcepublic List<Resource> getChildResources()
ChildResourceContainer
getChildResources
in interface ChildResourceContainer
public void removeChildResource(Resource child)
child
- child resource instancepublic void setName(String val)
val
- valuepublic String getName()
public void setType(ResourceType type)
type
- resource typepublic ResourceType getType()
public void setIsNull(boolean isNull)
isNull
- null resource flagpublic boolean getNull()
public void setInitials(String val)
val
- valuepublic String getInitials()
public void setPhonetics(String phonetics)
phonetics
- Japanese phonetic informationpublic String getPhonetics()
public void setNtAccount(String ntAccount)
ntAccount
- windows account namepublic String getNtAccount()
public String getMaterialLabel()
public void setCode(String val)
val
- valuepublic String getCode()
public void setGroup(String val)
val
- valuepublic String getGroup()
public void setWorkGroup(WorkGroup workGroup)
workGroup
- messaging methodpublic WorkGroup getWorkGroup()
public void setEmailAddress(String emailAddress)
emailAddress
- email addresspublic String getEmailAddress()
public void setHyperlink(String hyperlink)
hyperlink
- hyperlink textpublic String getHyperlink()
public void setHyperlinkAddress(String hyperlinkAddress)
hyperlinkAddress
- hyperlink addresspublic String getHyperlinkAddress()
public void setHyperlinkSubAddress(String hyperlinkSubAddress)
hyperlinkSubAddress
- hyperlink sub-addresspublic String getHyperlinkSubAddress()
public void setHyperlinkScreenTip(String text)
text
- hyperlink screen tip attributepublic String getHyperlinkScreenTip()
public void setDefaultUnits(Number defaultUnits)
defaultUnits
- default availabilitypublic Number getDefaultUnits()
public Number getMaxUnits()
public void setPeakUnits(Number peakUnits)
peakUnits
- peak resource utilisationpublic Number getPeakUnits()
public void setOverAllocated(boolean overallocated)
overallocated
- overallocated flagpublic boolean getOverAllocated()
public LocalDateTime getAvailableFrom()
public LocalDateTime getAvailableTo()
public LocalDateTime getStart()
public LocalDateTime getFinish()
public void setCanLevel(boolean canLevel)
canLevel
- boolean flagpublic boolean getCanLevel()
public void setAccrueAt(AccrueType type)
type
- accrue typepublic AccrueType getAccrueAt()
public void setWork(Duration val)
val
- - value to be setpublic Duration getWork()
public Duration getRegularWork()
public void setRegularWork(Duration duration)
duration
- Regular work valuepublic void setActualWork(Duration val)
val
- duration valuepublic Duration getActualWork()
public void setOvertimeWork(Duration overtimeWork)
overtimeWork
- overtime workpublic Duration getOvertimeWork()
public void setRemainingWork(Duration val)
val
- - value to be setpublic Duration getRemainingWork()
public Duration getActualOvertimeWork()
public void setActualOvertimeWork(Duration duration)
duration
- actual overtime work valuepublic Duration getRemainingOvertimeWork()
public void setRemainingOvertimeWork(Duration duration)
duration
- remaining overtime work valuepublic void setPercentWorkComplete(Number percentWorkComplete)
percentWorkComplete
- percent work completepublic Number getPercentWorkComplete()
public Rate getStandardRate()
public void setCost(Number cost)
cost
- cost field valuepublic Number getCost()
public Rate getOvertimeRate()
public Number getOvertimeCost()
public void setOvertimeCost(Number currency)
currency
- Overtime costpublic Number getCostPerUse()
public void setActualCost(Number actualCost)
actualCost
- actual costpublic Number getActualCost()
public Number getActualOvertimeCost()
public void setActualOvertimeCost(Number actualOvertimeCost)
actualOvertimeCost
- actual overtime costpublic void setRemainingCost(Number remainingCost)
remainingCost
- remaining costpublic Number getRemainingCost()
public Number getRemainingOvertimeCost()
public void setRemainingOvertimeCost(Number remainingOvertimeCost)
remainingOvertimeCost
- remaining overtime costpublic void setWorkVariance(Duration workVariance)
workVariance
- work variancepublic Duration getWorkVariance()
public void setCostVariance(Number costVariance)
costVariance
- cost variancepublic Number getCostVariance()
public void setSV(Number sv)
sv
- schedule variancepublic Number getSV()
public void setCV(Number cv)
cv
- cost variancepublic Number getCV()
public void setACWP(Number acwp)
acwp
- actual cost of work performedpublic Number getACWP()
public void setNotes(String notes)
notes
- notes to be addedpublic String getNotes()
public void setNotesObject(Notes notes)
notes
- Notes instancepublic Notes getNotesObject()
public void setBCWS(Number bcws)
bcws
- budgeted cost of work scheduledpublic Number getBCWS()
public void setBCWP(Number bcwp)
bcwp
- budgeted cost of work performedpublic Number getBCWP()
public void setGeneric(boolean value)
value
- generic flagpublic boolean getGeneric()
public void setActive(boolean value)
value
- generic flagpublic boolean getActive()
public void setActiveDirectoryGUID(String guid)
guid
- active directory GUIDpublic String getActiveDirectoryGUID()
public void setActualOvertimeWorkProtected(Duration duration)
duration
- actual overtime work protectedpublic Duration getActualOvertimeWorkProtected()
public void setActualWorkProtected(Duration duration)
duration
- actual work protectedpublic Duration getActualWorkProtected()
public void setBookingType(BookingType bookingType)
bookingType
- booking typepublic BookingType getBookingType()
public void setCreationDate(LocalDateTime creationDate)
creationDate
- creation datepublic LocalDateTime getCreationDate()
public void setEnterprise(boolean enterprise)
enterprise
- boolean flagpublic boolean getEnterprise()
public Integer getCalendarUniqueID()
public void setCalendarUniqueID(Integer id)
id
- calendar unique IDpublic ProjectCalendar getCalendar()
public void setCalendar(ProjectCalendar calendar)
calendar
- resource calendarpublic ProjectCalendar addCalendar() throws MPXJException
MPXJException
- if more than one calendar is addedpublic void setBaseCalendar(String val)
val
- calendar namepublic void setBaselineCost(Number val)
val
- - value to be setpublic void setBaselineWork(Duration val)
val
- - value to be setpublic void setID(Integer val)
setID
in interface ProjectEntityWithID
val
- valuepublic void setLinkedFields(boolean val)
val
- - value to be setpublic void setObjects(Integer val)
val
- - value to be setpublic void setText(int index, String value)
index
- text index (1-30)value
- text valuepublic String getText(int index)
index
- text index (1-30)public void setUniqueID(Integer val)
setUniqueID
in interface ProjectEntityWithMutableUniqueID
val
- Unique IDpublic String getBaseCalendar()
public Number getBaselineCost()
public Duration getBaselineWork()
public Integer getID()
getID
in interface ProjectEntityWithID
public boolean getLinkedFields()
public Integer getObjects()
public Integer getUniqueID()
getUniqueID
in interface ProjectEntityWithUniqueID
public Integer getParentResourceUniqueID()
public void setParentResourceUniqueID(Integer id)
id
- parent resource unique IDpublic Resource getParentResource()
public void setParentResource(Resource resource)
resource
- parent resourcepublic void setStart(int index, LocalDateTime value)
index
- start index (1-10)value
- start valuepublic LocalDateTime getStart(int index)
index
- start index (1-10)public void setFinish(int index, LocalDateTime value)
index
- finish index (1-10)value
- finish valuepublic LocalDateTime getFinish(int index)
index
- finish index (1-10)public void setNumber(int index, Number value)
index
- number index (1-20)value
- number valuepublic Number getNumber(int index)
index
- number index (1-20)public void setDuration(int index, Duration value)
index
- duration index (1-10)value
- duration valuepublic Duration getDuration(int index)
index
- duration index (1-10)public void setDate(int index, LocalDateTime value)
index
- date index (1-10)value
- date valuepublic LocalDateTime getDate(int index)
index
- date index (1-10)public void setCost(int index, Number value)
index
- cost index (1-10)value
- cost valuepublic Number getCost(int index)
index
- cost index (1-10)public void setFlag(int index, boolean value)
index
- flag index (1-20)value
- flag valuepublic boolean getFlag(int index)
index
- flag index (1-20)public void setOutlineCode(int index, String value)
index
- outline code index (1-10)value
- outline code valuepublic String getOutlineCode(int index)
index
- outline code index (1-10)public void remove()
public Object getFieldByAlias(String alias)
alias
- field aliaspublic void setFieldByAlias(String alias, Object value)
alias
- field aliasvalue
- field valuepublic void addResourceAssignment(ResourceAssignment assignment)
assignment
- resource assignment instancepublic List<ResourceAssignment> getTaskAssignments()
public void addRoleAssignment(Resource role, SkillLevel skillLevel)
role
- role to assign to the resourceskillLevel
- skill levelpublic void removeRoleAssignment(Resource role)
role
- role to removepublic Map<Resource,SkillLevel> getRoleAssignments()
public Integer getSubprojectResourceUniqueID()
resourceID = (subprojectUniqueID & 0xFFFF)
public void setSubprojectResourceUniqueID(Integer subprojectUniqueResourceID)
subprojectUniqueResourceID
- subproject unique resource IDpublic Number getEnterpriseCost(int index)
index
- field indexpublic void setEnterpriseCost(int index, Number value)
index
- field indexvalue
- field valuepublic LocalDateTime getEnterpriseDate(int index)
index
- field indexpublic void setEnterpriseDate(int index, LocalDateTime value)
index
- field indexvalue
- field valuepublic Duration getEnterpriseDuration(int index)
index
- field indexpublic void setEnterpriseDuration(int index, Duration value)
index
- field indexvalue
- field valuepublic boolean getEnterpriseFlag(int index)
index
- field indexpublic void setEnterpriseFlag(int index, boolean value)
index
- field indexvalue
- field valuepublic Number getEnterpriseNumber(int index)
index
- field indexpublic void setEnterpriseNumber(int index, Number value)
index
- field indexvalue
- field valuepublic String getEnterpriseText(int index)
index
- field indexpublic void setEnterpriseText(int index, String value)
index
- field indexvalue
- field valuepublic void setBaselineCost(int baselineNumber, Number value)
baselineNumber
- baseline index (1-10)value
- baseline valuepublic void setBaselineWork(int baselineNumber, Duration value)
baselineNumber
- baseline index (1-10)value
- baseline valuepublic Number getBaselineCost(int baselineNumber)
baselineNumber
- baseline index (1-10)public Duration getBaselineWork(int baselineNumber)
baselineNumber
- baseline index (1-10)public boolean getBudget()
public void setBudget(boolean budget)
budget
- budget flagpublic UUID getGUID()
public void setUnit(String value)
value
- unit valuepublic String getUnit()
public void setSupplyReference(String value)
value
- supply reference valuepublic String getSupplyReference()
public void setDescription(String value)
value
- description fieldpublic String getDescription()
public void setResourceID(String value)
value
- resource ID valuepublic String getResourceID()
public void setModifyOnIntegrate(boolean value)
value
- modify on integrate valuepublic boolean getModifyOnIntegrate()
public void setExpensesOnly(boolean value)
value
- expenses only valuepublic boolean getExpensesOnly()
public void setPeriodDur(Number value)
value
- period dur valuepublic Number getPeriodDur()
public void setPriority(Number value)
value
- priority valuepublic Number getPriority()
public void setRate(Number value)
value
- rate valuepublic Number getRate()
public void setPool(Number value)
value
- pool valuepublic Number getPool()
public void setPerDay(Number value)
value
- per day valuepublic Number getPerDay()
public void setPhone(String value)
value
- phone valuepublic String getPhone()
public void setRole(boolean value)
value
- role valuepublic boolean getRole()
public void setGUID(UUID value)
value
- resource GUIDpublic void setCostRateTable(int index, CostRateTable crt)
index
- table indexcrt
- table instancepublic CostRateTable getCostRateTable(int index)
index
- table indexpublic CostRateTableEntry getCurrentCostRateTableEntry(int costRateTable)
costRateTable
- cost rate table indexpublic AvailabilityTable getAvailability()
public Availability getCurrentAvailabilityTableEntry()
public Number getBudgetCost()
public void setBudgetCost(Number value)
value
- budget cost valuepublic Duration getBudgetWork()
public void setBudgetWork(Duration value)
value
- budget work valuepublic Number getBaselineBudgetCost()
public void setBaselineBudgetCost(Number value)
value
- baseline budget cost valuepublic Duration getBaselineBudgetWork()
public void setBaselineBudgetWork(Duration value)
value
- baseline budget work valuepublic Number getBaselineBudgetCost(int baselineNumber)
baselineNumber
- baseline numberpublic void setBaselineBudgetCost(int baselineNumber, Number value)
baselineNumber
- baseline numbervalue
- baseline budget cost valuepublic Duration getBaselineBudgetWork(int baselineNumber)
baselineNumber
- baseline numberpublic void setBaselineBudgetWork(int baselineNumber, Duration value)
baselineNumber
- baseline numbervalue
- baseline budget work valuepublic String getCostCenter()
public void setCostCenter(String value)
value
- cost center valuepublic boolean getCalculateCostsFromUnits()
public void setCalculateCostsFromUnits(boolean calculateCostsFromUnits)
calculateCostsFromUnits
- calculate costs from units flagpublic Integer getSequenceNumber()
public void setSequenceNumber(Integer sequenceNumber)
sequenceNumber
- sequence numberpublic Integer getLocationUniqueID()
public void setLocationUniqueID(Integer uniqueID)
uniqueID
- location unique IDpublic Location getLocation()
public void setLocation(Location location)
location
- locationpublic Integer getShiftUniqueID()
public void setShiftUniqueID(Integer uniqueID)
uniqueID
- shift unique IDpublic Shift getShift()
public void setShift(Shift shift)
shift
- shiftpublic Integer getUnitOfMeasureUniqueID()
public void setUnitOfMeasureUniqueID(Integer uniqueID)
uniqueID
- unit of measure unique IDpublic UnitOfMeasure getUnitOfMeasure()
public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure)
unitOfMeasure
- unit of measure instancepublic Integer getPrimaryRoleUniqueID()
public void setPrimaryRoleUniqueID(Integer uniqueID)
uniqueID
- primary role unique IDpublic Resource getPrimaryRole()
public void setPrimaryRole(Resource role)
role
- primary roleprotected void handleFieldChange(FieldType field, Object oldValue, Object newValue)
field
- modified fieldnewValue
- new valueoldValue
- old value of the updated fieldprotected boolean getAlwaysCalculatedField(FieldType field)
AbstractFieldContainer
field
- field to checkprotected Function<Resource,Object> getCalculationMethod(FieldType field)
AbstractFieldContainer
field
- target fieldpublic int compareTo(Resource o)
compareTo
in interface Comparable<Resource>
o
- object to compare this instance withpublic final ProjectFile getParentFile()
Copyright © 2000–2024 Packwood Software. All rights reserved.