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 a specified instance of the
Resource class. |
<T> T |
get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.
|
ResourceAssignmentCollection |
getAssignments()
Gets a collection of resource assignments for this object.
|
AvailabilityPeriodCollection |
getAvailabilityPeriods()
Gets a the instance of the
AvailabilityPeriodCollection class. |
BaselineCollection |
getBaselines()
Gets a BaselineCollection instance for this object.
|
ExtendedAttributeCollection |
getExtendedAttributes()
Gets the values of an extended attribute.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> |
getItems()
Gets child resources.
|
OutlineCodeCollection |
getOutlineCode()
Gets an OutlineCodeCollection object.
|
Project |
getParentProject()
Gets parent project for this container.
|
RateCollection |
getRates()
Gets a the instance of the
RateCollection class for this object. |
TimephasedDataCollection |
getTimephasedData()
Gets an instance of
TimephasedDataCollection class for this object. |
TimephasedDataCollection |
getTimephasedData(Date start,
Date end)
Returns
TimephasedDataCollection for this object with TimephasedData (getTimephasedData() /setTimephasedData(TimephasedDataCollection) )values within given start and end
dates. |
TimephasedDataCollection |
getTimephasedData(Date start,
Date end,
int timephasedType)
Returns an instance of the
TimephasedDataCollection class for this object with the TimephasedData (getTimephasedData() /setTimephasedData(TimephasedDataCollection) ) values within
given start and end dates of specified TimephasedDataType . |
boolean |
hasChildren()
Reserved for internal usage.
|
int |
hashCode()
Returns a hash code value for the instance of the
Resource class. |
<T> void |
set(Class<T> typeOfT,
Key<T,Integer> key,
T val) |
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 an instance of
TimephasedDataCollection class for this object. |
String |
toString()
Returns short string representation of the instance of the
Resource class. |
public final void delete()
Deletes a resource and its assignments from project.
public final boolean equals(Resource other)
Returns a value indicating whether this instance is equal to a specified instance of the Resource
class.
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
public final <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 final ResourceAssignmentCollection getAssignments()
Gets a collection of resource assignments for this object.
public final AvailabilityPeriodCollection getAvailabilityPeriods()
Gets a the instance of the AvailabilityPeriodCollection
class.
The collection of periods during which a resource is available.
AvailabilityPeriodCollection
class.public final BaselineCollection getBaselines()
Gets a BaselineCollection instance for this object. The baseline values for a resource.
public final ExtendedAttributeCollection getExtendedAttributes()
Gets the values of an extended attribute.
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> getItems()
public final OutlineCodeCollection getOutlineCode()
Gets an OutlineCodeCollection object. The value of an outline code.
public final Project getParentProject()
Gets parent project for this container.
public final RateCollection getRates()
Gets a the instance of the RateCollection
class for this object.
The collection of periods and rates associated with each one.
RateCollection
class for this object.public final TimephasedDataCollection getTimephasedData()
Gets an instance of TimephasedDataCollection
class for this object.
TimephasedDataCollection
class for this object.public final void setTimephasedData(TimephasedDataCollection value)
Sets an instance of TimephasedDataCollection
class for this object.
value
- an instance of TimephasedDataCollection
class for this object.public final TimephasedDataCollection getTimephasedData(Date start, Date end, int timephasedType)
Returns an instance of the TimephasedDataCollection
class for this object with the TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) 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 (TimephasedDataType
).TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
).public final TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns TimephasedDataCollection
for this object with TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
)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 final boolean hasChildren()
public int hashCode()
Returns a hash code value for the instance of the Resource
class.
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 final 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.public String toString()
Returns short string representation of the instance of the Resource
class.
The exact details of the representation are unspecified and subject to change.