コード例 #1
0
        public ExposureDataAdaptor(ContractExposure contractExposure, JavascriptParser _jsParser, SubSamplingAnalysisSetting _subSamplingSettings)
        {
            JSParser                      = _jsParser;
            _contractExposure             = contractExposure;
            SubSamplingSettings           = _subSamplingSettings;
            MaxNumSamplesPerHiResLocation = SubSamplingSettings.MaxSampleBldgs;
            //Unnecessary if no more multiplier arrays...
            RITE.MaxNumOfBldgs = MaxNumSamplesPerHiResLocation;

            _contractJSON      = GetJSONForContract();
            ContractCOLs       = GetContractCOLs();
            UseAggregatedRITEs = IsExtractVersion2Disaggregated();
            EDSDataExtract     = new ExposureDataExtractor(_contractExposure);

            _characteristics     = new HashSet <RITCharacteristic>();
            _rites               = new HashSet <RITE>();
            _schedules           = new HashSet <ScheduleOfRITEs>();
            _characteristicsDict = new Dictionary <long, RITCharacteristic>();
            _ritesDict           = new Dictionary <long, RITE>();
            _schedulesDict       = new Dictionary <string, ScheduleOfRITEs>();

            RiskCharIDtoAggregateID  = new Dictionary <long, long>();
            AggregateIDtoDisaggIDs   = new Dictionary <long, HashSet <long> >();
            DisaggRitCharToDisAggRIT = new Dictionary <long, long>();

            if (_contractExposure.ContractType.IsReinsuranceContract())
            {
                TreatyExposure            = true;
                treatyIncludesPrimaryData = false;
            }
            else
            {
                TreatyExposure = false;
            }
        }
コード例 #2
0
        public PartitionDataAdpator(PartitionData _PData, SubSamplingAnalysisSetting _subSamplingSettings)
        {
            PData   = _PData;
            expData = new Dictionary <long, ExposureDataAdaptor>();

            JSParser            = new JavascriptParser(GetParserSettings());
            SubSamplingSettings = _subSamplingSettings;
        }