Aspose.Tasks for C++
Aspose::Tasks::Leveling::ResourceLeveler Class Reference

Contains resource leveling methods. More...

#include <ResourceLeveler.h>

Static Public Member Functions

static System::SharedPtr< LevelingResultLevelResources (const System::SharedPtr< Project > &project, const System::SharedPtr< LevelingOptions > &options)
 Levels tasks for the specified resources using the specified leveling options. More...
 
static System::SharedPtr< LevelingResultLevelAll (const System::SharedPtr< Project > &project)
 Levels tasks for all project's resources using default leveling options. More...
 
static void ClearLeveling (const System::SharedPtr< Project > &project)
 Clears any leveling delay that was previously added to the project during resource leveling. More...
 
static void ClearLeveling (const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Task >>> &tasks)
 Clears any leveling delay that was previously added to the specified tasks during resource leveling. More...
 

Detailed Description

Contains resource leveling methods.

Member Function Documentation

◆ ClearLeveling() [1/2]

static void Aspose::Tasks::Leveling::ResourceLeveler::ClearLeveling ( const System::SharedPtr< Project > &  project)
static

Clears any leveling delay that was previously added to the project during resource leveling.

Parameters
projectProject to clear leveling.

◆ ClearLeveling() [2/2]

static void Aspose::Tasks::Leveling::ResourceLeveler::ClearLeveling ( const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< Task >>> &  tasks)
static

Clears any leveling delay that was previously added to the specified tasks during resource leveling.

Parameters
tasksThe enumerable containing tasks for which leveling delay should be cleared.

◆ LevelAll()

static System::SharedPtr<LevelingResult> Aspose::Tasks::Leveling::ResourceLeveler::LevelAll ( const System::SharedPtr< Project > &  project)
static

Levels tasks for all project's resources using default leveling options.

Parameters
projectProject to apply resource leveling.
Returns
Object containing results of resource leveling.

◆ LevelResources()

static System::SharedPtr<LevelingResult> Aspose::Tasks::Leveling::ResourceLeveler::LevelResources ( const System::SharedPtr< Project > &  project,
const System::SharedPtr< LevelingOptions > &  options 
)
static

Levels tasks for the specified resources using the specified leveling options.

Parameters
projectProject to apply resource leveling.
optionsOptions which specifies how to level resources.
Returns
Object containing results of resource leveling.
Exceptions
ArgumentNullExceptionif parameter options is null.