Пример #1
0
 public RandomNetGenParamMgr(Guid id)
 {
     Id = id;
     using (VarMapperFactory fac = new VarMapperFactory())
     {
         _varMapper = fac.CreateMapper();
     }
 }
Пример #2
0
 public EmptyParamMgr(Guid id)
 {
     Id = id;
     using (VarMapperFactory fac = new VarMapperFactory())
     {
         ParamVarMapper = fac.CreateMapper();
     }
 }
Пример #3
0
        private IDataPropertiesElementParamMgr CreateParamMgr(Guid mgrId)
        {
            IParamVarMapper varMap = null;
            using (VarMapperFactory fac = new VarMapperFactory())
            {
                varMap = fac.CreateMapper();
            }

            IDataPropertiesElementParamBag bag = new DataPropertiesElementParamBag();

            IDataPropertiesElementParamMgr paramMgr = new DataPropertiesElementParamMgr(mgrId, bag, varMap);

            return paramMgr;
        }
        private INetworkPropertiesElementParamMgr CreateParamMgr()
        {
            IParamVarMapper varMap = null;
            using (VarMapperFactory fac = new VarMapperFactory())
            {
                varMap = fac.CreateMapper();
            }

            INetworkPropertiesElementParamBag bag = new NetworkPropertiesElementParamBag();

            Guid id = Guid.NewGuid();
            INetworkPropertiesElementParamMgr paramMgr = new NetworkPropertiesElementParamMgr(id, bag, varMap);

            return paramMgr;
        }
Пример #5
0
        private IRandomNetGenParamMgr CreateParamMgr(Guid mgrId)
        {
            IParamVarMapper varMap = null;
            using (VarMapperFactory fac = new VarMapperFactory())
            {
                varMap = fac.CreateMapper();
            }

            IRandomNetGenParamBag bag = new RandomNetGenParamBag();

            IRandomNetGenParamMgr paramMgr = new RandomNetGenParamMgr(mgrId, bag, varMap);

            return paramMgr;
        }
Пример #6
0
        private IImportNetworkParamMgr CreateParamMgr(Guid mgrId)
        {
            IParamVarMapper varMap = null;
            using (VarMapperFactory fac = new VarMapperFactory())
            {
                varMap = fac.CreateMapper();
            }

            IImportNetworkParamBag bag = new ImportNetworkParamBag();

            IImportNetworkParamMgr paramMgr = new ImportNetworkParamMgr(mgrId, bag, varMap);

            return paramMgr;
        }
Пример #7
0
        private IExportNetworkParamMgr CreateParamMgr()
        {
            IParamVarMapper varMap = null;
            using (VarMapperFactory fac = new VarMapperFactory())
            {
                varMap = fac.CreateMapper();
            }

            IExportNetworkParamBag bag = new ExportNetworkParamBag();

            Guid id = Guid.NewGuid();
            IExportNetworkParamMgr paramMgr = new ExportNetworkParamMgr(id, bag, varMap);

            return paramMgr;
        }
Пример #8
0
        private IExtractKthCoreParamMgr CreateParamMgr(Guid mgrId)
        {
            IParamVarMapper varMap = null;
            using (VarMapperFactory fac = new VarMapperFactory())
            {
                varMap = fac.CreateMapper();
            }

            IExtractKthCoreParamBag bag = new ExtractKthCoreParamBag();

            IExtractKthCoreParamMgr paramMgr = new ExtractKthCoreParamMgr(mgrId, bag, varMap);

            return paramMgr;
        }