public class ResourceAssignmentCollection extends Object implements Iterable<ResourceAssignment>
Represents a collection of ResourceAssignment
objects.
Modifier and Type | Method and Description |
---|---|
ResourceAssignment |
add(Task task,
Resource resource)
Adds new assignment to the ResourceAssignmentCollection.
|
ResourceAssignment |
add(Task task,
Resource resource,
double units)
Adds new assignment to the ResourceAssignmentCollection.
|
ResourceAssignment |
getByUid(int uid)
Returns an assignment with the specified uid.
|
int |
getCount()
Returns the number of objects contained in the ResourceAssignmentCollection.
|
Project |
getParentProject()
Gets the parent project of the ResourceAssignmentCollection object.
|
boolean |
isReadOnly()
Determines whether this collection is read only.
|
Iterator<ResourceAssignment> |
iterator() |
List<ResourceAssignment> |
toList()
Converts the ResourceAssignmentCollection object to a list of
ResourceAssignment objects. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Project getParentProject()
Gets the parent project of the ResourceAssignmentCollection object.
public boolean isReadOnly()
Determines whether this collection is read only.
public Iterator<ResourceAssignment> iterator()
iterator
in interface Iterable<ResourceAssignment>
public int getCount()
Returns the number of objects contained in the ResourceAssignmentCollection.
public List<ResourceAssignment> toList()
Converts the ResourceAssignmentCollection object to a list of ResourceAssignment
objects.
ResourceAssignment
objects.public ResourceAssignment add(Task task, Resource resource, double units)
Adds new assignment to the ResourceAssignmentCollection.
task
- A task to be assigned.resource
- A resource to be assigned.units
- The number of units for a new assignment.public ResourceAssignment add(Task task, Resource resource)
Adds new assignment to the ResourceAssignmentCollection.
task
- A task to be assigned.resource
- A resource to be assigned.public ResourceAssignment getByUid(int uid)
Returns an assignment with the specified uid. O(1) complexity operation.
uid
- The specified uid.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.