The TaskManager type exposes the following members.

Constructors

  NameDescription
Public methodTaskManager
Initializes a new TaskManager instance.

Methods

  NameDescription
Public methodDependsOf
Gets a value that indicates whether the specified item has another item as a direct or indirect, and an implicit or explicit predecessor in the hierarchy. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodEnsureDependencyConstraints()()()()
Ensures that dependency constrains between tasks are enforced. You should call EnsureTimeScheduleConstraints()()()(), EnsureTimeLimitConstraints()()()(), and RemoveCircularDependencies()()()() methods before this call.
Public methodEnsureDependencyConstraints(Boolean)
Ensures that dependency constrains between tasks are enforced. You should call EnsureTimeScheduleConstraints()()()(), EnsureTimeLimitConstraints()()()(), and RemoveCircularDependencies()()()() methods before this call.
Public methodEnsureDependencyConstraints(DateTime)
Ensures that dependency constrains between tasks are enforced. You should call EnsureTimeScheduleConstraints()()()(), EnsureTimeLimitConstraints()()()(), and RemoveCircularDependencies()()()() methods before this call.
Public methodEnsureDependencyConstraints(Boolean, DateTime, Int32)
Ensures that dependency constrains between tasks are enforced. You should call EnsureTimeScheduleConstraints()()()(), EnsureTimeLimitConstraints()()()(), and RemoveCircularDependencies()()()() methods before this call.
Public methodEnsureTimeLimitConstraints
Updates standard task time values according to the item's MinStart, MaxStart, MinFinish, and MaxFinish properties. You should call EnsureTimeScheduleConstraints()()()() method before this call. You don't need to call EnsureTimeScheduleConstraints()()()() method, but you may also want to call SummarizeParentTimeValues()()()() method after this call.
Public methodEnsureTimeScheduleConstraints
Updates standard task time values according to the general Schedule or item's Schedule properties. You may also want to call EnsureTimeLimitConstraints()()()() and/or SummarizeParentTimeValues()()()() methods after this call.
Public methodEnsureValidHierarchy
Resets any invalid indentation values in order to obtain a valid task hierarchy.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetAllChildren
Iterates all level child items of the specified item down in the hierarchical collection.
Public methodGetAllocations
Iterates the time interval based allocations from standard tasks assigned to a specific resource within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetAllocationUnitsString
Returns a string that may be used for displaying a representation of the specified allocation units.
Public methodGetAllParents
Iterates all level parent items of the specified item up in the hierarchical collection.
Public methodGetAssignedItems
Iterates the list of standard task assignments (defined as task items) for a specific resource within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetAssignedResources()()()()
Iterates the list of assigned resources (unique entries) from all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetAssignedResources(TaskItem)
Iterates the list of assignments (defined as resource objects) from a specific task within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetAssignments
Iterates the list of standard task assignments (defined as task items and associated allocation units) for a specific resource within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetAssignmentsCost
Gets the assignments cost of the specified task, summing up DefaultResourceUsageCost or SpecificResourceUsageCosts, and DefaultResourceHourCost or SpecificResourceHourCosts multiplied by work effort hours (for standard tasks). The value is eventually multiplied by assignment allocation units (if set).
Public methodGetAssignmentsString
Returns a string that may be used for displaying the assignments of the specified task within the component, optionally including non-unitary allocation value percents enclosed within square brackets, and separated by commas. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetChildren
Iterates the direct child items of the specified item in the hierarchical collection.
Public methodGetCompletedEffort
Gets the completed effort of the specified task item. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetCompletion
Gets the completion rate of the specified task item (between 0 and 1). You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetCost
Gets the total cost of the specified task, summing up ExecutionCost and the value returned by GetExtraCost(TaskItem) method.
Public methodGetCriticalItems()()()()
Iterates the critical items of the project consisting of all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetCriticalItems(TimeSpan)
Iterates the critical items of the project consisting of all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetDependencyType
Returns a dependency type based on the specified abbreviation string, such as an empty string, FS, SS, FF, or SF.
Public methodGetDependencyTypeAbbreviationString
Returns a string that may be used for displaying a representation of the specified dependency type.
Public methodGetDuration
Gets the duration value of the specified task item, as the working time difference between Start and Finish values. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetEffort(TaskItem)
Gets the effort of the specified task item. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetEffort(DateTime, DateTime, Schedule)
Gets the total duration of the working time intervals between specified start and finish date and times (i.e. effort time for a task that starts and finishes on specified date and time, considering a single full time resource assignment), determined based on the working week and working day definitions, excluding the defined nonworking time intervals.
Public methodGetExtraCost
Gets the extra cost of the specified task, summing up TaskInitiationCost, the value returned by GetAssignmentsCost(TaskItem) method, and child task costs (for summary tasks).
Public methodGetFinish
Gets the finish date and time of a working time interval that starts at the specified date and time and has the specified total effort duration (possibly interrupted, and considering a single full time resource assignment), determined based on the working week and working day definitions, excluding the defined nonworking time intervals.
Public methodGetHashCode (Inherited from Object.)
Public methodGetIndexString
Gets the index string of the specified task item.
Public methodGetLagString
Returns a string that may be used for displaying a representation of the specified lag time.
Public methodGetNextNonworkingTime
Gets the minimum date and time greater or equal than the specified date and time that is considered as a nonworking time, determined based on the time not included in the working week and working day definitions, or included in the defined nonworking time intervals.
Public methodGetNextWorkingTime
Gets the minimum date and time greater or equal than the specified date and time that is considered as a working time, determined based on the working week and working day definitions, excluding the defined nonworking time intervals.
Public methodGetParent
Gets the direct parent item of the specified item in the hierarchical collection.
Public methodGetPredecessors(TaskItem)
Iterates predecessor items of the specified item in the managed collection as TaskItem objects.
Public methodGetPredecessors(TaskItem, Predicate<(Of <<'(DependencyType>)>>))
Iterates predecessor items of the specified item satisfying the specified dependency type condition in the managed collection as TaskItem objects.
Public methodGetPredecessorsString
Returns a string that may be used for displaying the predecessor indexes of the specified task within the component, optionally followed by dependency type abbreviations (FS, SS, FF, or SF) and/or lag times (in hours, with plus or minus sign prefix), and separated by commas. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetPreviousNonworkingTime
Gets the maximum date and time less or equal than the specified date and time that is considered as a nonworking time, determined based on the time not included in the working week and working day definitions, or included in the defined nonworking time intervals.
Public methodGetPreviousWorkingTime
Gets the maximum date and time less or equal than the specified date and time that is considered as a working time, determined based on the working week and working day definitions, excluding the defined nonworking time intervals.
Public methodGetProjectCompletedEffort
Gets the total completed effort of the project consisting of all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetProjectCompletion
Gets the completion rate of the project consisting of all standard tasks within the component (between 0 and 1). You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetProjectCost
Gets the total cost of the project consisting of the root managed tasks.
Public methodGetProjectEffort
Gets the total effort of the project consisting of all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetProjectFinish
Gets the finish date and time of the project consisting of all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetProjectStart
Gets the start date and time of the project consisting of all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetProjectTotalCompletedEffort
Gets the total completed effort of the project consisting of all standard tasks within the component, multiplying their durations by their total assignment allocation units. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetProjectTotalEffort
Gets the total effort of the project consisting of all standard tasks within the component considering, multiplying their durations by their total assignment allocation units. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetProjectXml()()()()
Gets data as a Project XML string.
Public methodGetProjectXml(IList<(Of <<'(Object>)>>))
Gets data as a Project XML string.
Public methodGetResourceCost
Gets the assignments cost of the specified resource, summing up DefaultResourceUsageCost or SpecificResourceUsageCosts, and DefaultResourceHourCost or SpecificResourceHourCosts multiplied by work effort hours (for standard tasks). The value is eventually multiplied by assignment allocation units (if set).
Public methodGetRoots
Iterates the root items in the hierarchical collection.
Public methodGetStart
Gets the start date and time of a working time interval that has the specified total effort duration (possibly interrupted, and considering a single full time resource assignment) and finishes at the specified date and time, determined based on the working week and working day definitions, excluding the defined nonworking time intervals.
Public methodGetSuccessorPredecessorItems
Iterates successor items of the specified item in the managed collection (i.e. those that have the specified item defined as a predecessor of any dependency type) as PredecessorItem objects.
Public methodGetSuccessors
Iterates successor items of the specified item in the managed collection (i.e. those that have the specified item defined as a predecessor of any dependency type) as TaskItem objects.
Public methodGetTotalCompletedEffort
Gets the total completed effort of the task, multiplying its completed duration by its total assignment allocation units. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetTotalEffort
Gets the total effort of the task, multiplying its duration by its total assignment allocation units. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodGetType (Inherited from Object.)
Public methodGetWbsIndexString
Gets the WBS index string of the specified task item.
Public methodGetWorkingTimeIntervals
Iterates the working time intervals between specified start and finish date and times, determined based on the working week and working day definitions, excluding the defined nonworking time intervals.
Public methodHasChildren
Returns a value indicating whether the specified item has children items.
Public methodHasProjectStarted
Gets a value that indicates whether the project consisting of all standard tasks within the component has its work started. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodHasStarted
Gets a value that indicates whether the specified task item has its work started, based on the completion value. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodInitialize
Initializes the project data by coercing values to ensure hierarchical and time schedule validity, and computing summarization values as needed. Internally calls EnsureValidHierarchy()()()(), EnsureTimeScheduleConstraints()()()(), EnsureTimeLimitConstraints()()()(), RemoveCircularDependencies()()()(), EnsureDependencyConstraints()()()(), and SummarizeParentTimeValues()()()() methods in the specified order.
Public methodInitializeChangeTracking
Initializes HasChanged to false for all managed tasks.
Public methodIsCompleted
Gets a value that indicates whether the specified task item has its work completed, based on the completion value. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodIsCritical(TaskItem)
Gets a value indicating whether the specified item is critical within the project consisting of all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodIsCritical(TaskItem, TimeSpan)
Gets a value indicating whether the specified item is critical within the project consisting of all standard tasks within the component. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodIsOnSchedule(TaskItem)
Gets a value indicating whether the specified task item is currently on schedule, so that its completed effort value reaches the current date and time. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodIsOnSchedule(TaskItem, DateTime)
Gets a value indicating whether the task item would be on schedule at the specified date and time, so that its completed effort value reaches the specified date and time. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodIsProjectCompleted
Gets a value that indicates whether the project consisting of all standard tasks within the component is completed. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodIsProjectOnSchedule()()()()
Gets a value indicating whether the project consisting of all standard tasks within the component is currently on schedule. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodIsProjectOnSchedule(DateTime)
Gets a value indicating whether the project consisting of all standard tasks within the component would be on schedule at the specified date and time. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodLevelAllocations
Levels the assigned allocation units assuming that all or the specified tasks within the component are fixed duration and effort driven.
Public methodLevelResources()()()()
Levels the assigned resources from all standard tasks within the component in order to avoid over allocation, by updating task timing values accordingly. The resource leveling algorithm is applied starting from the current date and time, and without considering already started tasks. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodLevelResources(Boolean)
Levels the assigned resources from all standard tasks within the component in order to avoid over allocation, by updating task timing values accordingly. The resource leveling algorithm is applied starting from the current date and time. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodLevelResources(DateTime)
Levels the assigned resources from all standard tasks within the component in order to avoid over allocation, by updating task timing values accordingly. The resource leveling algorithm is applied without considering already started tasks. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodLevelResources(Boolean, DateTime)
Levels the assigned resources from all standard tasks within the component in order to avoid over allocation, by updating task timing values accordingly. You should call Initialize(Boolean, Boolean, Boolean) method before this call. Internally calls SummarizeParentTimeValues()()()() method at the end of this call.
Public methodLoadProjectXml(Stream)
Loads data from a Project XML stream.
Public methodLoadProjectXml(String)
Loads data from a Project XML string.
Public methodLoadProjectXml(XDocument)
Loads data from a Project XML document.
Public methodLoadProjectXml(Stream, IList<(Of <<'(Object>)>>))
Loads data from a Project XML stream.
Public methodLoadProjectXml(String, IList<(Of <<'(Object>)>>))
Loads data from a Project XML string.
Public methodLoadProjectXml(XDocument, IList<(Of <<'(Object>)>>))
Loads data from a Project XML document.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOptimizeWork(Boolean, Boolean, Nullable<(Of <<'(DateTime>)>>))
Optimizes schedule times of all managed items in order to optimize the project finish date without leveling resources, respecting dependency constraints.
Public methodOptimizeWork(TaskItem, Boolean, Boolean, Nullable<(Of <<'(DateTime>)>>))
Optimizes schedule times of the specified item in order to optimize the project finish date without leveling resources, respecting dependency constraints.
Public methodRemoveCircularDependencies
Removes predecessor items that generate circular dependencies, either explicitely or implicitely in the hierarchy. You should call EnsureValidHierarchy()()()() method before this call.
Public methodRescheduleToFinish
Reschedules an item to finish on the specified date and time.
Public methodRescheduleToStart
Reschedules an item to start on the specified date and time.
Public methodSaveProjectXml(Stream)
Saves data to a Project XML stream.
Public methodSaveProjectXml(Stream, IList<(Of <<'(Object>)>>))
Saves data to a Project XML stream.
Public methodSetCompletedEffort
Sets the completed effort of the specified task item. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodSetCompletion
Sets the completion rate of the specified task item (between 0 and 1). You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodSetEffort
Sets the effort of the specified task item. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodSplitAllRemainingWork
Creates and inserts partial copies of the standard started task items that have not yet been fully completed considering their remaining work effort into the managed hierarchy, and updates the finish date and times of the original task items to their completion points. Used as preparation for rescheduling the remaining work effort task items, such as before calling the LevelResources()()()() method. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodSplitRemainingWork
Creates and inserts a partial copy of the specified task item considering its remaining work effort into the managed hierarchy, and updates the finish date and time of the original task item to its completion point. Used as preparation for rescheduling the remaining work effort of a task item. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodSummarizeParentTimeValues
Updates parent task time values according to the child item time values. You should call EnsureTimeScheduleConstraints()()()() and EnsureTimeLimitConstraints()()()() methods before this call.
Public methodToString (Inherited from Object.)
Public methodUpdateAssignments
Updates the predecessors of the specified task in the component based on a string value defining predecessor indexes, optionally followed by dependency type abbreviations (FS, SS, FF, or SF) and/or lag times (in hours, with plus or minus sign prefix), and separated by commas. You should call Initialize(Boolean, Boolean, Boolean) method before this call.
Public methodUpdatePredecessors
Updates the predecessors of the specified task in the component based on a string value defining predecessor indexes, optionally followed by dependency type abbreviations (FS, SS, FF, or SF) and/or lag times (in hours, with plus or minus sign prefix), and separated by commas. You should call Initialize(Boolean, Boolean, Boolean) method before this call.

Properties

  NameDescription
Public propertyDefaultResourceHourCost
Gets or sets the default hour cost value to apply for the assigned resources of the managed tasks.
Public propertyDefaultResourceUsageCost
Gets or sets the default usage cost value to apply for the assigned resources of the managed tasks.
Public propertyItems
Gets a collection of TaskItem objects that represent individual data items to be managed by the TaskManager component.
Public propertyResourceQuantities
Gets or sets the quantity values to consider when leveling resources, indicating maximum amounts of materials available for use at the same time.
Public propertySchedule
Gets or sets an object that indicates the working and nonworking time intervals that should generally apply to the managed task items.
Public propertySpecificResourceHourCosts
Gets or sets the specific hour cost values to apply for the assigned resources of the managed tasks.
Public propertySpecificResourceUsageCosts
Gets or sets the specific usage cost values to apply for the assigned resources of the managed tasks.
Public propertyTaskInitiationCost
Gets or sets the initiation cost value to apply to the managed tasks.

See Also