Exemplo 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)
            {
                IInfrastructureSignature infrastructureSignatures__InfrastructureInterfaceCasted = item.As <IInfrastructureSignature>();

                if ((infrastructureSignatures__InfrastructureInterfaceCasted != null))
                {
                    this._parent.InfrastructureSignatures__InfrastructureInterface.Add(infrastructureSignatures__InfrastructureInterfaceCasted);
                }
            }
Exemplo n.º 2
0
            /// <summary>
            /// Removes the given item from the collection
            /// </summary>
            /// <returns>True, if the item was removed, otherwise False</returns>
            /// <param name="item">The item that should be removed</param>
            public override bool Remove(IModelElement item)
            {
                IInfrastructureSignature infrastructureSignatureItem = item.As <IInfrastructureSignature>();

                if (((infrastructureSignatureItem != null) &&
                     this._parent.InfrastructureSignatures__InfrastructureInterface.Remove(infrastructureSignatureItem)))
                {
                    return(true);
                }
                return(false);
            }
Exemplo 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.Signature__InfrastructureCall == null))
     {
         IInfrastructureSignature signature__InfrastructureCallCasted = item.As <IInfrastructureSignature>();
         if ((signature__InfrastructureCallCasted != null))
         {
             this._parent.Signature__InfrastructureCall = signature__InfrastructureCallCasted;
             return;
         }
     }
     if ((this._parent.NumberOfCalls__InfrastructureCall == null))
     {
         IPCMRandomVariable numberOfCalls__InfrastructureCallCasted = item.As <IPCMRandomVariable>();
         if ((numberOfCalls__InfrastructureCallCasted != null))
         {
             this._parent.NumberOfCalls__InfrastructureCall = numberOfCalls__InfrastructureCallCasted;
             return;
         }
     }
     if ((this._parent.Action__InfrastructureCall == null))
     {
         IAbstractInternalControlFlowAction action__InfrastructureCallCasted = item.As <IAbstractInternalControlFlowAction>();
         if ((action__InfrastructureCallCasted != null))
         {
             this._parent.Action__InfrastructureCall = action__InfrastructureCallCasted;
             return;
         }
     }
     if ((this._parent.RequiredRole__InfrastructureCall == null))
     {
         IInfrastructureRequiredRole requiredRole__InfrastructureCallCasted = item.As <IInfrastructureRequiredRole>();
         if ((requiredRole__InfrastructureCallCasted != null))
         {
             this._parent.RequiredRole__InfrastructureCall = requiredRole__InfrastructureCallCasted;
             return;
         }
     }
 }