Beispiel #1
0
        public ReferenceResultOutput(double _payout, double _subjectLoss)
        {
            TotalPayout      = _payout;
            TotalSubjectLoss = _subjectLoss;

            SubjectLosses         = new QuerryableLossOutput();
            AllocatedPayoutLosses = new QuerryableLossOutput();
        }
Beispiel #2
0
        public ReferenceResultOutput(double _payout, double _subjectLoss, HashSet <AtomicRITE> rites)
            : this(_payout, _subjectLoss)
        {
            List <AtomicLoss> atomicPayoutLosses  = GetAllocatedPayoutsFromARITEs(rites);
            List <AtomicLoss> atomicSubjectLosses = GetSubjectLossesFromARITEs(rites);

            AllocatedPayoutLosses = new QuerryableLossOutput(atomicPayoutLosses);
            SubjectLosses         = new QuerryableLossOutput(atomicSubjectLosses);
        }
Beispiel #3
0
        public static ReferenceResultOutput operator +(ReferenceResultOutput exOutput1, ReferenceResultOutput exOutput2)
        {
            double payout      = exOutput1.TotalPayout + exOutput2.TotalPayout;
            double SubjectLoss = exOutput1.TotalSubjectLoss + exOutput2.TotalSubjectLoss;

            QuerryableLossOutput _SubjectLosses         = exOutput1.SubjectLosses + exOutput2.SubjectLosses;
            QuerryableLossOutput _AllocatedPayoutLosses = exOutput1.AllocatedPayoutLosses + exOutput2.AllocatedPayoutLosses;

            return(new ReferenceResultOutput(payout, SubjectLoss, _SubjectLosses, _AllocatedPayoutLosses));
        }
Beispiel #4
0
 public ReferenceResultOutput(double _payout, double _subjectLoss, QuerryableLossOutput _subjectLosses, QuerryableLossOutput _allocatedPayoutLosses)
     : this(_payout, _subjectLoss)
 {
     SubjectLosses         = _subjectLosses;
     AllocatedPayoutLosses = _allocatedPayoutLosses;
 }
Beispiel #5
0
 public ReferenceResultOutput(double _payout, double _subjectLoss, List <AtomicLoss> atomicPayoutLosses, DateTime _earliestEventDate)
     : this(_payout, _subjectLoss)
 {
     AllocatedPayoutLosses    = new QuerryableLossOutput(atomicPayoutLosses);
     EarliestEventForContract = _earliestEventDate;
 }
Beispiel #6
0
 public void SetSubjectLoss(QuerryableLossOutput subjectLosses)
 {
     SubjectLosses = subjectLosses;
 }
Beispiel #7
0
 public void SetSubjectLoss(List <AtomicLoss> subjectLosses)
 {
     SubjectLosses = new QuerryableLossOutput(subjectLosses);
 }
Beispiel #8
0
 public void SetSubjectLoss(HashSet <AtomicRITE> rites)
 {
     SubjectLosses = new QuerryableLossOutput(GetSubjectLossesFromARITEs(rites));
 }