public ReferencePrototype(PartitionData PD, ModuleSettingsProvider _moduleSettings, JavascriptContext JSContext) { SetModelList(_moduleSettings); RAPSettings _rapsettings = GetRAPSettings(_moduleSettings); SubSamplingAnalysisSetting _subSamplingSettings = GetSubSamplingSettings(_moduleSettings); InitilizePrototype(PD, _rapsettings, _subSamplingSettings, JSContext); }
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; }
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(); }
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); } }
public ReferencePrototype(PartitionData PD, RAPSettings _rapsettings, JavascriptContext JSContext, SubSamplingAnalysisSetting _subSamplingSettings) { InitilizePrototype(PD, _rapsettings, _subSamplingSettings, JSContext); }
public ReferencePrototype(PartitionData PD, RAPSettings _rapsettings, SubSamplingAnalysisSetting _subSamplingSettings) { InitilizePrototype(PD, _rapsettings, _subSamplingSettings); }
public void AddBuildSettings(long id, GraphType type, RAPSettings settings) { GraphCache.AddBuildSetting(id, new BuildSettings(type, settings)); }
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); }
public BuildSettings(GraphType type, RAPSettings _RAPsettings) { GraphType = type; RAPsettings = _RAPsettings; }