Ejemplo 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.Loc == null))
     {
         ISPS locCasted = item.As <ISPS>();
         if ((locCasted != null))
         {
             this._parent.Loc = locCasted;
             return;
         }
     }
     if ((this._parent.OpCntRs == null))
     {
         IINC opCntRsCasted = item.As <IINC>();
         if ((opCntRsCasted != null))
         {
             this._parent.OpCntRs = opCntRsCasted;
             return;
         }
     }
     if ((this._parent.Auto == null))
     {
         ISPS autoCasted = item.As <ISPS>();
         if ((autoCasted != null))
         {
             this._parent.Auto = autoCasted;
             return;
         }
     }
 }
Ejemplo 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.OpCntRs == null))
     {
         IINC opCntRsCasted = item.As <IINC>();
         if ((opCntRsCasted != null))
         {
             this._parent.OpCntRs = opCntRsCasted;
             return;
         }
     }
 }
Ejemplo 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.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;
         }
     }
 }
Ejemplo n.º 4
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 CtlValProxy(IINC modelElement) :
     base(modelElement, "ctlVal")
 {
 }
Ejemplo n.º 5
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 StepSizeProxy(IINC modelElement) :
     base(modelElement, "stepSize")
 {
 }
Ejemplo n.º 6
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 MaxValProxy(IINC modelElement) :
     base(modelElement, "maxVal")
 {
 }
Ejemplo n.º 7
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 MinValProxy(IINC modelElement) :
     base(modelElement, "minVal")
 {
 }
Ejemplo n.º 8
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(IINC modelElement) :
     base(modelElement, "subVal")
 {
 }
Ejemplo 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.OpCntRs == null))
     {
         IINC opCntRsCasted = item.As <IINC>();
         if ((opCntRsCasted != null))
         {
             this._parent.OpCntRs = opCntRsCasted;
             return;
         }
     }
     if ((this._parent.ChTrg == null))
     {
         ISPS chTrgCasted = item.As <ISPS>();
         if ((chTrgCasted != null))
         {
             this._parent.ChTrg = chTrgCasted;
             return;
         }
     }
     if ((this._parent.ChNum == null))
     {
         IING chNumCasted = item.As <IING>();
         if ((chNumCasted != null))
         {
             this._parent.ChNum = chNumCasted;
             return;
         }
     }
     if ((this._parent.TrgMod == null))
     {
         IING trgModCasted = item.As <IING>();
         if ((trgModCasted != null))
         {
             this._parent.TrgMod = trgModCasted;
             return;
         }
     }
     if ((this._parent.LevMod == null))
     {
         IING levModCasted = item.As <IING>();
         if ((levModCasted != null))
         {
             this._parent.LevMod = levModCasted;
             return;
         }
     }
     if ((this._parent.PreTmms == null))
     {
         IING preTmmsCasted = item.As <IING>();
         if ((preTmmsCasted != null))
         {
             this._parent.PreTmms = preTmmsCasted;
             return;
         }
     }
     if ((this._parent.PstTmms == null))
     {
         IING pstTmmsCasted = item.As <IING>();
         if ((pstTmmsCasted != null))
         {
             this._parent.PstTmms = pstTmmsCasted;
             return;
         }
     }
 }