예제 #1
0
 /// <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.OpTmh == null))
     {
         IINS opTmhCasted = item.As <IINS>();
         if ((opTmhCasted != null))
         {
             this._parent.OpTmh = opTmhCasted;
             return;
         }
     }
     if ((this._parent.Vol == null))
     {
         IMV volCasted = item.As <IMV>();
         if ((volCasted != null))
         {
             this._parent.Vol = volCasted;
             return;
         }
     }
     if ((this._parent.Amp == null))
     {
         IMV ampCasted = item.As <IMV>();
         if ((ampCasted != null))
         {
             this._parent.Amp = ampCasted;
             return;
         }
     }
 }
예제 #2
0
 /// <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.Loc == null))
     {
         ISPS locCasted = item.As <ISPS>();
         if ((locCasted != null))
         {
             this._parent.Loc = locCasted;
             return;
         }
     }
     if ((this._parent.OpTmh == null))
     {
         IINS opTmhCasted = item.As <IINS>();
         if ((opTmhCasted != null))
         {
             this._parent.OpTmh = opTmhCasted;
             return;
         }
     }
     if ((this._parent.ECA == null))
     {
         IMV eCACasted = item.As <IMV>();
         if ((eCACasted != null))
         {
             this._parent.ECA = eCACasted;
             return;
         }
     }
     if ((this._parent.ColTapPos == null))
     {
         IISC colTapPosCasted = item.As <IISC>();
         if ((colTapPosCasted != null))
         {
             this._parent.ColTapPos = colTapPosCasted;
             return;
         }
     }
     if ((this._parent.ColPos == null))
     {
         IAPC colPosCasted = item.As <IAPC>();
         if ((colPosCasted != null))
         {
             this._parent.ColPos = colPosCasted;
             return;
         }
     }
 }
예제 #3
0
 /// <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.OpTmh == null))
     {
         IINS opTmhCasted = item.As <IINS>();
         if ((opTmhCasted != null))
         {
             this._parent.OpTmh = opTmhCasted;
             return;
         }
     }
     if ((this._parent.React == null))
     {
         IMV reactCasted = item.As <IMV>();
         if ((reactCasted != null))
         {
             this._parent.React = reactCasted;
             return;
         }
     }
     if ((this._parent.LosFact == null))
     {
         IMV losFactCasted = item.As <IMV>();
         if ((losFactCasted != null))
         {
             this._parent.LosFact = losFactCasted;
             return;
         }
     }
     if ((this._parent.Vol == null))
     {
         IMV volCasted = item.As <IMV>();
         if ((volCasted != null))
         {
             this._parent.Vol = volCasted;
             return;
         }
     }
     if ((this._parent.RefReact == null))
     {
         IASG refReactCasted = item.As <IASG>();
         if ((refReactCasted != null))
         {
             this._parent.RefReact = refReactCasted;
             return;
         }
     }
     if ((this._parent.RefPF == null))
     {
         IASG refPFCasted = item.As <IASG>();
         if ((refPFCasted != null))
         {
             this._parent.RefPF = refPFCasted;
             return;
         }
     }
     if ((this._parent.RefV == null))
     {
         IASG refVCasted = item.As <IASG>();
         if ((refVCasted != null))
         {
             this._parent.RefV = refVCasted;
             return;
         }
     }
 }