LevelingOptions

Inheritance: java.lang.Object

public final class LevelingOptions

Allows to specify parameters of resource leveling.

Constructors

ConstructorDescription
LevelingOptions()Initializes a new instance of the LevelingOptions class.

Methods

MethodDescription
getCancellationToken()Gets a token which can be used to cancel a project leveling operation.
getFinishDate()Gets leveling period end date.
getLevelingOrder()Gets the order in which the leveling algorithm delays tasks that have overallocations.
getMessageHandler()Gets message handler callback which can be used to intercept log messages produced by Aspose.Tasks during resource leveling.
getMessageLevel()Gets level of log messages emitted by Aspose.Tasks during resource leveling.
getResources()Gets the list of the resources which will be leveled.
getStartDate()Gets leveling period start date.
setCancellationToken(CancellationToken value)Sets a token which can be used to cancel a project leveling operation.
setFinishDate(Date value)Sets leveling period end date.
setLevelingOrder(int value)The order in which the leveling algorithm delays tasks that have overallocations.
setMessageHandler(IMessageHandler value)Sets message handler callback which can be used to intercept log messages produced by Aspose.Tasks during resource leveling.
setMessageLevel(int value)Sets level of log messages emitted by Aspose.Tasks during resource leveling.
setResources(List<Resource> value)Sets the list of the resources which will be leveled.
setStartDate(Date value)Sets leveling period start date.

LevelingOptions()

public LevelingOptions()

Initializes a new instance of the LevelingOptions class.

getCancellationToken()

public final CancellationToken getCancellationToken()

Gets a token which can be used to cancel a project leveling operation.

Returns: CancellationToken - a token which can be used to cancel a project leveling operation.

getFinishDate()

public final Date getFinishDate()

Gets leveling period end date. The default value is the project`s finish date.

Returns: java.util.Date - leveling period end date.

getLevelingOrder()

public final int getLevelingOrder()

Gets the order in which the leveling algorithm delays tasks that have overallocations. After determination of tasks causing the overallocation and which tasks can be delayed, the specified order is used which task should be delayed first.

Returns: int - the order in which the leveling algorithm delays tasks that have overallocations.

getMessageHandler()

public final IMessageHandler getMessageHandler()

Gets message handler callback which can be used to intercept log messages produced by Aspose.Tasks during resource leveling.

Returns: IMessageHandler - message handler callback which can be used to intercept log messages produced by Aspose.

getMessageLevel()

public final int getMessageLevel()

Gets level of log messages emitted by Aspose.Tasks during resource leveling.

Returns: int - level of log messages emitted by Aspose.

getResources()

public final List<Resource> getResources()

Gets the list of the resources which will be leveled. If null is set, all project resources will be leveled.

Returns: java.util.List<com.aspose.tasks.Resource> - the list of the resources which will be leveled.

getStartDate()

public final Date getStartDate()

Gets leveling period start date. The default value is the project`s start date.

Returns: java.util.Date - leveling period start date.

setCancellationToken(CancellationToken value)

public final void setCancellationToken(CancellationToken value)

Sets a token which can be used to cancel a project leveling operation.

Parameters:

ParameterTypeDescription
valueCancellationTokena token which can be used to cancel a project leveling operation.

setFinishDate(Date value)

public final void setFinishDate(Date value)

Sets leveling period end date. The default value is the project`s finish date.

Parameters:

ParameterTypeDescription
valuejava.util.Dateleveling period end date.

setLevelingOrder(int value)

public final void setLevelingOrder(int value)

The order in which the leveling algorithm delays tasks that have overallocations. After determination of tasks causing the overallocation and which tasks can be delayed, the specified order is used which task should be delayed first.

Parameters:

ParameterTypeDescription
valueintthe order in which the leveling algorithm delays tasks that have overallocations.

setMessageHandler(IMessageHandler value)

public final void setMessageHandler(IMessageHandler value)

Sets message handler callback which can be used to intercept log messages produced by Aspose.Tasks during resource leveling.

Parameters:

ParameterTypeDescription
valueIMessageHandlermessage handler callback which can be used to intercept log messages produced by Aspose.

setMessageLevel(int value)

public final void setMessageLevel(int value)

Sets level of log messages emitted by Aspose.Tasks during resource leveling.

Parameters:

ParameterTypeDescription
valueintlevel of log messages emitted by Aspose.

setResources(List<Resource> value)

public final void setResources(List<Resource> value)

Sets the list of the resources which will be leveled. If null is set, all project resources will be leveled.

Parameters:

ParameterTypeDescription
valuejava.util.List<com.aspose.tasks.Resource>the list of the resources which will be leveled.

setStartDate(Date value)

public final void setStartDate(Date value)

Sets leveling period start date. The default value is the project`s start date.

Parameters:

ParameterTypeDescription
valuejava.util.Dateleveling period start date.