/// <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.Capacity_PassiveResource == null)) { IPCMRandomVariable capacity_PassiveResourceCasted = item.As <IPCMRandomVariable>(); if ((capacity_PassiveResourceCasted != null)) { this._parent.Capacity_PassiveResource = capacity_PassiveResourceCasted; return; } } if ((this._parent.BasicComponent_PassiveResource == null)) { IBasicComponent basicComponent_PassiveResourceCasted = item.As <IBasicComponent>(); if ((basicComponent_PassiveResourceCasted != null)) { this._parent.BasicComponent_PassiveResource = basicComponent_PassiveResourceCasted; return; } } if ((this._parent.ResourceTimeoutFailureType__PassiveResource == null)) { IResourceTimeoutFailureType resourceTimeoutFailureType__PassiveResourceCasted = item.As <IResourceTimeoutFailureType>(); if ((resourceTimeoutFailureType__PassiveResourceCasted != null)) { this._parent.ResourceTimeoutFailureType__PassiveResource = resourceTimeoutFailureType__PassiveResourceCasted; 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.Specification_ParametericResourceDemand == null)) { IPCMRandomVariable specification_ParametericResourceDemandCasted = item.As <IPCMRandomVariable>(); if ((specification_ParametericResourceDemandCasted != null)) { this._parent.Specification_ParametericResourceDemand = specification_ParametericResourceDemandCasted; return; } } if ((this._parent.RequiredResource_ParametricResourceDemand == null)) { IProcessingResourceType requiredResource_ParametricResourceDemandCasted = item.As <IProcessingResourceType>(); if ((requiredResource_ParametricResourceDemandCasted != null)) { this._parent.RequiredResource_ParametricResourceDemand = requiredResource_ParametricResourceDemandCasted; return; } } if ((this._parent.Action_ParametricResourceDemand == null)) { IAbstractInternalControlFlowAction action_ParametricResourceDemandCasted = item.As <IAbstractInternalControlFlowAction>(); if ((action_ParametricResourceDemandCasted != null)) { this._parent.Action_ParametricResourceDemand = action_ParametricResourceDemandCasted; 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.NumberOfCalls__InfrastructureCall == null)) { IPCMRandomVariable numberOfCalls__InfrastructureCallCasted = item.As <IPCMRandomVariable>(); if ((numberOfCalls__InfrastructureCallCasted != null)) { this._parent.NumberOfCalls__InfrastructureCall = numberOfCalls__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.ThinkTime_ClosedWorkload == null)) { IPCMRandomVariable thinkTime_ClosedWorkloadCasted = item.As <IPCMRandomVariable>(); if ((thinkTime_ClosedWorkloadCasted != null)) { this._parent.ThinkTime_ClosedWorkload = thinkTime_ClosedWorkloadCasted; 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.Specification_SpecifiedExecutionTime == null)) { IPCMRandomVariable specification_SpecifiedExecutionTimeCasted = item.As <IPCMRandomVariable>(); if ((specification_SpecifiedExecutionTimeCasted != null)) { this._parent.Specification_SpecifiedExecutionTime = specification_SpecifiedExecutionTimeCasted; 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.TimeSpecification_Delay == null)) { IPCMRandomVariable timeSpecification_DelayCasted = item.As <IPCMRandomVariable>(); if ((timeSpecification_DelayCasted != null)) { this._parent.TimeSpecification_Delay = timeSpecification_DelayCasted; 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.Specification_VariableCharacterisation == null)) { IPCMRandomVariable specification_VariableCharacterisationCasted = item.As <IPCMRandomVariable>(); if ((specification_VariableCharacterisationCasted != null)) { this._parent.Specification_VariableCharacterisation = specification_VariableCharacterisationCasted; 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.IterationCount_LoopAction == null)) { IPCMRandomVariable iterationCount_LoopActionCasted = item.As <IPCMRandomVariable>(); if ((iterationCount_LoopActionCasted != null)) { this._parent.IterationCount_LoopAction = iterationCount_LoopActionCasted; 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.BranchCondition_GuardedBranchTransition == null)) { IPCMRandomVariable branchCondition_GuardedBranchTransitionCasted = item.As <IPCMRandomVariable>(); if ((branchCondition_GuardedBranchTransitionCasted != null)) { this._parent.BranchCondition_GuardedBranchTransition = branchCondition_GuardedBranchTransitionCasted; 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.InterArrivalTime_OpenWorkload == null)) { IPCMRandomVariable interArrivalTime_OpenWorkloadCasted = item.As <IPCMRandomVariable>(); if ((interArrivalTime_OpenWorkloadCasted != null)) { this._parent.InterArrivalTime_OpenWorkload = interArrivalTime_OpenWorkloadCasted; 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.FilterCondition__EventChannelSinkConnector == null)) { IPCMRandomVariable filterCondition__EventChannelSinkConnectorCasted = item.As <IPCMRandomVariable>(); if ((filterCondition__EventChannelSinkConnectorCasted != null)) { this._parent.FilterCondition__EventChannelSinkConnector = filterCondition__EventChannelSinkConnectorCasted; 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.Capacity_PassiveResource == null)) { IPCMRandomVariable capacity_PassiveResourceCasted = item.As <IPCMRandomVariable>(); if ((capacity_PassiveResourceCasted != null)) { this._parent.Capacity_PassiveResource = capacity_PassiveResourceCasted; 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.Specification_ParametericResourceDemand == null)) { IPCMRandomVariable specification_ParametericResourceDemandCasted = item.As <IPCMRandomVariable>(); if ((specification_ParametericResourceDemandCasted != null)) { this._parent.Specification_ParametericResourceDemand = specification_ParametericResourceDemandCasted; 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.LoopIteration_Loop == null)) { IPCMRandomVariable loopIteration_LoopCasted = item.As <IPCMRandomVariable>(); if ((loopIteration_LoopCasted != null)) { this._parent.LoopIteration_Loop = loopIteration_LoopCasted; return; } } if ((this._parent.BodyBehaviour_Loop == null)) { IScenarioBehaviour bodyBehaviour_LoopCasted = item.As <IScenarioBehaviour>(); if ((bodyBehaviour_LoopCasted != null)) { this._parent.BodyBehaviour_Loop = bodyBehaviour_LoopCasted; 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.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.SinkRole__EventChannelSinkConnector == null)) { ISinkRole sinkRole__EventChannelSinkConnectorCasted = item.As <ISinkRole>(); if ((sinkRole__EventChannelSinkConnectorCasted != null)) { this._parent.SinkRole__EventChannelSinkConnector = sinkRole__EventChannelSinkConnectorCasted; return; } } if ((this._parent.FilterCondition__EventChannelSinkConnector == null)) { IPCMRandomVariable filterCondition__EventChannelSinkConnectorCasted = item.As <IPCMRandomVariable>(); if ((filterCondition__EventChannelSinkConnectorCasted != null)) { this._parent.FilterCondition__EventChannelSinkConnector = filterCondition__EventChannelSinkConnectorCasted; return; } } if ((this._parent.AssemblyContext__EventChannelSinkConnector == null)) { IAssemblyContext assemblyContext__EventChannelSinkConnectorCasted = item.As <IAssemblyContext>(); if ((assemblyContext__EventChannelSinkConnectorCasted != null)) { this._parent.AssemblyContext__EventChannelSinkConnector = assemblyContext__EventChannelSinkConnectorCasted; return; } } if ((this._parent.EventChannel__EventChannelSinkConnector == null)) { IEventChannel eventChannel__EventChannelSinkConnectorCasted = item.As <IEventChannel>(); if ((eventChannel__EventChannelSinkConnectorCasted != null)) { this._parent.EventChannel__EventChannelSinkConnector = eventChannel__EventChannelSinkConnectorCasted; return; } } }