Esempio n. 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;
         }
     }
 }
Esempio n. 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.EEName == null))
     {
         IDPL eENameCasted = item.As <IDPL>();
         if ((eENameCasted != null))
         {
             this._parent.EEName = eENameCasted;
             return;
         }
     }
     if ((this._parent.OpTmh == null))
     {
         IINS opTmhCasted = item.As <IINS>();
         if ((opTmhCasted != null))
         {
             this._parent.OpTmh = opTmhCasted;
             return;
         }
     }
     if ((this._parent.HzRtg == null))
     {
         IASG hzRtgCasted = item.As <IASG>();
         if ((hzRtgCasted != null))
         {
             this._parent.HzRtg = hzRtgCasted;
             return;
         }
     }
     if ((this._parent.Rat == null))
     {
         IASG ratCasted = item.As <IASG>();
         if ((ratCasted != null))
         {
             this._parent.Rat = ratCasted;
             return;
         }
     }
     if ((this._parent.Cor == null))
     {
         IASG corCasted = item.As <IASG>();
         if ((corCasted != null))
         {
             this._parent.Cor = corCasted;
             return;
         }
     }
     if ((this._parent.AngCor == null))
     {
         IASG angCorCasted = item.As <IASG>();
         if ((angCorCasted != null))
         {
             this._parent.AngCor = angCorCasted;
             return;
         }
     }
 }
Esempio n. 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;
         }
     }
 }
Esempio n. 4
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;
         }
     }
 }
Esempio n. 5
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.Pos == null))
     {
         IDPC posCasted = item.As <IDPC>();
         if ((posCasted != null))
         {
             this._parent.Pos = posCasted;
             return;
         }
     }
     if ((this._parent.BlkOpn == null))
     {
         ISPC blkOpnCasted = item.As <ISPC>();
         if ((blkOpnCasted != null))
         {
             this._parent.BlkOpn = blkOpnCasted;
             return;
         }
     }
     if ((this._parent.BlkCls == null))
     {
         ISPC blkClsCasted = item.As <ISPC>();
         if ((blkClsCasted != null))
         {
             this._parent.BlkCls = blkClsCasted;
             return;
         }
     }
     if ((this._parent.ChaMotEna == null))
     {
         ISPC chaMotEnaCasted = item.As <ISPC>();
         if ((chaMotEnaCasted != null))
         {
             this._parent.ChaMotEna = chaMotEnaCasted;
             return;
         }
     }
 }
Esempio n. 6
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.DExt == null))
     {
         ISPC dExtCasted = item.As <ISPC>();
         if ((dExtCasted != null))
         {
             this._parent.DExt = dExtCasted;
             return;
         }
     }
     if ((this._parent.LosOil == null))
     {
         ISPS losOilCasted = item.As <ISPS>();
         if ((losOilCasted != null))
         {
             this._parent.LosOil = losOilCasted;
             return;
         }
     }
     if ((this._parent.LosVac == null))
     {
         ISPS losVacCasted = item.As <ISPS>();
         if ((losVacCasted != null))
         {
             this._parent.LosVac = losVacCasted;
             return;
         }
     }
     if ((this._parent.PresAlm == null))
     {
         ISPS presAlmCasted = item.As <ISPS>();
         if ((presAlmCasted != null))
         {
             this._parent.PresAlm = presAlmCasted;
             return;
         }
     }
 }
Esempio n. 7
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.ReactorControl == null))
     {
         IARCO reactorControlCasted = item.As <IARCO>();
         if ((reactorControlCasted != null))
         {
             this._parent.ReactorControl = reactorControlCasted;
             return;
         }
     }
 }
Esempio n. 8
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.OpCnt == null))
     {
         IINS opCntCasted = item.As <IINS>();
         if ((opCntCasted != null))
         {
             this._parent.OpCnt = opCntCasted;
             return;
         }
     }
     if ((this._parent.OPSA == null))
     {
         ISPS oPSACasted = item.As <ISPS>();
         if ((oPSACasted != null))
         {
             this._parent.OPSA = oPSACasted;
             return;
         }
     }
 }
Esempio n. 9
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.Mode == null))
     {
         IINC modeCasted = item.As <IINC>();
         if ((modeCasted != null))
         {
             this._parent.Mode = modeCasted;
             return;
         }
     }
     if ((this._parent.Behaviour == null))
     {
         IINS behaviourCasted = item.As <IINS>();
         if ((behaviourCasted != null))
         {
             this._parent.Behaviour = behaviourCasted;
             return;
         }
     }
     if ((this._parent.Health == null))
     {
         IINS healthCasted = item.As <IINS>();
         if ((healthCasted != null))
         {
             this._parent.Health = healthCasted;
             return;
         }
     }
     if ((this._parent.NamePlt == null))
     {
         ILPL namePltCasted = item.As <ILPL>();
         if ((namePltCasted != null))
         {
             this._parent.NamePlt = namePltCasted;
             return;
         }
     }
 }
Esempio n. 10
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.CapDS == null))
     {
         ISPC capDSCasted = item.As <ISPC>();
         if ((capDSCasted != null))
         {
             this._parent.CapDS = capDSCasted;
             return;
         }
     }
     if ((this._parent.DschBlk == null))
     {
         ISPS dschBlkCasted = item.As <ISPS>();
         if ((dschBlkCasted != null))
         {
             this._parent.DschBlk = dschBlkCasted;
             return;
         }
     }
     if ((this._parent.CapControl == null))
     {
         IARCO capControlCasted = item.As <IARCO>();
         if ((capControlCasted != null))
         {
             this._parent.CapControl = capControlCasted;
             return;
         }
     }
 }
Esempio n. 11
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.SumSwARs == null))
     {
         IBCR sumSwARsCasted = item.As <IBCR>();
         if ((sumSwARsCasted != null))
         {
             this._parent.SumSwARs = sumSwARsCasted;
             return;
         }
     }
     if ((this._parent.CBOpCap == null))
     {
         IINS cBOpCapCasted = item.As <IINS>();
         if ((cBOpCapCasted != null))
         {
             this._parent.CBOpCap = cBOpCapCasted;
             return;
         }
     }
     if ((this._parent.MaxOpCap == null))
     {
         IINS maxOpCapCasted = item.As <IINS>();
         if ((maxOpCapCasted != null))
         {
             this._parent.MaxOpCap = maxOpCapCasted;
             return;
         }
     }
     if ((this._parent.SwitchControl == null))
     {
         ICSWI switchControlCasted = item.As <ICSWI>();
         if ((switchControlCasted != null))
         {
             this._parent.SwitchControl = switchControlCasted;
             return;
         }
     }
 }
Esempio n. 12
0
 /// <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 SubValProxy(IINS modelElement) :
     base(modelElement, "subVal")
 {
 }
Esempio n. 13
0
 /// <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 SubEnaProxy(IINS modelElement) :
     base(modelElement, "subEna")
 {
 }
Esempio n. 14
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;
         }
     }
 }