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()
Gets the confidence level that correspond to the percentage of the time the actual generated values will be
within optimistic and pessimistic estimates.
|
int |
getDistribution()
Gets the probability distribution used in Monte Carlo simulation.
|
int |
getOptimistic()
Gets the percentage of the most likely task duration which can happen in the best possible project scenario.
|
int |
getPessimistic()
Gets 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)
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 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.
ConfidenceLevel
(getConfidenceLevel()
/setConfidenceLevel(int)
) enumeration.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.
ConfidenceLevel
(getConfidenceLevel()
/setConfidenceLevel(int)
) enumeration.value
- the confidence level that correspond to the percentage of the time the actual generated
values will be within optimistic and pessimistic estimates.public final int getDistribution()
Gets the probability distribution used in Monte Carlo simulation. The default value is ProbabilityDistributionType.Normal.
ProbabilityDistributionType
enumeration.public final void setDistribution(int value)
Sets the probability distribution used in Monte Carlo simulation. The default value is ProbabilityDistributionType.Normal.
ProbabilityDistributionType
enumeration.value
- the probability distribution used in Monte Carlo simulation.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.
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.
value
- the percentage of the most likely task duration which can happen in the best possible
project scenario.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.
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.
value
- the percentage of the most likely task duration which can happen in the worst possible
project scenario.public final Task getTask()
Gets a project task to which this risk pattern is applied.