com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class RiskPattern



  • public class RiskPattern
    extends Object

    Represents a risk pattern for a project task.

    • Constructor Summary

      Constructors 
      Constructor and Description
      RiskPattern(Task task)
      Initializes a new instance of the RiskPattern class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
    • Constructor Detail

      • RiskPattern

        public RiskPattern(Task task)

        Initializes a new instance of the RiskPattern class.

        Parameters:
        task - the specified project task for which this risk will be applied in Monte Carlo simulation.
    • Method Detail

      • getConfidenceLevel

        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.

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

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

        Returns:
        the probability distribution used in Monte Carlo simulation.
      • setDistribution

        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.

        Parameters:
        value - the probability distribution used in Monte Carlo simulation.
      • getOptimistic

        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.

        Returns:
        the percentage of the most likely task duration which can happen in the best possible project scenario.
      • setOptimistic

        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.

        Parameters:
        value - the percentage of the most likely task duration which can happen in the best possible project scenario.
      • getPessimistic

        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.

        Returns:
        the percentage of the most likely task duration which can happen in the worst possible project scenario.
      • setPessimistic

        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.

        Parameters:
        value - the percentage of the most likely task duration which can happen in the worst possible project scenario.
      • getTask

        public Task getTask()

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

        Returns:
        a project task to which this risk pattern is applied.