8 #include <system/object.h>
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
17 namespace RiskAnalysis
19 enum class ConfidenceLevel;
20 enum class ProbabilityDistributionType;
21 class RndDurationAlgorithm;
31 namespace RiskAnalysis {
36 class ASPOSE_TASKS_SHARED_CLASS
RiskPattern :
public System::Object
39 typedef System::Object BaseType;
41 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
42 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
44 friend class Aspose::Tasks::RiskAnalysis::RndDurationAlgorithm;
51 ASPOSE_TASKS_SHARED_API System::SharedPtr<Aspose::Tasks::Task>
get_Task()
const;
101 ASPOSE_TASKS_SHARED_API
RiskPattern(
const System::SharedPtr<Aspose::Tasks::Task>& task);
108 ASPOSE_TASKS_SHARED_API
double get_OptimisticDuration();
112 ASPOSE_TASKS_SHARED_API
double get_PessimisticDuration();
116 ASPOSE_TASKS_SHARED_API
double get_MeanDuration();
120 ASPOSE_TASKS_SHARED_API
double get_HalfRange();
122 #ifdef ASPOSE_GET_SHARED_MEMBERS
123 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
129 System::SharedPtr<Aspose::Tasks::Task> task;
132 ProbabilityDistributionType pr_Distribution;
133 Aspose::Tasks::RiskAnalysis::ConfidenceLevel pr_ConfidenceLevel;
138 double get_MostLikelyDuration();
140 void ValidatePercentGreaterThanZero(int32_t value);
Represents a risk pattern for a project task.
Definition: RiskPattern.h:37
void set_Optimistic(int32_t value)
Sets the percentage of the most likely task duration which can happen in the best possible project sc...
void set_Distribution(ProbabilityDistributionType value)
Sets the probability distribution used in Monte Carlo simulation. The default value is ProbabilityDis...
int32_t get_Pessimistic() const
Gets the percentage of the most likely task duration which can happen in the worst possible project s...
int32_t get_Optimistic() const
Gets the percentage of the most likely task duration which can happen in the best possible project sc...
System::SharedPtr< Aspose::Tasks::Task > get_Task() const
Gets a project task to which this risk pattern is applied.
Aspose::Tasks::RiskAnalysis::ConfidenceLevel get_ConfidenceLevel() const
Gets the confidence level that correspond to the percentage of the time the actual generated values w...
void set_ConfidenceLevel(Aspose::Tasks::RiskAnalysis::ConfidenceLevel value)
Sets the confidence level that correspond to the percentage of the time the actual generated values w...
RiskPattern(const System::SharedPtr< Aspose::Tasks::Task > &task)
Initializes a new instance of the RiskPattern class.
void set_Pessimistic(int32_t value)
Sets the percentage of the most likely task duration which can happen in the worst possible project s...
ProbabilityDistributionType get_Distribution() const
Gets the probability distribution used in Monte Carlo simulation. The default value is ProbabilityDis...