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.StVal == null))
     {
         IDPStatus stValCasted = item.As <IDPStatus>();
         if ((stValCasted != null))
         {
             this._parent.StVal = stValCasted;
             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.SubVal == null))
     {
         IDPStatus subValCasted = item.As <IDPStatus>();
         if ((subValCasted != null))
         {
             this._parent.SubVal = subValCasted;
             return;
         }
     }
     if ((this._parent.PulseConfig == null))
     {
         IPulseConfig pulseConfigCasted = item.As <IPulseConfig>();
         if ((pulseConfigCasted != null))
         {
             this._parent.PulseConfig = pulseConfigCasted;
             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.StVal == null))
     {
         IDPStatus stValCasted = item.As <IDPStatus>();
         if ((stValCasted != null))
         {
             this._parent.StVal = stValCasted;
             return;
         }
     }
     if ((this._parent.Q == null))
     {
         IQuality qCasted = item.As <IQuality>();
         if ((qCasted != null))
         {
             this._parent.Q = qCasted;
             return;
         }
     }
     if ((this._parent.SubVal == null))
     {
         IDPStatus subValCasted = item.As <IDPStatus>();
         if ((subValCasted != null))
         {
             this._parent.SubVal = subValCasted;
             return;
         }
     }
     if ((this._parent.SubQ == null))
     {
         IQuality subQCasted = item.As <IQuality>();
         if ((subQCasted != null))
         {
             this._parent.SubQ = subQCasted;
             return;
         }
     }
 }
Esempio n. 3
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 ValProxy(IDPStatus modelElement) :
     base(modelElement, "val")
 {
 }