Class RiskPattern
- java.lang.Object
-
- com.aspose.tasks.RiskPattern
-
public class RiskPattern extends Object
Represents a risk pattern for a project task.
-
-
Constructor Summary
Constructors Constructor Description RiskPattern(Task task)Initializes a new instance of theRiskPatternclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConfidenceLevel()Gets the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates.intgetDistribution()Gets the probability distribution used in Monte Carlo simulation.intgetOptimistic()Gets the percentage of the most likely task duration which can happen in the best possible project scenario.intgetPessimistic()Gets the percentage of the most likely task duration which can happen in the worst possible project scenario.TaskgetTask()Gets a project task to which this risk pattern is applied.voidsetConfidenceLevel(int value)Sets the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates.voidsetDistribution(int value)Sets the probability distribution used in Monte Carlo simulation.voidsetOptimistic(int value)Sets the percentage of the most likely task duration which can happen in the best possible project scenario.voidsetPessimistic(int value)Sets the percentage of the most likely task duration which can happen in the worst possible project scenario.
-
-
-
Constructor Detail
-
RiskPattern
public RiskPattern(Task task)
Initializes a new instance of the
RiskPatternclass.- Parameters:
task- the specified project task for which this risk will be applied in Monte Carlo simulation.
-
-
Method Detail
-
getConfidenceLevel
public final int getConfidenceLevel()
Gets the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates. The default value is CL99.
Can be one of the values defined in theConfidenceLevel(getConfidenceLevel()/setConfidenceLevel(int)) enumeration.- Returns:
- the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates.
-
setConfidenceLevel
public final void setConfidenceLevel(int value)
Sets the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates. The default value is CL99.
Can be one of the values defined in theConfidenceLevel(getConfidenceLevel()/setConfidenceLevel(int)) enumeration.- Parameters:
value- the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates.
-
getDistribution
public final int getDistribution()
Gets the probability distribution used in Monte Carlo simulation. The default value is ProbabilityDistributionType.Normal.
Can be one of the values defined in theProbabilityDistributionTypeenumeration.- Returns:
- the probability distribution used in Monte Carlo simulation.
-
setDistribution
public final void setDistribution(int value)
Sets the probability distribution used in Monte Carlo simulation. The default value is ProbabilityDistributionType.Normal.
Can be one of the values defined in theProbabilityDistributionTypeenumeration.- Parameters:
value- the probability distribution used in Monte Carlo simulation.
-
getOptimistic
public final int getOptimistic()
Gets the percentage of the most likely task duration which can happen in the best possible project scenario. The default value is 75, which means that if the estimated specified task duration is 4 days then the optimistic duration will be 3 days.
- Returns:
- the percentage of the most likely task duration which can happen in the best possible project scenario.
-
setOptimistic
public final void setOptimistic(int value)
Sets the percentage of the most likely task duration which can happen in the best possible project scenario. The default value is 75, which means that if the estimated specified task duration is 4 days then the optimistic duration will be 3 days.
- Parameters:
value- the percentage of the most likely task duration which can happen in the best possible project scenario.
-
getPessimistic
public final int getPessimistic()
Gets the percentage of the most likely task duration which can happen in the worst possible project scenario. The default value is 125, which means that if the estimated specified task duration is 4 days then the pessimistic duration will be 5 days.
- Returns:
- the percentage of the most likely task duration which can happen in the worst possible project scenario.
-
setPessimistic
public final void setPessimistic(int value)
Sets the percentage of the most likely task duration which can happen in the worst possible project scenario. The default value is 125, which means that if the estimated specified task duration is 4 days then the pessimistic duration will be 5 days.
- Parameters:
value- the percentage of the most likely task duration which can happen in the worst possible project scenario.
-
getTask
public final Task getTask()
Gets a project task to which this risk pattern is applied.
- Returns:
- a project task to which this risk pattern is applied.
-
-