public class RiskPattern extends Object
Represents a risk pattern for a project task.
Constructor and Description |
---|
RiskPattern(Task task)
Initializes a new instance of the
RiskPattern class. |
Modifier and Type | Method and Description |
---|---|
int |
getConfidenceLevel()
Returns the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates.
|
int |
getDistribution()
Returns the probability distribution used in Monte Carlo simulation.
|
int |
getOptimistic()
Returns the percentage of the most likely task duration which can happen in the best possible project scenario.
|
int |
getPessimistic()
Returns the percentage of the most likely task duration which can happen in the worst possible project scenario.
|
Task |
getTask()
Gets a project task to which this risk pattern is applied.
|
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.
|
void |
setDistribution(int value)
Gets or sets the probability distribution used in Monte Carlo simulation.
|
void |
setOptimistic(int value)
Sets the percentage of the most likely task duration which can happen in the best possible project scenario.
|
void |
setPessimistic(int value)
Sets the percentage of the most likely task duration which can happen in the worst possible project scenario.
|
public RiskPattern(Task task)
Initializes a new instance of the RiskPattern
class.
task
- the specified project task for which this risk will be applied in Monte Carlo simulation.public int getConfidenceLevel()
Returns 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 the ConfidenceLevel
enum.
public 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 the ConfidenceLevel
enum.
value
- the confidence level that correspond to the percentage of the time the actual generated values will be within optimistic and pessimistic estimates.public int getDistribution()
Returns the probability distribution used in Monte Carlo simulation.
The default value is ProbabilityDistributionType.Normal.
Can be one of the values defined in the ProbabilityDistributionType
enum.
public void setDistribution(int value)
Gets or sets the probability distribution used in Monte Carlo simulation.
The default value is ProbabilityDistributionType.Normal.
Can be one of the values defined in the ProbabilityDistributionType
enum.
value
- the probability distribution used in Monte Carlo simulation.public int getOptimistic()
Returns 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.
public 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.
value
- the percentage of the most likely task duration which can happen in the best possible project scenario.public int getPessimistic()
Returns the percentage of the most likely task duration which can happen in the worst possible project scenario. The defaut value is 125, which means that if the estimated specified task duration is 4 days then the pessimistic duration will be 5 days.
public void setPessimistic(int value)
Sets the percentage of the most likely task duration which can happen in the worst possible project scenario. The defaut value is 125, which means that if the estimated specified task duration is 4 days then the pessimistic duration will be 5 days.
value
- the percentage of the most likely task duration which can happen in the worst possible project scenario.public Task getTask()
Gets a project task to which this risk pattern is applied.
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.