/// <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.InnerRequiredRole__RequiredInfrastructureDelegationConnector == null))
     {
         IInfrastructureRequiredRole innerRequiredRole__RequiredInfrastructureDelegationConnectorCasted = item.As <IInfrastructureRequiredRole>();
         if ((innerRequiredRole__RequiredInfrastructureDelegationConnectorCasted != null))
         {
             this._parent.InnerRequiredRole__RequiredInfrastructureDelegationConnector = innerRequiredRole__RequiredInfrastructureDelegationConnectorCasted;
             return;
         }
     }
     if ((this._parent.OuterRequiredRole__RequiredInfrastructureDelegationConnector == null))
     {
         IInfrastructureRequiredRole outerRequiredRole__RequiredInfrastructureDelegationConnectorCasted = item.As <IInfrastructureRequiredRole>();
         if ((outerRequiredRole__RequiredInfrastructureDelegationConnectorCasted != null))
         {
             this._parent.OuterRequiredRole__RequiredInfrastructureDelegationConnector = outerRequiredRole__RequiredInfrastructureDelegationConnectorCasted;
             return;
         }
     }
     if ((this._parent.AssemblyContext__RequiredInfrastructureDelegationConnector == null))
     {
         IAssemblyContext assemblyContext__RequiredInfrastructureDelegationConnectorCasted = item.As <IAssemblyContext>();
         if ((assemblyContext__RequiredInfrastructureDelegationConnectorCasted != null))
         {
             this._parent.AssemblyContext__RequiredInfrastructureDelegationConnector = assemblyContext__RequiredInfrastructureDelegationConnectorCasted;
             return;
         }
     }
 }
Beispiel #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.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;
         }
     }
 }
 /// <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.ProvidedRole__AssemblyInfrastructureConnector == null))
     {
         IInfrastructureProvidedRole providedRole__AssemblyInfrastructureConnectorCasted = item.As <IInfrastructureProvidedRole>();
         if ((providedRole__AssemblyInfrastructureConnectorCasted != null))
         {
             this._parent.ProvidedRole__AssemblyInfrastructureConnector = providedRole__AssemblyInfrastructureConnectorCasted;
             return;
         }
     }
     if ((this._parent.RequiredRole__AssemblyInfrastructureConnector == null))
     {
         IInfrastructureRequiredRole requiredRole__AssemblyInfrastructureConnectorCasted = item.As <IInfrastructureRequiredRole>();
         if ((requiredRole__AssemblyInfrastructureConnectorCasted != null))
         {
             this._parent.RequiredRole__AssemblyInfrastructureConnector = requiredRole__AssemblyInfrastructureConnectorCasted;
             return;
         }
     }
     if ((this._parent.ProvidingAssemblyContext__AssemblyInfrastructureConnector == null))
     {
         IAssemblyContext providingAssemblyContext__AssemblyInfrastructureConnectorCasted = item.As <IAssemblyContext>();
         if ((providingAssemblyContext__AssemblyInfrastructureConnectorCasted != null))
         {
             this._parent.ProvidingAssemblyContext__AssemblyInfrastructureConnector = providingAssemblyContext__AssemblyInfrastructureConnectorCasted;
             return;
         }
     }
     if ((this._parent.RequiringAssemblyContext__AssemblyInfrastructureConnector == null))
     {
         IAssemblyContext requiringAssemblyContext__AssemblyInfrastructureConnectorCasted = item.As <IAssemblyContext>();
         if ((requiringAssemblyContext__AssemblyInfrastructureConnectorCasted != null))
         {
             this._parent.RequiringAssemblyContext__AssemblyInfrastructureConnector = requiringAssemblyContext__AssemblyInfrastructureConnectorCasted;
             return;
         }
     }
 }