Ejemplo n.º 1
0
        public ReferencePrototype(PartitionData PD, ModuleSettingsProvider _moduleSettings, JavascriptContext JSContext)
        {
            SetModelList(_moduleSettings);

            RAPSettings _rapsettings = GetRAPSettings(_moduleSettings);
            SubSamplingAnalysisSetting _subSamplingSettings = GetSubSamplingSettings(_moduleSettings);

            InitilizePrototype(PD, _rapsettings, _subSamplingSettings, JSContext);
        }
Ejemplo n.º 2
0
 public GraphBuildCache(PartitionDataAdpator _PDataAdaptor, RAPSettings rapSettings)
 {
     graphList           = new Dictionary <long, GraphInfo>();
     exSettings          = new Dictionary <long, BuildSettings>();
     expData             = new Dictionary <long, ExposureDataAdaptor>();
     indexMappings       = new Dictionary <long, IRITEindexMapper>();
     DefualtBuildSetting = new BuildSettings(GraphType.Auto, rapSettings);
     PDataAdaptor        = _PDataAdaptor;
 }
Ejemplo n.º 3
0
        public RITEmapper1(ExposureDataAdaptor _expData, RAPSettings _rapsettings, ISubPerilConfig _subperilConfig)
        {
            expData = _expData;
            HashSet <string> subPerilInputList = new HashSet <string>(_rapsettings.SubPerils.Union(_expData.ContractCOLs.GetSubperils()));

            SPmapping                  = new SubPerilMapping(_subperilConfig, subPerilInputList);
            preBldgIndex               = new Dictionary <long, Dictionary <string, int> >();
            CummulativeBuildingMap     = new Dictionary <long, int>();
            UniqueARTIEIndexToRITEID   = new Dictionary <int, long>();
            UniqueARTIEIndexToSubPeril = new Dictionary <int, string>();

            aggregatemapper = new AggregateRITEMapper(expData);
            BuildIndexDictionary();
        }
Ejemplo n.º 4
0
        private IRITEindexMapper GetMapper(ExposureDataAdaptor expData)
        {
            IRITEindexMapper indexMapper;

            if (graphCache.GetIndexMapper(expData.ContractID, out indexMapper))
            {
                return(indexMapper);
            }
            else
            {
                RAPSettings rapsettings = graphCache.GetSettings(expData.ContractID).RAPsettings;
                indexMapper = new RITEmapper1(expData, rapsettings, new RMSSubPerilConfig());
                graphCache.Add(expData.ContractID, indexMapper);
                return(indexMapper);
            }
        }
Ejemplo n.º 5
0
 public ReferencePrototype(PartitionData PD, RAPSettings _rapsettings, JavascriptContext JSContext, SubSamplingAnalysisSetting _subSamplingSettings)
 {
     InitilizePrototype(PD, _rapsettings, _subSamplingSettings, JSContext);
 }
Ejemplo n.º 6
0
 public ReferencePrototype(PartitionData PD, RAPSettings _rapsettings, SubSamplingAnalysisSetting _subSamplingSettings)
 {
     InitilizePrototype(PD, _rapsettings, _subSamplingSettings);
 }
Ejemplo n.º 7
0
 public void AddBuildSettings(long id, GraphType type, RAPSettings settings)
 {
     GraphCache.AddBuildSetting(id, new BuildSettings(type, settings));
 }
Ejemplo n.º 8
0
 private void InitilizePrototype(PartitionData PD, RAPSettings _rapsettings, SubSamplingAnalysisSetting _subSamplingSettings, JavascriptContext JSContext)
 {
     PDataAdaptor = new PartitionDataAdpator(PD, JSContext, _subSamplingSettings);
     Positions    = new PositionData();
     GraphCache   = new GraphBuildCache(PDataAdaptor, _rapsettings);
 }
Ejemplo n.º 9
0
 public BuildSettings(GraphType type, RAPSettings _RAPsettings)
 {
     GraphType   = type;
     RAPsettings = _RAPsettings;
 }