Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
equals(Resource other)
Returns a value indicating whether this instance is equal to the specified Resource instance.
|
<T> T |
get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.
|
ResourceAssignmentCollection |
getAssignments()
Returns a collection of resource assignments for this object.
|
AvailabilityPeriodCollection |
getAvailabilityPeriods()
Returns AvailabilityPeriodCollection object.
|
BaselineCollection |
getBaselines()
Returns BaselineCollection instance for this object.
|
ExtendedAttributeCollection |
getExtendedAttributes()
The values of an extended attribute.
|
OutlineCodeCollection |
getOutlineCode()
Returns OutlineCodeCollection object.
|
Project |
getParentProject()
Returns parent project for this container.
|
RateCollection |
getRates()
Returns the instance of the
RateCollection class for this object. |
TimephasedDataCollection |
getTimephasedData()
Returns an instance of
TimephasedDataCollection class for this object. |
TimephasedDataCollection |
getTimephasedData(Date start,
Date end)
/**
|
TimephasedDataCollection |
getTimephasedData(Date start,
Date end,
int timephasedType)
Returns an instance of the
TimephasedDataCollection class for this object with the TimephasedData values within given start and end dates of specified timephasedDataType. |
int |
hashCode()
Returns a hash code for this Resource.
|
<T> void |
set(Key<T,Integer> key,
T val)
Maps the specified property to the specified value in this container.
|
void |
setTimephasedData(TimephasedDataCollection value)
Sets a collection of TimephasedData values for this resource.
|
String |
toString()
Returns short string representation of a resource.
|
public Project getParentProject()
Returns parent project for this container.
Project
instance.public ExtendedAttributeCollection getExtendedAttributes()
The values of an extended attribute.
Read only ExtendedAttributeCollection
instance.
Two pieces of data are necessary - a pointer back to the extended attribute table
which is specified either by the unique ID or the Field ID, and the value
which is specified either with the value, or a pointer back to the value list.
public BaselineCollection getBaselines()
Returns BaselineCollection instance for this object.
The baseline values for a resource.
Read only BaselineCollection
object.
public OutlineCodeCollection getOutlineCode()
Returns OutlineCodeCollection object.
The value of an outline code.
Read only OutlineCodeCollection
instance.
Two pieces of data are necessary - a pointer to the outline code table that
is specified by the FieldID, and the value that is specified either by
the ValueID or ValueGUID pointer to the value list.
public AvailabilityPeriodCollection getAvailabilityPeriods()
Returns AvailabilityPeriodCollection object.
The collection of periods during which a resource is available.
Read only AvailabilityPeriodCollection
instance.
public RateCollection getRates()
Returns the instance of the RateCollection
class for this object.
The collection of periods and rates associated with each one.
Read-only RateCollection
instance.
public ResourceAssignmentCollection getAssignments()
Returns a collection of resource assignments for this object.
public TimephasedDataCollection getTimephasedData()
Returns an instance of TimephasedDataCollection
class for this object.
Read/write TimephasedDataCollection
object.
Reading supported for XML format only.
public void setTimephasedData(TimephasedDataCollection value)
value
- a collection of TimephasedData values for this object.public boolean equals(Resource other)
Returns a value indicating whether this instance is equal to the specified Resource instance.
other
- The Resource instance to compare with this instance.<b>True</b>
if the specified Resource instance has the same UID value as this instance; otherwise, <b>false</b>
.public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
public int hashCode()
public String toString()
Returns short string representation of a resource. The exact details of the representation are unspecified and subject to change.
public <T> T get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.
key
- the specified property key. Rsc
for getting the property key.public <T> void set(Key<T,Integer> key, T val)
Maps the specified property to the specified value in this container.
T
- the type of the mapped value.key
- the specified property key. Rsc
for getting the property key.val
- the value.public void delete()
Deletes a resource and its assignments from project.
public TimephasedDataCollection getTimephasedData(Date start, Date end, int timephasedType)
Returns an instance of the TimephasedDataCollection
class for this object with the TimephasedData
values within given start and end dates of specified timephasedDataType.
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 (Aspose.Tasks.TimephasedDataType
).TimephasedData
.public TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns TimephasedDataCollection for this object with TimephasedData
values within given start and end dates.
start
- The start date for the timephased data.end
- The end date for the timephased data.TimephasedData
.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.