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;
57 ASPOSE_TASKS_SHARED_API ProbabilityDistributionType get_Distribution()
const;
63 ASPOSE_TASKS_SHARED_API
void set_Distribution(ProbabilityDistributionType value);
69 ASPOSE_TASKS_SHARED_API Aspose::Tasks::RiskAnalysis::ConfidenceLevel get_ConfidenceLevel()
const;
75 ASPOSE_TASKS_SHARED_API
void set_ConfidenceLevel(Aspose::Tasks::RiskAnalysis::ConfidenceLevel value);
80 ASPOSE_TASKS_SHARED_API int32_t get_Optimistic()
const;
85 ASPOSE_TASKS_SHARED_API
void set_Optimistic(int32_t value);
90 ASPOSE_TASKS_SHARED_API int32_t get_Pessimistic()
const;
95 ASPOSE_TASKS_SHARED_API
void set_Pessimistic(int32_t value);
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:36