/// <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.Vol == null)) { ISAV volCasted = item.As <ISAV>(); if ((volCasted != null)) { this._parent.Vol = volCasted; return; } } if ((this._parent.FuFail == null)) { ISPS fuFailCasted = item.As <ISPS>(); if ((fuFailCasted != null)) { this._parent.FuFail = fuFailCasted; return; } } if ((this._parent.VRtg == null)) { IASG vRtgCasted = item.As <IASG>(); if ((vRtgCasted != null)) { this._parent.VRtg = vRtgCasted; 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.Amp == null)) { ISAV ampCasted = item.As <ISAV>(); if ((ampCasted != null)) { this._parent.Amp = ampCasted; return; } } if ((this._parent.ARtg == null)) { IASG aRtgCasted = item.As <IASG>(); if ((aRtgCasted != null)) { this._parent.ARtg = aRtgCasted; 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.OpARem == null)) { IWYE opARemCasted = item.As <IWYE>(); if ((opARemCasted != null)) { this._parent.OpARem = opARemCasted; return; } } if ((this._parent.Amp1 == null)) { ISAV amp1Casted = item.As <ISAV>(); if ((amp1Casted != null)) { this._parent.Amp1 = amp1Casted; return; } } if ((this._parent.Amp2 == null)) { ISAV amp2Casted = item.As <ISAV>(); if ((amp2Casted != null)) { this._parent.Amp2 = amp2Casted; return; } } if ((this._parent.Amp3 == null)) { ISAV amp3Casted = item.As <ISAV>(); if ((amp3Casted != null)) { this._parent.Amp3 = amp3Casted; return; } } }