2using System.Collections.Generic;
3using System.Diagnostics;
26 #region Dependency Injection Configuration
56 #endregion Dependency Injection Configuration
58 #region Private Dependency Injection Helper Methods
59 private int _injectionNesting;
66 Debug.WriteLine(
new string(
' ', _injectionNesting) +
"Dependency Injection of " +
67 typeof(
T).NiceTypeName() +
" beginning.");
86 Debug.WriteLine(
new string(
' ', _injectionNesting) +
87 "Dependency Injection of " +
typeof(
T).NiceTypeName() +
88 " took " + (
DateTime.UtcNow -
start).TotalMilliseconds +
"ms.");
106 #region TypedLockGuard
113 private static class TypedLockGuard
118 private static class TypedLockGuardGeneric<
T>
130 lock (CachedResourceLock)
150 #endregion TypedLockGuard
154 #endregion Private Dependency Injection Helper Methods
156 #region Agent Samples
157 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
159 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
162 description =
"Test Agent 1 Description",
164 hostname =
"Test 1 Hostname"
166 #endregion Agent Samples
168 #region Analysis Samples
169 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
171 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
176 description =
"Test VendorPortfolioAnalysis Description",
179 identifier =
"Test Identifier",
180 source =
"Test Source",
181 vendor =
"Test Vendor"
184 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
186 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
191 description =
"Test VendorTreatyAnalysis Description",
194 identifier =
"Test Identifier",
195 source =
"Test Source",
196 vendor =
"Test Vendor"
198 #endregion Analysis Samples
200 #region AnalysisProfile Samples
207 description =
"10 Trial Analysis Profile with 8 Filters",
233 description =
"10 Trial Analysis Profile with 1 Filter",
241 #endregion AnalysisProfile Samples
243 #region Distribution Samples
249 description =
"Test BinomialDistribution Description",
259 description =
"Test CustomFrequencyDistribution Description",
261 }, CSV.CustomFrequencyDistribution_Data);
267 description =
"Test CustomSeasonalityDistribution Description",
270 }, CSV.CustomSeasonalityDistribution_Data);
276 description =
"Test CustomSeverityDistribution Description",
278 }, CSV.CustomSeverityDistribution_Data);
284 description =
"Test LogNormalDistribution Description",
294 description =
"Test NegativeBinomialDistribution Description",
304 description =
"Test NormalDistribution Description",
314 description =
"Test DiracDistribution Description",
323 description =
"Test ParetoDistribution Description",
333 description =
"Test PoissonDistribution Description",
342 description =
"Test UniformDistribution Description",
352 description =
"Test UniformIntDistribution Description",
357 #endregion Distribution Samples
359 #region EventCatalog Samples
364 description =
"Test EventCatalog 1 Description",
366 source =
"Test 1 Source",
368 }, CSV.Event_Catalog_Data);
369 #endregion EventCatalog Samples
371 #region ExchangeRateTable Samples
376 base_currency =
"USD",
377 description =
"Test ExchangeRateTable Description",
379 }, CSV.Exchange_Rate_Table);
380 #endregion ExchangeRateTable Samples
382 #region ExchangeRateProfile Samples
387 description =
"Test ExchangeRateProfile Description",
395 #endregion ExchangeRateProfile Samples
397 #region Layer Samples
430 GetOrCreate(
ref _layerAggXL, () =>
new AggXL
435 description =
"Test AggXL Description",
452 GetOrCreate(
ref _layerCatXL, () =>
new CatXL
455 description =
"Test CatXL Description",
467 participation = 0.987,
474 GetOrCreate(
ref _layerGeneric, () =>
new Generic
479 description =
"Test Generic Description",
500 description =
"Test QuotaShare Description",
520 description =
"Test AggregateQuotaShare Description",
538 description =
"Test SurplusShare Description",
542 number_of_lines = 5.5,
557 description =
"Test IndustryLossWarranty Description",
575 GetOrCreate(
ref _layerFilter, () =>
new Filter
577 description =
"Test Filter Description",
596 description =
"Test FixedRateCurrencyConverter Description",
599 out_currency =
"CAD",
612 description =
"Test LossRank Description",
628 description =
"Test NoClaimsBonus Description",
639 description =
"Test ValueAllocator Description",
643 group = Layer_Nested.AsReference
650 description =
"Test BackAllocatedLayer Description",
655 source_id = LossSet_ELTLossSet.AsReference.ref_id
662 description =
"Test DelayedPayment Description",
677 description =
"Test FixedDatePayment Description",
685 #region Nested Layer Samples
705 .Select(source =>
inline ? source.AsInlinedReference : source.AsReference);
709 description =
$"Sample Nested with a " +
710 $"{sink_reference.ResourceType.NiceTypeName()} sink " +
711 $"and {readySources.Count()} source layers.",
717 #endregion Nested Layer Samples
718 #endregion Layer Samples
720 #region LayerView Samples
746 TypedLockGuard.GetOrCreate(
ref _layerViewAggXL,
751 TypedLockGuard.GetOrCreate(
ref _layerViewCatXL,
756 TypedLockGuard.GetOrCreate(
ref _layerViewGeneric,
761 TypedLockGuard.GetOrCreate(
ref _layerViewQuotaShare,
766 TypedLockGuard.GetOrCreate(
ref _layerViewAggregateQuotaShare,
771 TypedLockGuard.GetOrCreate(
ref _layerViewSurplusShare,
776 TypedLockGuard.GetOrCreate(
ref _layerViewIndustryLossWarranty,
781 TypedLockGuard.GetOrCreate(
ref _layerViewNested,
786 TypedLockGuard.GetOrCreate(
ref _layerViewFilter, () =>
802 TypedLockGuard.GetOrCreate(
ref _layerViewFixedRateCurrencyConverter,
804 target_currency:
"CAD"));
808 TypedLockGuard.GetOrCreate(
ref _layerViewLossRank,
813 TypedLockGuard.GetOrCreate(
ref _layerViewNoClaimsBonus,
818 TypedLockGuard.GetOrCreate(
ref _layerViewValueAllocator,
823 TypedLockGuard.GetOrCreate(
ref _layerViewBackAllocatedLayer,
828 TypedLockGuard.GetOrCreate(
ref _layerViewDelayedPayment,
833 TypedLockGuard.GetOrCreate(
ref _layerViewFixedDatePayment,
836 #region Injectable LayerView Factories
847 string target_currency =
null)
864 string target_currency =
null)
872 #endregion Injectable LayerView Factories
873 #endregion LayerView Samples
875 #region LossFilter Samples
878 GetOrCreate(
ref _lossFilterAndFilter, () =>
new AndFilter
880 description =
"Test AndFilter Description",
883 name =
"Test AndFilter Name",
893 GetOrCreate(
ref _lossFilterAnyFilter, () =>
new AnyFilter
895 description =
"Test AnyFilter Description",
898 name =
"Test AnyFilter Name"
905 description =
"Test AnyOfFilter Description",
908 name =
"Test AnyOfFilter Name",
909 attribute =
"Attribute1",
917 description =
"Test RecordTypeAnyOfFilter Description",
920 name =
"Test RecordTypeAnyOfFilter Name",
926 GetOrCreate(
ref _lossFilterGTFilter, () =>
new GTFilter
928 description =
"Test GTFilter Description",
931 name =
"Test GTFilter Name",
932 attribute =
"NumericAttribute",
939 GetOrCreate(
ref _lossFilterLTFilter, () =>
new LTFilter
941 description =
"Test LTFilter Description",
944 name =
"Test LTFilter Name",
945 attribute =
"NumericAttribute",
952 GetOrCreate(
ref _lossFilterOrFilter, () =>
new OrFilter
954 description =
"Test OrFilter Description",
957 name =
"Test OrFilter Name",
969 description =
"Test RangeFilter Description",
972 name =
"Test RangeFilter Name",
973 attribute =
"NumericAttribute",
974 begin_inclusive =
true,
975 end_inclusive =
false,
979 #endregion LossFilter Samples
981 #region LossSet Samples
1000 description =
"Test LossSet Description",
1003 }, CSV.Loss_Set_1_Data);
1005 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
1007 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
1012 description =
"Test TreatyLossSet Description",
1017 }, CSV.Loss_Set_2_Data);
1019 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
1021 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
1026 description =
"Test PortfolioLossSet Description",
1031 }, CSV.Loss_Set_3_Data);
1033 #region NestedLayerLossSet Samples
1034 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
1037 [
Obsolete(
"This test resources exists for backwards compatibility testing of an obsolete class.")]
1039 _lossSetNestedLayerLossSet ??
1048 [
Obsolete(
"This test helper exists for backwards compatibility testing of an obsolete class.")]
1054 description =
"Sample NestedLayerLossSet for " +
1055 layer.UnderlyingType.NiceTypeName(),
1057 loss_type = loss_type,
1058 layer =
Inject(() => layer).AsReference
1061 #endregion NestedLayerLossSet Samples
1068 description =
"Test ParametricLossSet Description",
1078 #region YELTLossSet Samples
1086 description =
"Test YELTLossSet Description",
1101 TypedLockGuard.GetOrCreate(
ref _lossSetYELTLossSetWithReinstatements,
1104 #endregion YELTLossSet Samples
1106 #region YLTLossSet Samples
1115 description =
"Test YLTLossSet Description",
1129 TypedLockGuard.GetOrCreate(
ref _lossSetYLTLossSetWithReinstatements,
1131 LossType.LossNetOfAggregateTerms));
1132 #endregion YLTLossSet Samples
1134 #region LoadedLossSet Samples
1138 TypedLockGuard.GetOrCreate(
ref _lossSetLoadedLossSet, () =>
1153 description =
"Sample LoadedLossSet for " +
1154 source.UnderlyingType.NiceTypeName(),
1157 loss_type = loss_type,
1158 source =
Inject(() => source).AsReference
1161 #endregion LoadedLossSet Samples
1168 description =
"Test QCLSLossSet Description",
1170 correlation_coefficient = 0.5,
1174 #endregion LossSet Samples
1176 #region OptimizationView Samples
1182 {
"Discretization", 0.0001},
1183 {
"Objective 1 - Function",
"expected_return"},
1184 {
"Objective 1 - Name",
"Expected Return"},
1185 {
"Objective 1 - Type",
"max"},
1186 {
"Objective 1 - Return Period",
""},
1187 {
"Objective 1 - Loss Perspective",
"losses_net_premium"},
1189 {
"Objective 2 - Function",
"tail_value_at_risk"},
1190 {
"Objective 2 - Name",
"Tail Value at Risk"},
1191 {
"Objective 2 - Type",
"max"},
1192 {
"Objective 2 - Return Period", 0.01},
1193 {
"Objective 2 - Loss Perspective",
"losses_net_premium"},
1195 {
"Constraint 1 - Function",
"el_capital_ratio"},
1196 {
"Constraint 1 - Name",
"EL-Capital Ratio"},
1197 {
"Constraint 1 - Min",
""},
1198 {
"Constraint 1 - Max", 0.8},
1199 {
"Constraint 1 - Return Period",
""},
1200 {
"Constraint 1 - Loss Perspective",
""},
1201 {
"Constraint 1 - Capital Load", 1.5},
1203 {
"Constraint 2 - Function",
"florida_limit_total_limit_ratio"},
1204 {
"Constraint 2 - Min",
""},
1205 {
"Constraint 2 - Max", 0.5},
1206 {
"Constraint 2 - Return Period",
""},
1207 {
"Constraint 2 - Loss Perspective",
""},
1209 {
"Constraint 3 - Function", 2},
1210 {
"Constraint 3 - Min", -10000},
1211 {
"Constraint 3 - Max",
""},
1212 {
"Constraint 3 - Return Period",
""},
1213 {
"Constraint 3 - Loss Perspective",
""}
1221 layer =
Inject(() =>
l).AsReference,
1227 description =
"Test Optimization Description",
1230 population_size = 5,
1238 TypedLockGuard.GetOrCreate(
ref _optimizationViewSimulated, () =>
1240 #endregion OptimizationView Samples
1242 #region Optimization Function Samples
1248 description =
"Round the value to the nearest \"step\".",
1249 name =
"Unique Name " +
Guid.NewGuid(),
1251 "step == 0.0 && return member.variables[:shares]" +
1253 "return Float64[discretize_value(value, step, min, max)" +
1254 " for (value, min, max) in" +
1255 " zip(member.variables[:shares], mins, maxes)]" +
1259 {
"type",
"object" },
1276 description =
"Round the value to the nearest \"step\".",
1277 name =
"Unique Name " +
Guid.NewGuid(),
1279 "step == 0.0 && return member.variables[:shares]" +
1281 "return Float64[discretize_value(value, step, min, max)" +
1282 " for (value, min, max) in" +
1283 " zip(member.variables[:shares], mins, maxes)]" +
1287 {
"type",
"object" },
1298 #endregion Optimization Function Samples
1300 #region Portfolio Samples
1305 description =
"Test StaticPortfolio 1 Description",
1313 name =
"Test StaticPortfolio 1 Name"
1315 #endregion Portfolio Samples
1317 #region PortfolioView Samples
1320 TypedLockGuard.GetOrCreate(
ref _portfolioViewWithPortfolio, () =>
1325 TypedLockGuard.GetOrCreate(
ref _portfolioViewWithLayerViews, () =>
1339 #region Injectable PortfolioView Factories
1349 string target_currency =
null)
1353 portfolio =
Inject(() => portfolio).AsReference,
1355 target_currency = target_currency
1358 #endregion Injectable PortfolioView Factories
1359 #endregion PortfolioView Samples
1361 #region Simulation Samples
1362 #region StaticSimulation
1367 description =
"Test Simulation 1 Description",
1370 name =
"Test Simulation 1 Name",
1373 }, CSV.Static_Simulation_Data);
1374 #endregion StaticSimulation
1375 #endregion Simulation Samples
A class containing a resource that can be Posted with dependencies.
Exposes the various sample CSV files as strings.
static string YLTLossSet_WithReinstatements_10Trials
static string YELTLossSet_10Trials
static string YLTLossSet_10Trials
Exposes sample resource objects, with built-in methods for injecting dependencies.
IInjectableResource< NegativeBinomialDistribution > Distribution_NegativeBinomialDistribution
IInjectableResource< CustomSeasonalityDistribution > Distribution_CustomSeasonalityDistribution
IInjectableResource< ILayerView< FixedDatePayment > > LayerView_FixedDatePayment
static readonly PollingOptions DataPollingOptions
Polling options to use when uploading a data file.
IInjectableResource< RangeFilter > LossFilter_RangeFilter
List< IInjectableResource< ILayerView > > AllLayerViewTypesTestList
A list of one of each type of layer.
static Parameters UploadParams
The LargeDataUpload parameters to use when uploading data for test fixtures.
IInjectableResource< YELTLossSet > LossSet_YELTLossSet
IInjectableResource< Nested > Layer_Nested
A simple nested layer retaining a CatXL source's losses to an AggXL sink.
IInjectableResource< SurplusShare > Layer_SurplusShare
IInjectableResource< ILayerView< DelayedPayment > > LayerView_DelayedPayment
IInjectableResource< ILayerView< Generic > > LayerView_Generic
IInjectableResource< ILayerView< AggXL > > LayerView_AggXL
IInjectableResource< PoissonDistribution > Distribution_PoissonDistribution
IInjectableResource< ELTLossSet > LossSet_ELTLossSet
IInjectableResource< StaticSimulation > Simulation_StaticSimulation
IInjectableResource< NormalDistribution > Distribution_NormalDistribution
IInjectableResource< ILayerView< BackAllocatedLayer > > LayerView_BackAllocatedLayer
IInjectableResource< AggXL > Layer_AggXL
IInjectableResource< YLTLossSet > GetInjectableYLT(string data=null, LossType lossType=LossType.LossGross)
Helper function for creating a YLT Loss Set with a specific configuration.
IInjectableResource< ILayerView< Nested > > LayerView_Nested
IInjectableResource< ILayerView< QuotaShare > > LayerView_QuotaShare
IInjectableResource< Generic > Layer_Generic
IInjectableResource< ILayerView< FixedRateCurrencyConverter > > LayerView_FixedRateCurrencyConverter
List< IInjectableResource< ILayer > > AllSaveableLayerTypesTestList
A list of one of each type of layer that can be POSTed. Layer types that cannot be posted on their ow...
IInjectableResource< OrFilter > LossFilter_OrFilter
IInjectableResource< LogNormalDistribution > Distribution_LogNormalDistribution
IInjectableResource< CustomSeverityDistribution > Distribution_CustomSeverityDistribution
IInjectableResource< ILayerView< NoClaimsBonus > > LayerView_NoClaimsBonus
Dictionary< string, object > OptimizationView_CustomParameters
A sample acceptable optimization_view custom_parameters dictionary.
IInjectableResource< BackAllocatedLayer > Layer_BackAllocatedLayer
IInjectableResource< NestedLayerLossSet > LossSet_NestedLayerLossSet
A simple NestedLayerLossSet retaining a CatXL layer's losses.
IInjectableResource< IndustryLossWarranty > Layer_IndustryLossWarranty
IInjectableResource< UniformDistribution > Distribution_UniformDistribution
IInjectableResource< ILayerView< Filter > > LayerView_Filter
IInjectableResource< ILayerView< LossRank > > LayerView_LossRank
IInjectableResource< LoadedLossSet > LossSet_LoadedLossSet
A simple LoadedLossSet loading a ELTLossSets losses.
static Dictionary< string, object > SampleMetadata
IInjectableResource< QCLSLossSet > LossSet_QCLSLossSet
IInjectableResource< VendorTreatyAnalysis > Analysis_VendorTreatyAnalysis
IInjectableResource< YELTLossSet > LossSet_YELTLossSetWithReinstatements
IInjectableResource< NestedLayerLossSet > GetInjectableNestedLayerLossSet(IInjectableResource< ILayer > layer, LossType? loss_type=null)
Factory for producing injectable NestedLayerLossSets using a POSTable injectable Layer for use in tes...
IInjectableResource< TreatyLossSet > LossSet_TreatyLossSet
IInjectableResource< LossRank > Layer_LossRank
IInjectableResource< ParametricLossSet > LossSet_ParametricLossSet
IInjectableResource< ParetoDistribution > Distribution_ParetoDistribution
IInjectableResource< ILayerView< SurplusShare > > LayerView_SurplusShare
IInjectableResource< PortfolioView > PortfolioView_WithLayerViews
IInjectableResource< AndFilter > LossFilter_AndFilter
IInjectableResource< AggregateQuotaShare > Layer_AggregateQuotaShare
IInjectableResource< VendorPortfolioAnalysis > Analysis_VendorPortfolioAnalysis
IInjectableResource< UniformIntDistribution > Distribution_UniformIntDistribution
IInjectableResource< DiracDistribution > Distribution_DiracDistribution
IInjectableResource< ValueAllocator > Layer_ValueAllocator
IInjectableResource< ILayerView< T > > GetInjectableLayerView< T >(IInjectableResource< T > layer, IInjectableResource< AnalysisProfile > analysisProfile=null, string target_currency=null)
Factory for producing injectable LayerViews using a Layer and a injectable AnalysisProfile for use in...
IInjectableResource< BinomialDistribution > Distribution_BinomialDistribution
DateTime SimulationStartDate
The relative start_date to use for all new resources that require an absolute DateTime point of refer...
IInjectableResource< CatXL > Layer_CatXL
List< IInjectableResource< LossSet > > AllLossSetTypesTestList
One sample of each loss set type, all with the loss_type set to LossType.LossGross to maximize potent...
List< IInjectableResource< ILayer > > AllLayerTypesTestList
A list of one of each type of layer.
IInjectableResource< Filter > Layer_Filter
IInjectableResource< LTFilter > LossFilter_LTFilter
IInjectableResource< Nested > GetInjectableNestedLayer(IInjectableResource< ILayerSource > sink, IEnumerable< IInjectableResource< ILayerSource > > sources, bool inline=false)
Factory for producing injectable NestedLayers using a POSTable injectable Layer for use in testing.
IInjectableResource< YLTLossSet > LossSet_YLTLossSet
IInjectableResource< ILayerView< IndustryLossWarranty > > LayerView_IndustryLossWarranty
IInjectableResource< LoadedLossSet > GetInjectableLoadedLossSet(IInjectableResource< LossSet > source, double load=1.0, LossType? loss_type=null)
Factory for producing injectable LoadedLossSets using a POSTable injectable Layer for use in testing.
void Reset()
Reset all cached injected resources.
IInjectableResource< ILayerView< CatXL > > LayerView_CatXL
IInjectableResource< AnalysisProfile > AnalysisProfile_OneFilter
An analysis profile containing only an AnyFilter.
IInjectableResource< AnyFilter > LossFilter_AnyFilter
IInjectableResource< FixedDatePayment > Layer_FixedDatePayment
IInjectableResource< OptimizationView > GetInjectableOptimizationView(IEnumerable< IInjectableResource< Layer > > layers)
IInjectableResource< ILayerView< AggregateQuotaShare > > LayerView_AggregateQuotaShare
IInjectableResource< YELTLossSet > GetInjectableYELT(string currency="USD", string data=null, LossType lossType=LossType.LossGross)
Helper function for creating a YELT Loss Set with a specific configuration.
IInjectableResource< YLTLossSet > LossSet_YLTLossSetWithReinstatements
IInjectableResource< QuotaShare > Layer_QuotaShare
IInjectableResource< DelayedPayment > Layer_DelayedPayment
IInjectableResource< GTFilter > LossFilter_GTFilter
IInjectableResource< RecordTypeAnyOfFilter > LossFilter_RecordTypeAnyOfFilter
IInjectableResource< AnyOfFilter > LossFilter_AnyOfFilter
IInjectableResource< CustomFrequencyDistribution > Distribution_CustomFrequencyDistribution
IInjectableResource< ILayerView< ValueAllocator > > LayerView_ValueAllocator
IInjectableResource< PortfolioLossSet > LossSet_PortfolioLossSet
bool OfflineMode
Can be set to true to avoid POSTing resources, and instead injecting mock resources with invalid ids ...
IInjectableResource< OptimizationView > OptimizationView_Simulated
IInjectableResource< FixedRateCurrencyConverter > Layer_FixedRateCurrencyConverter
IInjectableResource< NoClaimsBonus > Layer_NoClaimsBonus
IInjectableResource< PortfolioView > PortfolioView_WithPortfolio
IInjectableResource< PortfolioView > GetInjectablePortfolioView(IInjectableResource< StaticPortfolio > portfolio, IInjectableResource< AnalysisProfile > analysisProfile, string target_currency=null)
Factory for producing injectable PortfolioViews using a Portfolio and a injectable AnalysisProfile fo...
Retrieve settings from environment variables if they exist, or the project settings file otherwise.
static bool RUN_OFFLINE
Controls whether tests that normally require a connection to the server should be allowed to try to r...
Describes a collection of resources which can be listed.
Represents a DataAgent instance.
Represents the metadata for a VendorPortfolioAnalysis entity imported from a vendor.
Represents the metadata for a VendorTreatyAnalysis entity imported from a vendor.
A configuration of resources used to simulate a layer or portfolio.
Indicates that while the current APIResource-derived class can be constructed and potentially inlined...
Describes a Binomial Discrete Distribution.
Custom Distribution that describes a parametric loss set's frequency.
Custom Distribution that describes a parametric loss set's seasonality.
Custom Distribution that describes a parametric loss set's severity.
Describes a distribution that always returns the same value. This distribution can be used as either ...
Describes a LogNormal Continuous Distribution.
Describes a NegativeBinomial Discrete Distribution.
Describes a Normal Continuous Distribution.
Describes a Pareto Probability Distribution.
Describes a Poisson Discrete Distribution.
Representation of an event catalog. The event catalog may cover multiple region/perils,...
A rule indicating that the latest available exchange rate should be used.
A profile describing how to apply exchange rates during an analysis.
A table containing exchange rate information.
Parameters to be used in a Large Data Upload operation.
Representation of an Aggregate Catastrophe Excess of Loss layer.
Representation of a Quota Share contract that is limited in annual payouts.
Acts as a replacement for IAPIResourceView.back_allocations. Computes the proportion of some sink str...
Representation of a Catastrophe Excess of Loss (CatXL) layer.
Describes a single payment, which consists of a delay and fracational amount.
A "delayed payment" payment pattern models claims being paid in instalments at fixed delays after the...
Filter is like a layer whose 'terms' are to filter events out of the loss sources....
A "delayed payment" payment pattern models claims being paid in instalments at specific dates followi...
A structure that can be used to change the currency of a loss stream from one currency to another at ...
Representation of an Aggregate Catastrophe Excess of Loss layer with reinstatements.
Representation of an Industry Loss Warranty, which is a layer that triggers a payout (currently expre...
The LossRank layer allows one to select a subset of occurrences in a trial year based on the relative...
A wrapper for a List<T> of IReference<ILayerSource> references that simplifies the construction and u...
Allows one or more source layers or layer_views to be attached as loss sources to some other layer de...
The No Claims Bonus applies a payout to trials which contain no losses. (i.e. when there are no occur...
Representation of a Quota Share contract.
Represents a reinstatement premium and brokerage amount.
Representation of a Surplus Share contract.
Surfaces the value-allocator specialty structure (which is treated as a "layer definition" by the API...
A filter consisting of a list of filters, all of which have to be satisfied.
Matches all losses (always returns true).
A filter consisting of an attribute and a list of accepted values for that attribute.
A filter where the specified attribute must have a numeric value that is greater than a specified val...
A filter where the specified attribute must have a numeric value that is less than a specified value.
A filter consisting of a list of filters, any of which have to be satisfied.
A filter where the specified attribute must have a numeric value that is within the specified range o...
A filter consisting of an attribute and a list of accepted values for that attribute.
Representation of a single loss set with an associated event loss table.
Representation of a Loaded loss set, whose losses are derived from an existing loss set and applies a...
Representation of a Nested layer loss set, which represents any loss set whose losses are derived fro...
Representation of a Parametric loss set.
Representation of a PortfolioLossSet.
The Quantile-Based Correlated Loss Sampling (QCLS) loss set is a simulated parametric loss set which ...
Custom TreatyLossSet treaty reference type.
Representation of a TreatyLossSet.
Representation of a loss set with an associated year-event-loss table.
Representation of a loss set with an associated simulated yearly losses table.
Representation of a monetary value with a currency.
A structure indicating the min/max share constraint for a layer.
Functions to be used by the Optimization platform for computing objective and constraint values.
Representation of a set of Optimization Parameters.
Functions to be used by the Optimization platform for manipulating the members of the population.
Determines the behaviour of the API when automatically retrying a request whose result is not yet rea...
Represents the Analysis of a Portfolio.
Representation of a portfolio.
Representation of a portfolio.
A pre-simulated representation of a Simulation (SimGrid).
IReference< T > AsReference
A reference to the posted resource.
T Unposted
The unPOSTed resource definition.
Describes an APIResource class that adds a "/data" sub-resource, since this functionality is common t...
Interface for Base class used by all resources.
Abstract representation of a layer.
LossType
Indicates what types of losses are generated by this loss set.
@ LossNetOfAggregateTerms
Generated losses are net of aggregate terms.
@ currency
Reinstatement values represent a fixed dollar amount.
RecordType
The type of occurrence.