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 ResourceAssignment object.
|
<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.
|
<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 Project getParentProject()
Returns parent project for this assignment.
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 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 <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 <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 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 ResourceAssignment object.
other
- the specified object to compare with this instance.<b>True</b>
if the specified ResourceAssignment object has the same resource and task 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 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.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 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 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.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.