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.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> |
getChildren_IExtendedAttributeParent()
Gets child resources.
|
ExtendedAttributeCollection |
getExtendedAttributes()
Gets the values of an extended attribute.
|
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)
/**
|
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()
Gets a value indicating that this resource has children.
|
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.
Read only AvailabilityPeriodCollection
instance.
public final BaselineCollection getBaselines()
Gets a BaselineCollection instance for this object.
The baseline values for a resource.
Read only BaselineCollection
object.
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> getChildren_IExtendedAttributeParent()
public final ExtendedAttributeCollection getExtendedAttributes()
Gets the values of an extended attribute.
Read only ExtendedAttributeCollection
instance.
public final OutlineCodeCollection getOutlineCode()
Gets an OutlineCodeCollection object.
The value of an outline code.
Read only OutlineCodeCollection
instance.
public final Project getParentProject()
Gets parent project for this container.
Project
instance.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.
Read-only RateCollection
instance.
public final TimephasedDataCollection getTimephasedData()
Gets an instance of TimephasedDataCollection
class for this object.
Read/write TimephasedDataCollection
object.
public final void setTimephasedData(TimephasedDataCollection value)
TimephasedDataCollection
class for this object.
Read/write TimephasedDataCollection
object.
value
- a collection of TimephasedData values 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 of ResourceTimeScaledData.TaskTimescaledWork type.
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.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.