/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { if ((this._parent.HhLim == null)) { IAnalogueValue hhLimCasted = item.As <IAnalogueValue>(); if ((hhLimCasted != null)) { this._parent.HhLim = hhLimCasted; return; } } if ((this._parent.HLim == null)) { IAnalogueValue hLimCasted = item.As <IAnalogueValue>(); if ((hLimCasted != null)) { this._parent.HLim = hLimCasted; return; } } if ((this._parent.LLim == null)) { IAnalogueValue lLimCasted = item.As <IAnalogueValue>(); if ((lLimCasted != null)) { this._parent.LLim = lLimCasted; return; } } if ((this._parent.LlLim == null)) { IAnalogueValue llLimCasted = item.As <IAnalogueValue>(); if ((llLimCasted != null)) { this._parent.LlLim = llLimCasted; return; } } if ((this._parent.Min == null)) { IAnalogueValue minCasted = item.As <IAnalogueValue>(); if ((minCasted != null)) { this._parent.Min = minCasted; return; } } if ((this._parent.Max == null)) { IAnalogueValue maxCasted = item.As <IAnalogueValue>(); if ((maxCasted != null)) { this._parent.Max = maxCasted; return; } } }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { if ((this._parent.SetMag == null)) { IAnalogueValue setMagCasted = item.As <IAnalogueValue>(); if ((setMagCasted != null)) { this._parent.SetMag = setMagCasted; return; } } if ((this._parent.Units == null)) { IUnits unitsCasted = item.As <IUnits>(); if ((unitsCasted != null)) { this._parent.Units = unitsCasted; return; } } if ((this._parent.SVC == null)) { IScaledValueConfig sVCCasted = item.As <IScaledValueConfig>(); if ((sVCCasted != null)) { this._parent.SVC = sVCCasted; return; } } if ((this._parent.MinVal == null)) { IAnalogueValue minValCasted = item.As <IAnalogueValue>(); if ((minValCasted != null)) { this._parent.MinVal = minValCasted; return; } } if ((this._parent.MaxVal == null)) { IAnalogueValue maxValCasted = item.As <IAnalogueValue>(); if ((maxValCasted != null)) { this._parent.MaxVal = maxValCasted; return; } } if ((this._parent.StepSize == null)) { IAnalogueValue stepSizeCasted = item.As <IAnalogueValue>(); if ((stepSizeCasted != null)) { this._parent.StepSize = stepSizeCasted; return; } } }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { if ((this._parent.Mag == null)) { IAnalogueValue magCasted = item.As <IAnalogueValue>(); if ((magCasted != null)) { this._parent.Mag = magCasted; return; } } if ((this._parent.Ang == null)) { IAnalogueValue angCasted = item.As <IAnalogueValue>(); if ((angCasted != null)) { this._parent.Ang = angCasted; return; } } }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { if ((this._parent.InstMag == null)) { IAnalogueValue instMagCasted = item.As <IAnalogueValue>(); if ((instMagCasted != null)) { this._parent.InstMag = instMagCasted; return; } } if ((this._parent.Q == null)) { IQuality qCasted = item.As <IQuality>(); if ((qCasted != null)) { this._parent.Q = qCasted; return; } } if ((this._parent.T == null)) { ITimeStamp tCasted = item.As <ITimeStamp>(); if ((tCasted != null)) { this._parent.T = tCasted; return; } } if ((this._parent.Units == null)) { IUnits unitsCasted = item.As <IUnits>(); if ((unitsCasted != null)) { this._parent.Units = unitsCasted; return; } } if ((this._parent.SVC == null)) { IScaledValueConfig sVCCasted = item.As <IScaledValueConfig>(); if ((sVCCasted != null)) { this._parent.SVC = sVCCasted; return; } } if ((this._parent.Min == null)) { IAnalogueValue minCasted = item.As <IAnalogueValue>(); if ((minCasted != null)) { this._parent.Min = minCasted; return; } } if ((this._parent.Max == null)) { IAnalogueValue maxCasted = item.As <IAnalogueValue>(); if ((maxCasted != null)) { this._parent.Max = maxCasted; return; } } }
/// <summary> /// Creates a new observable property access proxy /// </summary> /// <param name="modelElement">The model instance element for which to create the property access proxy</param> public FProxy(IAnalogueValue modelElement) : base(modelElement, "f") { }
/// <summary> /// Creates a new observable property access proxy /// </summary> /// <param name="modelElement">The model instance element for which to create the property access proxy</param> public IProxy(IAnalogueValue modelElement) : base(modelElement, "i") { }