C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
ValueAllocator.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
3
4namespace AnalyzeRe.Layers
5{
20 public class ValueAllocator : Layer
21 {
41
47 [DataMember(Order = 20)]
48 [NotNull]
49 public IReference<ILayerSource> source { get; set; }
50
58 [DataMember(Order = 21)]
59 [NotNull]
60 public IReference<ILayerSource> target { get; set; }
61
70 [DataMember(Order = 22)]
71 [NotNull]
72 public IReference<ILayerSource> group { get; set; }
73
83 [DataMember(Order = 23)]
86
97 [DataMember(Order = 24)]
98 [NotEmpty]
99 [AllocationPerspectivesDefault]
101
104 [DataMember(Order = 25)]
107
111 private class AllocationPerspectivesDefault : ServerHasDefault
112 {
113 public static readonly Perspective[] DefaultList =
114 {
117 Perspective.ReinstatementBrokerage
118 };
119 public AllocationPerspectivesDefault() : base(true) { }
120 public override object GetDefaultValue(object owner) => DefaultList;
121 }
122
125 {
127 PerEvent,
128
131 }
132 }
133}
Indicates that the property, if left null, will have a default value generated and filled in by the s...
Abstract representation of a layer. This resource type cannot be instantiated instead derived resourc...
Definition Layer.cs:12
Surfaces the value-allocator specialty structure (which is treated as a "layer definition" by the API...
IReference< ILayerSource > source
A structure whose event losses are proportionally allocated using the ratio of target to group loss v...
Perspective[] allocation_perspectives
Dictates which 'columns' of the YELT (which Perspectives) should be affected by the value allocator.
IReference< ILayerSource > target
A structure whose event losses are used as the numerator for calculating each event loss occurrences'...
Perspective? proportioned_perspective
The Loss Perspective of the target and group YELT values used when calculating the allocation ratio.
Perspective
The loss perspectives that can be used when computing proportions (proportioned_perspective) and allo...
@ ReinstatementBrokerage
Use ReinstatementBrokerage amounts (only applicable to RecordType.Loss records).
@ ReinstatementPremium
Use ReinstatementPremium amounts (only applicable to RecordType.Loss records).
@ LossNetOfAggregateTerms
Use Net event loss amounts (includes all RecordTypes).
AllocationRatioBasis
Dictates how value allocator layer should allocate losses per event or per trial.
@ PerEvent
The allocated values should be calculated on per event basis.
@ PerTrial
The allocated values should be calculated on per trial basis.
AllocationRatioBasis? allocation_ratio_basis
Allows to select how allocated values should be calculated: on PerEvent (by default) or PerTrial basi...
IReference< ILayerSource > group
A structure whose event losses are used as the denominator for calculating each event loss occurrence...
The loss perspective determines what factors to include when computing a distribution.
static readonly Perspective LossNetOfAggregateTerms
The legacy perspective value indicating "net loss" - but this includes fee record types as well.
static readonly Perspective ReinstatementPremium
Construct a distribution from the structure's net reinstatement premiums.
Base interface for all reference entities.