public PRMS() { Name = "Surface"; Icon = Resources.mf16; LargeIcon = Resources.mf32; _mmsPackage = new MMSPackage("PRMS Package") { Owner = this }; _outputPackage = new PRMSOutputDataPackage() { Owner = this }; _inputPackage = new PRMSInputDataPackage() { Owner = this }; _drivingPackage = new PRMSDrivingDataPackage() { Owner = this }; _mmsPackage.Owner = this; AddInSilence(_inputPackage); AddInSilence(_outputPackage); AddInSilence(_drivingPackage); Description = "A deterministic, distributed-parameter, physical process based surface water model"; }
public void ResolveModules() { var para = from par in _mmsPackage.Parameters.Values group par by par.ModuleName into pp select new { Module = pp.Key, Paras = pp.ToArray() }; foreach (var p in para) { MMSPackage pk = new MMSPackage(p.Module.ToString()); pk.Owner = this; pk.FileName = _mmsPackage.FileName; foreach (var ar in p.Paras) { pk.Parameters.Add(ar.Name, ar); } // pk.Initialize(); AddInSilence(pk); } }