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)
Returns a value indicating whether this instance is equal to a specified object.
|
boolean |
equals(ResourceAssignment other)
Returns a value indicating whether this instance is equal to a specified instance of the
ResourceAssignment class. |
<T> T |
get(Class<T> typeOfT,
Key<T,Integer> key) |
<T> T |
get(Key<T,Integer> key)
Returns the value to which the property is mapped in this container.
|
AssignmentBaselineCollection |
getBaselines()
Gets AssignmentBaselineCollection object.
|
ExtendedAttributeCollection |
getExtendedAttributes()
Gets an instance of the ExtendedAttributeCollection class for this object.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> |
getItems()
Reserved for internal usage.
|
Project |
getParentProject()
Gets parent project for this assignment.
|
TimephasedDataCollection |
getTimephasedData()
Gets the instance of
TimephasedDataCollection class containing elements of TimephasedData (getTimephasedData() /setTimephasedData(TimephasedDataCollection) )class. |
TimephasedDataCollection |
getTimephasedData(Date start,
Date end)
Returns
TimephasedDataCollection object with the instances of TimephasedData (getTimephasedData() /setTimephasedData(TimephasedDataCollection) ) class within given start and end dates
of TimephasedDataType.AssignmentWork . |
TimephasedDataCollection |
getTimephasedData(Date start,
Date end,
int timephasedType)
Returns the instance
TimephasedDataCollection class containing instances of TimephasedData (getTimephasedData() /setTimephasedData(TimephasedDataCollection) ) class within given start and end dates
of specified TimephasedDataType . |
boolean |
hasChildren()
Gets a value indicating that this resource assignment has children.
|
int |
hashCode()
Returns a hash code value for the instance of the
ResourceAssignment class. |
Date |
makeTPs(Date start,
double time,
Calendar calendar,
List<TimephasedData> list,
boolean isWorking,
int type)
Generates a list of time phased data.
|
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 |
setExtendedAttributes(ExtendedAttributeCollection value)
Sets an instance of the ExtendedAttributeCollection class for this object.
|
void |
setTimephasedData(TimephasedDataCollection value)
Sets the instance of
TimephasedDataCollection class containing elements of TimephasedData (getTimephasedData() /setTimephasedData(TimephasedDataCollection) ) class. |
void |
splitTask(Date start,
Date finish,
Calendar calendar)
Splits task into two parts.
|
void |
timephasedDataFromTaskDuration(Calendar calendar)
Generates list of time phased data based on the task duration and the scheduled start date.
|
String |
toString()
Returns short string representation of the instance of the
ResourceAssignment class. |
public final void delete()
Deletes resource assignment from project assignments collection.
public final 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)
Returns a value indicating whether this instance is equal to a specified object.
equals
in interface com.aspose.ms.System.IEquatable<ResourceAssignment>
equals
in class Object
obj
- The object to compare with this instance.<b>True</b>
if o is a ResourceAssignment that assign the same resource and task as this instance;
otherwise, <b>false</b>
.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. Asn
for getting the property key.
T
: the type of the mapped value.
public final AssignmentBaselineCollection getBaselines()
Gets AssignmentBaselineCollection object.
The collection of baseline values associated with an assignment.
Read only AssignmentBaselineCollection
instance.
public final ExtendedAttributeCollection getExtendedAttributes()
Gets an instance of the ExtendedAttributeCollection class for this object.
Read only instance of the ExtendedAttributeCollection
class.
public final void setExtendedAttributes(ExtendedAttributeCollection value)
Sets an instance of the ExtendedAttributeCollection class for this object.
Read only instance of the ExtendedAttributeCollection
class.
value
- an instance of the ExtendedAttributeCollection class for this object.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.tasks.IExtendedAttributeParent> getItems()
public final Project getParentProject()
Gets parent project for this assignment.
public final TimephasedDataCollection getTimephasedData()
Gets the instance of TimephasedDataCollection
class containing elements of TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
)class.
TimephasedDataCollection
class containing elements of TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.public final void setTimephasedData(TimephasedDataCollection value)
Sets the instance of TimephasedDataCollection
class containing elements of TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.
value
- the instance of TimephasedDataCollection
class containing elements of TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class.public final TimephasedDataCollection getTimephasedData(Date start, Date end, int timephasedType)
Returns the instance TimephasedDataCollection
class containing instances of TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class 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
class.public final TimephasedDataCollection getTimephasedData(Date start, Date end)
Returns TimephasedDataCollection
object with the instances of TimephasedData
(getTimephasedData()
/setTimephasedData(TimephasedDataCollection)
) class within given start and end dates
of TimephasedDataType.AssignmentWork
.
start
- The start date for the time phased data.end
- The end date for the time phased data.TimephasedData
class.public final boolean hasChildren()
public int hashCode()
Returns a hash code value for the instance of the ResourceAssignment
class.
public final Date makeTPs(Date start, double time, Calendar calendar, List<TimephasedData> list, 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.list
- The list of time phased data.isWorking
- The specified flag which specifies whether time-phased data is working or not.type
- The specified time-phased data type.public final <T> void set(Key<T,Integer> key, T 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.
T
: the type of the mapped 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. Asn
for getting the property key.val
- the value.public final void splitTask(Date start, Date finish, Calendar calendar)
Splits task into two parts.
start
- The beginning of work interruption to split based on.finish
- The end of work interruption to split based on.calendar
- The calendar to split based on.com.aspose.ms.System.ArgumentOutOfRangeException
- Throws when start date is less than the
assignment start date.com.aspose.ms.System.ArgumentOutOfRangeException
- Throws when finish date is greater than the
assignment finish date.public final void timephasedDataFromTaskDuration(Calendar calendar)
Generates list of time phased data based on the task duration and the scheduled start date.
calendar
- The calendar to generate time phased data from.public String toString()
Returns short string representation of the instance of the ResourceAssignment
class.
The exact details of the representation are unspecified and subject to change.
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.