public class ResourceAssignment extends Object implements com.aspose.ms.System.IEquatable<ResourceAssignment>
Represents a resource assignment in a project.
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes resource assignment from project assignments collection.
|
boolean |
equals(Object obj) |
boolean |
equals(ResourceAssignment other)
Returns a value indicating whether this instance is equal to a specified instance of the
ResourceAssignment class. |
<T> T |
get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.
|
AssignmentBaselineCollection |
getBaselines()
Returns AssignmentBaselineCollection object.
|
ExtendedAttributeCollection |
getExtendedAttributes()
Returns instance of the ExtendedAttributeCollection class for this object.
|
Project |
getParentProject()
Returns parent project for this assignment.
|
TimephasedDataCollection |
getTimephasedData()
Returns the instance of
TimephasedDataCollection class containing elements of TimephasedData class. |
TimephasedDataCollection |
getTimephasedData(Date start,
Date end)
Returns
TimephasedDataCollection object with TimephasedData values within given start and end dates of TimephasedDataType.AssignmentWork . |
TimephasedDataCollection |
getTimephasedData(Date start,
Date end,
int timephasedType)
Returns
TimephasedDataCollection object with time phased data instances within given start and end dates of specified TimephasedDataType . |
int |
hashCode() |
Date |
makeTPs(Date start,
double time,
Calendar calendar,
List<TimephasedData> outTP,
boolean isWorking,
int type)
Generates a list of time phased data.
|
void |
set(Key<com.aspose.tasks.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 |
setExtendedAttributes(ExtendedAttributeCollection value)
Sets a collection of ExtendedAttribute values for this ResourceAssignment.
|
void |
setTimephasedData(TimephasedDataCollection value)
Sets TimephasedDataCollection for this resource assignment.
|
void |
splitTask(Date start,
Date finish,
Calendar calendar)
Splits task into two parts.
|
void |
timephasedDataFromTaskDuration(Calendar calendar)
Generates a list of TimephasedData values based on the task duration and the scheduled start date.
|
String |
toString() |
public AssignmentBaselineCollection getBaselines()
Returns AssignmentBaselineCollection object.
The collection of baseline values associated with an assignment.
Read only AssignmentBaselineCollection
instance.
public ExtendedAttributeCollection getExtendedAttributes()
Returns instance of the ExtendedAttributeCollection class for this object.
Read only instance of the ExtendedAttributeCollection
class.
Reading supported for XML format only.
public void setExtendedAttributes(ExtendedAttributeCollection value)
value
- a collection of ExtendedAttribute values for this ResourceAssignment ExtendedAttributeCollection
.public Project getParentProject()
Returns parent project for this assignment.
public TimephasedDataCollection getTimephasedData()
Returns the instance of TimephasedDataCollection
class containing elements of TimephasedData
class.
public void setTimephasedData(TimephasedDataCollection value)
value
- the specified collection of timephased data values.public void delete()
Deletes resource assignment from project assignments collection.
public boolean equals(ResourceAssignment other)
Returns a value indicating whether this instance is equal to a specified instance of the ResourceAssignment
class.
other
- The specified instance of the ResourceAssignment
class to compare with this instance.<b>True</b>
if the specified instance of the ResourceAssignment
class has the same Uid value as this instance; otherwise, <b>false</b>
.public boolean equals(Object obj)
equals
in interface com.aspose.ms.System.IEquatable<ResourceAssignment>
equals
in class Object
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. Asn
for getting the property key.public TimephasedDataCollection getTimephasedData(Date start, Date end, int timephasedType)
Returns TimephasedDataCollection
object with time phased data instances within given start and end dates of specified TimephasedDataType
.
start
- The start date for the timephased data.end
- The end date for the timephased data.timephasedType
- The type of timephased data (Aspose.Tasks.TimephasedDataType
).public TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns TimephasedDataCollection
object with TimephasedData
values within given start and end dates of TimephasedDataType.AssignmentWork
.
start
- The specified start date for the timephased data.end
- The specified end date for the timephased data.Aspose.Tasks.TimephasedData
to be filled in.public Date makeTPs(Date start, double time, Calendar calendar, List<TimephasedData> outTP, boolean isWorking, int type)
Generates a list of time phased data.
start
- the specified start date.time
- the specified working time.calendar
- the specified working calendar.outTP
- result.isWorking
- specifies whether timephased data values are for working days.type
- the specified TimephasedData type.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. Asn
for getting the property key.val
- the value.public void set(Key<com.aspose.tasks.Date,Integer> key, Date val)
Maps the specified property to the specified value in this container.
key
- the specified property key. Asn
for getting the property key.val
- the value.public void splitTask(Date start, Date finish, Calendar calendar)
Splits task into two parts.
start
- the beginning of work interruption.finish
- the end of work interruption.calendar
- the specified calendar.public void timephasedDataFromTaskDuration(Calendar calendar)
Generates a list of TimephasedData values based on the task duration and the scheduled start date.
calendar
- the specified calendar to generate a list of TimephasedData values from.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.