///------------------------------------------------------------------------------------------------- /// <summary> Constructor. </summary> /// /// <param name="TheModelParam"> the model parameter to create item from. </param> ///------------------------------------------------------------------------------------------------- public ModelParamItem(ModelParameterClass TheModelParam) { FModelParam = TheModelParam.ModelParam; FModelParamName = eModelParam.Names(TheModelParam.ModelParam); FFieldname = TheModelParam.Fieldname;; FLabel = TheModelParam.Label; if (TheModelParam.isExtended) { FDescrip = TheModelParam.Description; FUnitsShort = TheModelParam.Units; FUnitsLong = TheModelParam.UnitsLong; if (TheModelParam.TopicGroups != null) { if (TheModelParam.TopicGroups.Count > 0) { foreach (ModelParameterGroupClass MPG in TheModelParam.TopicGroups) { FTopics.Add(MPG); } } } } FMax = TheModelParam.HighRange; FMin = TheModelParam.LowRange; FRangeType = TheModelParam.RangeCheckType; FDepends = TheModelParam.DerivedFrom; //int Default = 0; FParamType = TheModelParam.ParamType; if ((TheModelParam.isProviderParam) && (TheModelParam.ProviderProperty != null)) { FProvAgMode = TheModelParam.ProviderProperty.AggregateMode; FProviderPropertyName = TheModelParam.ProviderProperty.GetType().FullName; } }
// protected providerArrayProperty FDefaultValues; /// <summary> Constructor. </summary> /// /// <remarks> For now this constructor is hidden </remarks> /// /// <param name="aModelParam"> a model parameter. </param> /// <param name="aLabel"> a label. </param> /// <param name="aFieldname"> a fieldname. </param> /// <param name="aParamType"> Type of a parameter. </param> /// <param name="aRangeCheckType"> Type of a range check. </param> /// <param name="aLowRange"> a low range. </param> /// <param name="aHighRange"> a high range. </param> /// <param name="specialBaseRangeCheck"> The special base range check. </param> /// <param name="specialProviderRangeCheck"> The special provider range check. </param> /// <param name="Providerproperty"> The providerproperty. </param> /// <param name="DefaultValue"> The default value for simulating a model reset</param> internal ShadowBaseModelParameter(int aModelParam, string aLabel, string aFieldname, modelParamtype aParamType, rangeChecktype aRangeCheckType, int aLowRange, int aHighRange, DcheckBase specialBaseRangeCheck, int DefaultValue) : base() { FModelParam = aModelParam; FLabel = aLabel; FFieldname = aFieldname; Ftype = aParamType; FRangeCheckType = aRangeCheckType; FLowRange = aLowRange; FHighRange = aHighRange; FSpecialBaseCheck = specialBaseRangeCheck; FSpecialProviderCheck = null; FProviderProperty = null; FValue = FDefault = DefaultValue; // FReload = ReloadValuesOnSet; }