Aspose.Tasks for C++
RiskAnalysisSettings.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="RiskAnalysisSettings.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 #include <system/date_time.h>
10 #include <cstdint>
11 
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Tasks
17 {
18 namespace RiskAnalysis
19 {
20 class MonteCarloProjectSimulation;
21 namespace Reporting
22 {
23 class RiskReportBuilder;
24 } // namespace Reporting
25 class RiskPatternCollection;
26 } // namespace RiskAnalysis
27 } // namespace Tasks
28 } // namespace Aspose
29 
30 namespace Aspose {
31 
32 namespace Tasks {
33 
34 namespace RiskAnalysis {
35 
36 /// <summary>
37 /// Specifies settings for performing risk analysis.
38 /// </summary>
39 class ASPOSE_TASKS_SHARED_CLASS RiskAnalysisSettings : public System::Object
40 {
42  typedef System::Object BaseType;
43 
44  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
46 
47  friend class Aspose::Tasks::RiskAnalysis::MonteCarloProjectSimulation;
48  friend class Aspose::Tasks::RiskAnalysis::Reporting::RiskReportBuilder;
49 
50 public:
51 
52  /// <summary>
53  /// Gets the number of iterations to use in Monte Carlo simulation.
54  /// The default value is 100.
55  /// </summary>
56  ASPOSE_TASKS_SHARED_API int32_t get_IterationsCount() const;
57  /// <summary>
58  /// Sets the number of iterations to use in Monte Carlo simulation.
59  /// The default value is 100.
60  /// </summary>
61  ASPOSE_TASKS_SHARED_API void set_IterationsCount(int32_t value);
62  /// <summary>
63  /// Gets a collection containing the instances of the <see cref="RiskPattern"></see> class.
64  /// </summary>
65  ASPOSE_TASKS_SHARED_API System::SharedPtr<RiskPatternCollection> get_Patterns() const;
66 
67  /// <summary>Initializes a new instance of the <see cref="RiskAnalysisSettings"></see> class.</summary>
68  ASPOSE_TASKS_SHARED_API RiskAnalysisSettings();
69 
70 protected:
71 
72  ASPOSE_TASKS_SHARED_API System::DateTime get_SimulationStart() const;
73  ASPOSE_TASKS_SHARED_API void set_SimulationStart(System::DateTime value);
74 
75  #ifdef ASPOSE_GET_SHARED_MEMBERS
76  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
77  #endif
78 
79 
80 private:
81 
82  System::SharedPtr<RiskPatternCollection> patterns;
83  int32_t pr_IterationsCount;
84  System::DateTime pr_SimulationStart;
85 
86 };
87 
88 } // namespace RiskAnalysis
89 } // namespace Tasks
90 } // namespace Aspose
91 
92 
Specifies settings for performing risk analysis.
Definition: RiskAnalysisSettings.h:40
RiskAnalysisSettings()
Initializes a new instance of the RiskAnalysisSettings class.
System::SharedPtr< RiskPatternCollection > get_Patterns() const
Gets a collection containing the instances of the RiskPattern class.
void set_IterationsCount(int32_t value)
Sets the number of iterations to use in Monte Carlo simulation. The default value is 100.
int32_t get_IterationsCount() const
Gets the number of iterations to use in Monte Carlo simulation. The default value is 100.
Definition: Asn.h:13