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.
|
void |
set(Key<Date,Integer> key,
Date val)
Maps the specified property to the specified value in this container.
|
<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 ResourceAssignmentCollection getAssignments()
Returns a collection of resource assignments for this object.
public AvailabilityPeriodCollection getAvailabilityPeriods()
Returns AvailabilityPeriodCollection object.
The collection of periods during which a resource is available.
Read only AvailabilityPeriodCollection
instance.
public BaselineCollection getBaselines()
Returns BaselineCollection instance for this object.
The baseline values for a resource.
Read only BaselineCollection
object.
public ExtendedAttributeCollection getExtendedAttributes()
The values of an extended attribute.
Read only ExtendedAttributeCollection
instance.
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 Project getParentProject()
Returns parent project for this container.
Project
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 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 void delete()
Deletes a resource and its assignments from project.
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified 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 <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.
T
: the type of the mapped value.
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
.public int hashCode()
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 set(Key<Date,Integer> key, Date val)
Maps the specified property to the specified value in this container.
key
- the specified property key. Rsc
for getting the property key.val
- the value.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.