Aspose.Tasks for C++
RiskAnalyzer.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="RiskAnalyzer.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object.h>
9 
10 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 class Project;
17 namespace RiskAnalysis
18 {
19 class RiskAnalysisResult;
20 class RiskAnalysisSettings;
21 } // namespace RiskAnalysis
22 } // namespace Tasks
23 } // namespace Aspose
24 
25 namespace Aspose {
26 
27 namespace Tasks {
28 
29 namespace RiskAnalysis {
30 
31 /// <summary>
32 /// Performs a Monte Carlo simulation based on the specified risk analysis settings.
33 /// </summary>
34 class ASPOSE_TASKS_SHARED_CLASS RiskAnalyzer : public System::Object
35 {
36  typedef RiskAnalyzer ThisType;
37  typedef System::Object BaseType;
38 
39  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
41 
42 public:
43 
44  /// <summary>
45  /// Gets the instance of the <see cref="RiskAnalysisSettings"></see> class which defines necessary settings for risk analysis.
46  /// </summary>
47  ASPOSE_TASKS_SHARED_API const System::SharedPtr<RiskAnalysisSettings>& get_Settings() const;
48  /// <summary>
49  /// Sets the instance of the <see cref="RiskAnalysisSettings"></see> class which defines necessary settings for risk analysis.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API void set_Settings(const System::SharedPtr<RiskAnalysisSettings>& value);
52 
53  /// <summary>
54  /// Initializes a new instance of the <see cref="RiskAnalyzer"></see> class.
55  /// </summary>
56  /// <param name="settings">the specified instance of the <see cref="RiskAnalysisSettings"></see> class.</param>
57  ASPOSE_TASKS_SHARED_API RiskAnalyzer(const System::SharedPtr<RiskAnalysisSettings>& settings);
58 
59  /// <summary>
60  /// Performs risk analysis for the specified project. The analysis is based on Monte Carlo simulation and the result is an instance of the <see cref="RiskAnalysisResult"></see> class.
61  /// </summary>
62  /// <param name="project">the specified instance of the <see cref="Project"></see> class to analyze.</param>
63  /// <returns>the instance of the <see cref="RiskAnalysisResult"></see> which represents a result of the analysis.</returns>
64  ASPOSE_TASKS_SHARED_API System::SharedPtr<RiskAnalysisResult> Analyze(const System::SharedPtr<Project>& project);
65 
66 protected:
67 
68  #ifdef ASPOSE_GET_SHARED_MEMBERS
69  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
70  #endif
71 
72 
73 private:
74 
75  System::SharedPtr<RiskAnalysisSettings> pr_Settings;
76 
77 };
78 
79 } // namespace RiskAnalysis
80 } // namespace Tasks
81 } // namespace Aspose
82 
83 
Performs a Monte Carlo simulation based on the specified risk analysis settings.
Definition: RiskAnalyzer.h:35
RiskAnalyzer(const System::SharedPtr< RiskAnalysisSettings > &settings)
Initializes a new instance of the RiskAnalyzer class.
System::SharedPtr< RiskAnalysisResult > Analyze(const System::SharedPtr< Project > &project)
Performs risk analysis for the specified project. The analysis is based on Monte Carlo simulation and...
const System::SharedPtr< RiskAnalysisSettings > & get_Settings() const
Gets the instance of the RiskAnalysisSettings class which defines necessary settings for risk analysi...
void set_Settings(const System::SharedPtr< RiskAnalysisSettings > &value)
Sets the instance of the RiskAnalysisSettings class which defines necessary settings for risk analysi...
Definition: Asn.h:13