Class RiskPattern

Class RiskPattern

Namespace: Aspose.Tasks.RiskAnalysis
Assembly: Aspose.Tasks.dll (25.2.0)

Represents a risk pattern for a project task.

public class RiskPattern

Inheritance

objectRiskPattern

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

RiskPattern(Task)

Initializes a new instance of the Aspose.Tasks.RiskAnalysis.RiskPattern class.

public RiskPattern(Task task)

Parameters

task Task

the specified project task for which this risk will be applied in Monte Carlo simulation.

Properties

ConfidenceLevel

Gets or 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.

public ConfidenceLevel ConfidenceLevel { get; set; }

Property Value

ConfidenceLevel

Remarks

Can be one of the values defined in the Aspose.Tasks.RiskAnalysis.RiskPattern.ConfidenceLevel enumeration.

Distribution

Gets or sets the probability distribution used in Monte Carlo simulation. The default value is ProbabilityDistributionType.Normal.

public ProbabilityDistributionType Distribution { get; set; }

Property Value

ProbabilityDistributionType

Remarks

Can be one of the values defined in the Aspose.Tasks.RiskAnalysis.ProbabilityDistributionType enumeration.

Optimistic

Gets or 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.

public int Optimistic { get; set; }

Property Value

int

Pessimistic

Gets or 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.

public int Pessimistic { get; set; }

Property Value

int

Task

Gets a project task to which this risk pattern is applied.

public Task Task { get; }

Property Value

Task