Class LevelingOptions
- java.lang.Object
-
- com.aspose.tasks.LevelingOptions
-
public final class LevelingOptions extends Object
Allows to specify parameters of resource leveling.
-
-
Constructor Summary
Constructors Constructor Description LevelingOptions()Initializes a new instance of theLevelingOptionsclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancellationTokengetCancellationToken()Gets a token which can be used to cancel a project leveling operation.DategetFinishDate()Gets leveling period end date.intgetLevelingOrder()Gets the order in which the leveling algorithm delays tasks that have overallocations.IMessageHandlergetMessageHandler()Gets message handler callback which can be used to intercept log messages produced by Aspose.Tasks during resource leveling.intgetMessageLevel()Gets level of log messages emitted by Aspose.Tasks during resource leveling.List<Resource>getResources()Gets the list of the resources which will be leveled.DategetStartDate()Gets leveling period start date.voidsetCancellationToken(CancellationToken value)Sets a token which can be used to cancel a project leveling operation.voidsetFinishDate(Date value)Sets leveling period end date.voidsetLevelingOrder(int value)The order in which the leveling algorithm delays tasks that have overallocations.voidsetMessageHandler(IMessageHandler value)Sets message handler callback which can be used to intercept log messages produced by Aspose.Tasks during resource leveling.voidsetMessageLevel(int value)Sets level of log messages emitted by Aspose.Tasks during resource leveling.voidsetResources(List<Resource> value)Sets the list of the resources which will be leveled.voidsetStartDate(Date value)Sets leveling period start date.
-
-
-
Constructor Detail
-
LevelingOptions
public LevelingOptions()
Initializes a new instance of the
LevelingOptionsclass.
-
-
Method Detail
-
getCancellationToken
public final CancellationToken getCancellationToken()
Gets a token which can be used to cancel a project leveling operation.
- Returns:
- a token which can be used to cancel a project leveling operation.
-
setCancellationToken
public final void setCancellationToken(CancellationToken value)
Sets a token which can be used to cancel a project leveling operation.
- Parameters:
value- 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:
- leveling period end date.
-
setFinishDate
public final void setFinishDate(Date value)
Sets leveling period end date. The default value is the project`s finish date.
- Parameters:
value- 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:
- the order in which the leveling algorithm delays tasks that have overallocations.
-
setLevelingOrder
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:
value- 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:
- message handler callback which can be used to intercept log messages produced by Aspose.
-
setMessageHandler
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:
value- 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:
- level of log messages emitted by Aspose.
-
setMessageLevel
public final void setMessageLevel(int value)
Sets level of log messages emitted by Aspose.Tasks during resource leveling.
- Parameters:
value- 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:
- the list of the resources which will be leveled.
-
setResources
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:
value- 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:
- leveling period start date.
-
setStartDate
public final void setStartDate(Date value)
Sets leveling period start date. The default value is the project`s start date.
- Parameters:
value- leveling period start date.
-
-