| 1 | /* |
| 2 | * Copyright 2006 SDQ Research Group, University of Karlsruhe (TH) |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.pcm.gmf.seff.part; |
| 5 | |
| 6 | import java.util.Collection; |
| 7 | import java.util.Collections; |
| 8 | import java.util.Iterator; |
| 9 | import java.util.LinkedList; |
| 10 | import java.util.List; |
| 11 | import java.util.Map; |
| 12 | |
| 13 | import org.eclipse.emf.ecore.EStructuralFeature; |
| 14 | import org.eclipse.emf.ecore.util.EcoreUtil; |
| 15 | import org.eclipse.gmf.runtime.notation.View; |
| 16 | |
| 17 | import de.uka.ipd.sdq.pcm.core.PCMRandomVariable; |
| 18 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.AbstractActionSuccessor_AbstractActionEditPart; |
| 19 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.AcquireAction2EditPart; |
| 20 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.AcquireActionEditPart; |
| 21 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.BranchAction2EditPart; |
| 22 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.BranchActionBranchTransitionCompartment2EditPart; |
| 23 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.BranchActionBranchTransitionCompartmentEditPart; |
| 24 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.BranchActionEditPart; |
| 25 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.CollectionIteratorAction2EditPart; |
| 26 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.CollectionIteratorActionEditPart; |
| 27 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.EmitEventAction2EditPart; |
| 28 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.EmitEventActionEditPart; |
| 29 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.EmitEventActionInputVariableUsageEvent2EditPart; |
| 30 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.EmitEventActionInputVariableUsageEventEditPart; |
| 31 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ExternalCallAction2EditPart; |
| 32 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ExternalCallActionEditPart; |
| 33 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ExternalCallActionInputVariableUsage2EditPart; |
| 34 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ExternalCallActionInputVariableUsageEditPart; |
| 35 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ExternalCallActionOutputVariableUsage2EditPart; |
| 36 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ExternalCallActionOutputVariableUsageEditPart; |
| 37 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkAction2EditPart; |
| 38 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkActionEditPart; |
| 39 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkActionForkedBehaviours2EditPart; |
| 40 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkActionForkedBehavioursEditPart; |
| 41 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkedBehaviour2EditPart; |
| 42 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkedBehaviourBehaviourCompartmentEditPart; |
| 43 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkedBehaviourEditPart; |
| 44 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ForkedBehaviourSynchronisationPointForkedBehavioursEditPart; |
| 45 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.GuardedBranchTransitionEditPart; |
| 46 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InfrastructureCallEditPart; |
| 47 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InfrastructureCallInfrastructureCallInputVariableUsagesEditPart; |
| 48 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalAction2EditPart; |
| 49 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalActionEditPart; |
| 50 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalActionFailureOccurrenceDescriptions2EditPart; |
| 51 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalActionFailureOccurrenceDescriptionsEditPart; |
| 52 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalActionInfrastructureCallsCompartment2EditPart; |
| 53 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalActionInfrastructureCallsCompartmentEditPart; |
| 54 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalActionResourceDemand2EditPart; |
| 55 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalActionResourceDemandEditPart; |
| 56 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.InternalFailureOccurrenceDescriptionEditPart; |
| 57 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.LoopAction2EditPart; |
| 58 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.LoopActionEditPart; |
| 59 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ParametricResourceDemandEditPart; |
| 60 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ProbabilisticBranchTransitionEditPart; |
| 61 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.RecoveryAction2EditPart; |
| 62 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.RecoveryActionBehaviourAlternativeBehaviourCompartmentEditPart; |
| 63 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.RecoveryActionBehaviourEditPart; |
| 64 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.RecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviourEditPart; |
| 65 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.RecoveryActionEditPart; |
| 66 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.RecoveryActionRecoveryBlockCompartment2EditPart; |
| 67 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.RecoveryActionRecoveryBlockCompartmentEditPart; |
| 68 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ReleaseAction2EditPart; |
| 69 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ReleaseActionEditPart; |
| 70 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviour2EditPart; |
| 71 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviour3EditPart; |
| 72 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviour4EditPart; |
| 73 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviourBehaviourCompartment2EditPart; |
| 74 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviourBehaviourCompartment3EditPart; |
| 75 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviourBehaviourCompartment4EditPart; |
| 76 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviourBehaviourCompartmentEditPart; |
| 77 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingBehaviourEditPart; |
| 78 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.ResourceDemandingSEFFEditPart; |
| 79 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.SetVariableAction2EditPart; |
| 80 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.SetVariableActionEditPart; |
| 81 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.SetVariableActionVariableSetter2EditPart; |
| 82 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.SetVariableActionVariableSetterEditPart; |
| 83 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.StartAction2EditPart; |
| 84 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.StartActionEditPart; |
| 85 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.StopAction2EditPart; |
| 86 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.StopActionEditPart; |
| 87 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.SynchronisationPointEditPart; |
| 88 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.SynchronisationPointSynchronisationPointEditPart; |
| 89 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableCharacterisation2EditPart; |
| 90 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableCharacterisation3EditPart; |
| 91 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableCharacterisation4EditPart; |
| 92 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableCharacterisation5EditPart; |
| 93 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableCharacterisationEditPart; |
| 94 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsage2EditPart; |
| 95 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsage3EditPart; |
| 96 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsage4EditPart; |
| 97 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsage5EditPart; |
| 98 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsageEditPart; |
| 99 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsageVariableCharacterisation2EditPart; |
| 100 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsageVariableCharacterisation3EditPart; |
| 101 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsageVariableCharacterisation4EditPart; |
| 102 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsageVariableCharacterisation5EditPart; |
| 103 | import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.VariableUsageVariableCharacterisationEditPart; |
| 104 | import de.uka.ipd.sdq.pcm.gmf.seff.providers.PalladioComponentModelElementTypes; |
| 105 | import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisation; |
| 106 | import de.uka.ipd.sdq.pcm.parameter.VariableUsage; |
| 107 | import de.uka.ipd.sdq.pcm.reliability.InternalFailureOccurrenceDescription; |
| 108 | import de.uka.ipd.sdq.pcm.seff.AbstractAction; |
| 109 | import de.uka.ipd.sdq.pcm.seff.AbstractBranchTransition; |
| 110 | import de.uka.ipd.sdq.pcm.seff.AcquireAction; |
| 111 | import de.uka.ipd.sdq.pcm.seff.BranchAction; |
| 112 | import de.uka.ipd.sdq.pcm.seff.CollectionIteratorAction; |
| 113 | import de.uka.ipd.sdq.pcm.seff.EmitEventAction; |
| 114 | import de.uka.ipd.sdq.pcm.seff.ExternalCallAction; |
| 115 | import de.uka.ipd.sdq.pcm.seff.ForkAction; |
| 116 | import de.uka.ipd.sdq.pcm.seff.ForkedBehaviour; |
| 117 | import de.uka.ipd.sdq.pcm.seff.GuardedBranchTransition; |
| 118 | import de.uka.ipd.sdq.pcm.seff.InternalAction; |
| 119 | import de.uka.ipd.sdq.pcm.seff.LoopAction; |
| 120 | import de.uka.ipd.sdq.pcm.seff.ProbabilisticBranchTransition; |
| 121 | import de.uka.ipd.sdq.pcm.seff.ReleaseAction; |
| 122 | import de.uka.ipd.sdq.pcm.seff.ResourceDemandingBehaviour; |
| 123 | import de.uka.ipd.sdq.pcm.seff.ResourceDemandingSEFF; |
| 124 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
| 125 | import de.uka.ipd.sdq.pcm.seff.SetVariableAction; |
| 126 | import de.uka.ipd.sdq.pcm.seff.StartAction; |
| 127 | import de.uka.ipd.sdq.pcm.seff.StopAction; |
| 128 | import de.uka.ipd.sdq.pcm.seff.SynchronisationPoint; |
| 129 | |
| 130 | /** |
| 131 | * @generated |
| 132 | */ |
| 133 | public class PalladioComponentModelDiagramUpdater { |
| 134 | |
| 135 | /** |
| 136 | * @generated |
| 137 | */ |
| 138 | public static List getSemanticChildren(View view) { |
| 139 | switch (PalladioComponentModelVisualIDRegistry.getVisualID(view)) { |
| 140 | case LoopActionEditPart.VISUAL_ID: |
| 141 | return getLoopAction_2004SemanticChildren(view); |
| 142 | case CollectionIteratorActionEditPart.VISUAL_ID: |
| 143 | return getCollectionIteratorAction_2007SemanticChildren(view); |
| 144 | case LoopAction2EditPart.VISUAL_ID: |
| 145 | return getLoopAction_3006SemanticChildren(view); |
| 146 | case ProbabilisticBranchTransitionEditPart.VISUAL_ID: |
| 147 | return getProbabilisticBranchTransition_3010SemanticChildren(view); |
| 148 | case CollectionIteratorAction2EditPart.VISUAL_ID: |
| 149 | return getCollectionIteratorAction_3013SemanticChildren(view); |
| 150 | case GuardedBranchTransitionEditPart.VISUAL_ID: |
| 151 | return getGuardedBranchTransition_3017SemanticChildren(view); |
| 152 | case ExternalCallActionInputVariableUsageEditPart.VISUAL_ID: |
| 153 | return getExternalCallActionInputVariableUsage_7001SemanticChildren(view); |
| 154 | case ExternalCallActionOutputVariableUsageEditPart.VISUAL_ID: |
| 155 | return getExternalCallActionOutputVariableUsage_7021SemanticChildren(view); |
| 156 | case VariableUsageVariableCharacterisationEditPart.VISUAL_ID: |
| 157 | return getVariableUsageVariableCharacterisation_7037SemanticChildren(view); |
| 158 | case VariableUsageVariableCharacterisation2EditPart.VISUAL_ID: |
| 159 | return getVariableUsageVariableCharacterisation_7044SemanticChildren(view); |
| 160 | case EmitEventActionInputVariableUsageEventEditPart.VISUAL_ID: |
| 161 | return getEmitEventActionInputVariableUsageEvent_7042SemanticChildren(view); |
| 162 | case VariableUsageVariableCharacterisation4EditPart.VISUAL_ID: |
| 163 | return getVariableUsageVariableCharacterisation_7043SemanticChildren(view); |
| 164 | case ResourceDemandingBehaviourBehaviourCompartmentEditPart.VISUAL_ID: |
| 165 | return getResourceDemandingBehaviourBehaviourCompartment_7004SemanticChildren(view); |
| 166 | case InternalActionResourceDemandEditPart.VISUAL_ID: |
| 167 | return getInternalActionResourceDemands_7006SemanticChildren(view); |
| 168 | case InternalActionFailureOccurrenceDescriptionsEditPart.VISUAL_ID: |
| 169 | return getInternalActionFailureOccurrenceDescriptions_7045SemanticChildren(view); |
| 170 | case InternalActionInfrastructureCallsCompartmentEditPart.VISUAL_ID: |
| 171 | return getInternalActionInfrastructureCallsCompartment_7048SemanticChildren(view); |
| 172 | case InfrastructureCallInfrastructureCallInputVariableUsagesEditPart.VISUAL_ID: |
| 173 | return getInfrastructureCallInfrastructureCallInputVariableUsages_7049SemanticChildren(view); |
| 174 | case VariableUsageVariableCharacterisation5EditPart.VISUAL_ID: |
| 175 | return getVariableUsageVariableCharacterisation_7050SemanticChildren(view); |
| 176 | case BranchActionBranchTransitionCompartmentEditPart.VISUAL_ID: |
| 177 | return getBranchActionBranchTransitionCompartment_7007SemanticChildren(view); |
| 178 | case ResourceDemandingBehaviourBehaviourCompartment2EditPart.VISUAL_ID: |
| 179 | return getResourceDemandingBehaviourBehaviourCompartment_7009SemanticChildren(view); |
| 180 | case ExternalCallActionInputVariableUsage2EditPart.VISUAL_ID: |
| 181 | return getExternalCallActionInputVariableUsage_7010SemanticChildren(view); |
| 182 | case ExternalCallActionOutputVariableUsage2EditPart.VISUAL_ID: |
| 183 | return getExternalCallActionOutputVariableUsage_7023SemanticChildren(view); |
| 184 | case EmitEventActionInputVariableUsageEvent2EditPart.VISUAL_ID: |
| 185 | return getEmitEventActionInputVariableUsageEvent_7041SemanticChildren(view); |
| 186 | case ForkActionForkedBehavioursEditPart.VISUAL_ID: |
| 187 | return getForkActionForkedBehaviours_7024SemanticChildren(view); |
| 188 | case ForkedBehaviourBehaviourCompartmentEditPart.VISUAL_ID: |
| 189 | return getForkedBehaviourBehaviourCompartment_7026SemanticChildren(view); |
| 190 | case ResourceDemandingBehaviourBehaviourCompartment3EditPart.VISUAL_ID: |
| 191 | return getResourceDemandingBehaviourBehaviourCompartment_7014SemanticChildren(view); |
| 192 | case RecoveryActionRecoveryBlockCompartmentEditPart.VISUAL_ID: |
| 193 | return getRecoveryActionRecoveryBlockCompartment_7054SemanticChildren(view); |
| 194 | case RecoveryActionBehaviourAlternativeBehaviourCompartmentEditPart.VISUAL_ID: |
| 195 | return getRecoveryActionBehaviourAlternativeBehaviourCompartment_7055SemanticChildren(view); |
| 196 | case SetVariableActionVariableSetterEditPart.VISUAL_ID: |
| 197 | return getSetVariableActionVariableSetter_7025SemanticChildren(view); |
| 198 | case VariableUsageVariableCharacterisation3EditPart.VISUAL_ID: |
| 199 | return getVariableUsageVariableCharacterisation_7032SemanticChildren(view); |
| 200 | case SynchronisationPointSynchronisationPointEditPart.VISUAL_ID: |
| 201 | return getSynchronisationPointSynchronisationPoint_7034SemanticChildren(view); |
| 202 | case ForkedBehaviourSynchronisationPointForkedBehavioursEditPart.VISUAL_ID: |
| 203 | return getForkedBehaviourBehaviourCompartment_7033SemanticChildren(view); |
| 204 | case ResourceDemandingBehaviourBehaviourCompartment4EditPart.VISUAL_ID: |
| 205 | return getResourceDemandingBehaviourBehaviourCompartment_7018SemanticChildren(view); |
| 206 | case BranchActionBranchTransitionCompartment2EditPart.VISUAL_ID: |
| 207 | return getBranchActionBranchTransitionCompartment_7011SemanticChildren(view); |
| 208 | case InternalActionResourceDemand2EditPart.VISUAL_ID: |
| 209 | return getInternalActionResourceDemands_7012SemanticChildren(view); |
| 210 | case InternalActionFailureOccurrenceDescriptions2EditPart.VISUAL_ID: |
| 211 | return getInternalActionFailureOccurrenceDescriptions_7046SemanticChildren(view); |
| 212 | case InternalActionInfrastructureCallsCompartment2EditPart.VISUAL_ID: |
| 213 | return getInternalActionInfrastructureCallsCompartment_7051SemanticChildren(view); |
| 214 | case SetVariableActionVariableSetter2EditPart.VISUAL_ID: |
| 215 | return getSetVariableActionVariableSetter_7016SemanticChildren(view); |
| 216 | case ForkActionForkedBehaviours2EditPart.VISUAL_ID: |
| 217 | return getForkActionForkedBehaviours_7019SemanticChildren(view); |
| 218 | case RecoveryActionRecoveryBlockCompartment2EditPart.VISUAL_ID: |
| 219 | return getRecoveryActionRecoveryBlockCompartment_7056SemanticChildren(view); |
| 220 | case ResourceDemandingSEFFEditPart.VISUAL_ID: |
| 221 | return getResourceDemandingSEFF_1000SemanticChildren(view); |
| 222 | } |
| 223 | return Collections.EMPTY_LIST; |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * @generated |
| 228 | */ |
| 229 | public static List getLoopAction_2004SemanticChildren(View view) { |
| 230 | if (!view.isSetElement()) { |
| 231 | return Collections.EMPTY_LIST; |
| 232 | } |
| 233 | LoopAction modelElement = (LoopAction) view.getElement(); |
| 234 | List result = new LinkedList(); |
| 235 | { |
| 236 | ResourceDemandingBehaviour childElement = modelElement |
| 237 | .getBodyBehaviour_Loop(); |
| 238 | int visualID = PalladioComponentModelVisualIDRegistry |
| 239 | .getNodeVisualID(view, childElement); |
| 240 | if (visualID == ResourceDemandingBehaviourEditPart.VISUAL_ID) { |
| 241 | result.add(new PalladioComponentModelNodeDescriptor( |
| 242 | childElement, visualID)); |
| 243 | } |
| 244 | } |
| 245 | return result; |
| 246 | } |
| 247 | |
| 248 | /** |
| 249 | * @generated |
| 250 | */ |
| 251 | public static List getCollectionIteratorAction_2007SemanticChildren( |
| 252 | View view) { |
| 253 | if (!view.isSetElement()) { |
| 254 | return Collections.EMPTY_LIST; |
| 255 | } |
| 256 | CollectionIteratorAction modelElement = (CollectionIteratorAction) view |
| 257 | .getElement(); |
| 258 | List result = new LinkedList(); |
| 259 | { |
| 260 | ResourceDemandingBehaviour childElement = modelElement |
| 261 | .getBodyBehaviour_Loop(); |
| 262 | int visualID = PalladioComponentModelVisualIDRegistry |
| 263 | .getNodeVisualID(view, childElement); |
| 264 | if (visualID == ResourceDemandingBehaviour3EditPart.VISUAL_ID) { |
| 265 | result.add(new PalladioComponentModelNodeDescriptor( |
| 266 | childElement, visualID)); |
| 267 | } |
| 268 | } |
| 269 | return result; |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * @generated |
| 274 | */ |
| 275 | public static List getLoopAction_3006SemanticChildren(View view) { |
| 276 | if (!view.isSetElement()) { |
| 277 | return Collections.EMPTY_LIST; |
| 278 | } |
| 279 | LoopAction modelElement = (LoopAction) view.getElement(); |
| 280 | List result = new LinkedList(); |
| 281 | { |
| 282 | ResourceDemandingBehaviour childElement = modelElement |
| 283 | .getBodyBehaviour_Loop(); |
| 284 | int visualID = PalladioComponentModelVisualIDRegistry |
| 285 | .getNodeVisualID(view, childElement); |
| 286 | if (visualID == ResourceDemandingBehaviourEditPart.VISUAL_ID) { |
| 287 | result.add(new PalladioComponentModelNodeDescriptor( |
| 288 | childElement, visualID)); |
| 289 | } |
| 290 | } |
| 291 | return result; |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * @generated |
| 296 | */ |
| 297 | public static List getProbabilisticBranchTransition_3010SemanticChildren( |
| 298 | View view) { |
| 299 | if (!view.isSetElement()) { |
| 300 | return Collections.EMPTY_LIST; |
| 301 | } |
| 302 | ProbabilisticBranchTransition modelElement = (ProbabilisticBranchTransition) view |
| 303 | .getElement(); |
| 304 | List result = new LinkedList(); |
| 305 | { |
| 306 | ResourceDemandingBehaviour childElement = modelElement |
| 307 | .getBranchBehaviour_BranchTransition(); |
| 308 | int visualID = PalladioComponentModelVisualIDRegistry |
| 309 | .getNodeVisualID(view, childElement); |
| 310 | if (visualID == ResourceDemandingBehaviour2EditPart.VISUAL_ID) { |
| 311 | result.add(new PalladioComponentModelNodeDescriptor( |
| 312 | childElement, visualID)); |
| 313 | } |
| 314 | } |
| 315 | return result; |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * @generated |
| 320 | */ |
| 321 | public static List getCollectionIteratorAction_3013SemanticChildren( |
| 322 | View view) { |
| 323 | if (!view.isSetElement()) { |
| 324 | return Collections.EMPTY_LIST; |
| 325 | } |
| 326 | CollectionIteratorAction modelElement = (CollectionIteratorAction) view |
| 327 | .getElement(); |
| 328 | List result = new LinkedList(); |
| 329 | { |
| 330 | ResourceDemandingBehaviour childElement = modelElement |
| 331 | .getBodyBehaviour_Loop(); |
| 332 | int visualID = PalladioComponentModelVisualIDRegistry |
| 333 | .getNodeVisualID(view, childElement); |
| 334 | if (visualID == ResourceDemandingBehaviour3EditPart.VISUAL_ID) { |
| 335 | result.add(new PalladioComponentModelNodeDescriptor( |
| 336 | childElement, visualID)); |
| 337 | } |
| 338 | } |
| 339 | return result; |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * @generated |
| 344 | */ |
| 345 | public static List getGuardedBranchTransition_3017SemanticChildren(View view) { |
| 346 | if (!view.isSetElement()) { |
| 347 | return Collections.EMPTY_LIST; |
| 348 | } |
| 349 | GuardedBranchTransition modelElement = (GuardedBranchTransition) view |
| 350 | .getElement(); |
| 351 | List result = new LinkedList(); |
| 352 | { |
| 353 | ResourceDemandingBehaviour childElement = modelElement |
| 354 | .getBranchBehaviour_BranchTransition(); |
| 355 | int visualID = PalladioComponentModelVisualIDRegistry |
| 356 | .getNodeVisualID(view, childElement); |
| 357 | if (visualID == ResourceDemandingBehaviour4EditPart.VISUAL_ID) { |
| 358 | result.add(new PalladioComponentModelNodeDescriptor( |
| 359 | childElement, visualID)); |
| 360 | } |
| 361 | } |
| 362 | return result; |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * @generated |
| 367 | */ |
| 368 | public static List getExternalCallActionInputVariableUsage_7001SemanticChildren( |
| 369 | View view) { |
| 370 | if (false == view.eContainer() instanceof View) { |
| 371 | return Collections.EMPTY_LIST; |
| 372 | } |
| 373 | View containerView = (View) view.eContainer(); |
| 374 | if (!containerView.isSetElement()) { |
| 375 | return Collections.EMPTY_LIST; |
| 376 | } |
| 377 | ExternalCallAction modelElement = (ExternalCallAction) containerView |
| 378 | .getElement(); |
| 379 | List result = new LinkedList(); |
| 380 | for (Iterator it = modelElement.getInputVariableUsages__CallAction() |
| 381 | .iterator(); it.hasNext();) { |
| 382 | VariableUsage childElement = (VariableUsage) it.next(); |
| 383 | int visualID = PalladioComponentModelVisualIDRegistry |
| 384 | .getNodeVisualID(view, childElement); |
| 385 | if (visualID == VariableUsageEditPart.VISUAL_ID) { |
| 386 | result.add(new PalladioComponentModelNodeDescriptor( |
| 387 | childElement, visualID)); |
| 388 | continue; |
| 389 | } |
| 390 | } |
| 391 | return result; |
| 392 | } |
| 393 | |
| 394 | /** |
| 395 | * @generated |
| 396 | */ |
| 397 | public static List getExternalCallActionOutputVariableUsage_7021SemanticChildren( |
| 398 | View view) { |
| 399 | if (false == view.eContainer() instanceof View) { |
| 400 | return Collections.EMPTY_LIST; |
| 401 | } |
| 402 | View containerView = (View) view.eContainer(); |
| 403 | if (!containerView.isSetElement()) { |
| 404 | return Collections.EMPTY_LIST; |
| 405 | } |
| 406 | ExternalCallAction modelElement = (ExternalCallAction) containerView |
| 407 | .getElement(); |
| 408 | List result = new LinkedList(); |
| 409 | for (Iterator it = modelElement |
| 410 | .getReturnVariableUsage__CallReturnAction().iterator(); it |
| 411 | .hasNext();) { |
| 412 | VariableUsage childElement = (VariableUsage) it.next(); |
| 413 | int visualID = PalladioComponentModelVisualIDRegistry |
| 414 | .getNodeVisualID(view, childElement); |
| 415 | if (visualID == VariableUsage2EditPart.VISUAL_ID) { |
| 416 | result.add(new PalladioComponentModelNodeDescriptor( |
| 417 | childElement, visualID)); |
| 418 | continue; |
| 419 | } |
| 420 | } |
| 421 | return result; |
| 422 | } |
| 423 | |
| 424 | /** |
| 425 | * @generated |
| 426 | */ |
| 427 | public static List getVariableUsageVariableCharacterisation_7037SemanticChildren( |
| 428 | View view) { |
| 429 | if (false == view.eContainer() instanceof View) { |
| 430 | return Collections.EMPTY_LIST; |
| 431 | } |
| 432 | View containerView = (View) view.eContainer(); |
| 433 | if (!containerView.isSetElement()) { |
| 434 | return Collections.EMPTY_LIST; |
| 435 | } |
| 436 | VariableUsage modelElement = (VariableUsage) containerView.getElement(); |
| 437 | List result = new LinkedList(); |
| 438 | for (Iterator it = modelElement |
| 439 | .getVariableCharacterisation_VariableUsage().iterator(); it |
| 440 | .hasNext();) { |
| 441 | VariableCharacterisation childElement = (VariableCharacterisation) it |
| 442 | .next(); |
| 443 | int visualID = PalladioComponentModelVisualIDRegistry |
| 444 | .getNodeVisualID(view, childElement); |
| 445 | if (visualID == VariableCharacterisationEditPart.VISUAL_ID) { |
| 446 | result.add(new PalladioComponentModelNodeDescriptor( |
| 447 | childElement, visualID)); |
| 448 | continue; |
| 449 | } |
| 450 | } |
| 451 | return result; |
| 452 | } |
| 453 | |
| 454 | /** |
| 455 | * @generated |
| 456 | */ |
| 457 | public static List getVariableUsageVariableCharacterisation_7044SemanticChildren( |
| 458 | View view) { |
| 459 | if (false == view.eContainer() instanceof View) { |
| 460 | return Collections.EMPTY_LIST; |
| 461 | } |
| 462 | View containerView = (View) view.eContainer(); |
| 463 | if (!containerView.isSetElement()) { |
| 464 | return Collections.EMPTY_LIST; |
| 465 | } |
| 466 | VariableUsage modelElement = (VariableUsage) containerView.getElement(); |
| 467 | List result = new LinkedList(); |
| 468 | for (Iterator it = modelElement |
| 469 | .getVariableCharacterisation_VariableUsage().iterator(); it |
| 470 | .hasNext();) { |
| 471 | VariableCharacterisation childElement = (VariableCharacterisation) it |
| 472 | .next(); |
| 473 | int visualID = PalladioComponentModelVisualIDRegistry |
| 474 | .getNodeVisualID(view, childElement); |
| 475 | if (visualID == VariableCharacterisation2EditPart.VISUAL_ID) { |
| 476 | result.add(new PalladioComponentModelNodeDescriptor( |
| 477 | childElement, visualID)); |
| 478 | continue; |
| 479 | } |
| 480 | } |
| 481 | return result; |
| 482 | } |
| 483 | |
| 484 | /** |
| 485 | * @generated |
| 486 | */ |
| 487 | public static List getEmitEventActionInputVariableUsageEvent_7042SemanticChildren( |
| 488 | View view) { |
| 489 | if (false == view.eContainer() instanceof View) { |
| 490 | return Collections.EMPTY_LIST; |
| 491 | } |
| 492 | View containerView = (View) view.eContainer(); |
| 493 | if (!containerView.isSetElement()) { |
| 494 | return Collections.EMPTY_LIST; |
| 495 | } |
| 496 | EmitEventAction modelElement = (EmitEventAction) containerView |
| 497 | .getElement(); |
| 498 | List result = new LinkedList(); |
| 499 | for (Iterator it = modelElement.getInputVariableUsages__CallAction() |
| 500 | .iterator(); it.hasNext();) { |
| 501 | VariableUsage childElement = (VariableUsage) it.next(); |
| 502 | int visualID = PalladioComponentModelVisualIDRegistry |
| 503 | .getNodeVisualID(view, childElement); |
| 504 | if (visualID == VariableUsage4EditPart.VISUAL_ID) { |
| 505 | result.add(new PalladioComponentModelNodeDescriptor( |
| 506 | childElement, visualID)); |
| 507 | continue; |
| 508 | } |
| 509 | } |
| 510 | return result; |
| 511 | } |
| 512 | |
| 513 | /** |
| 514 | * @generated |
| 515 | */ |
| 516 | public static List getVariableUsageVariableCharacterisation_7043SemanticChildren( |
| 517 | View view) { |
| 518 | if (false == view.eContainer() instanceof View) { |
| 519 | return Collections.EMPTY_LIST; |
| 520 | } |
| 521 | View containerView = (View) view.eContainer(); |
| 522 | if (!containerView.isSetElement()) { |
| 523 | return Collections.EMPTY_LIST; |
| 524 | } |
| 525 | VariableUsage modelElement = (VariableUsage) containerView.getElement(); |
| 526 | List result = new LinkedList(); |
| 527 | for (Iterator it = modelElement |
| 528 | .getVariableCharacterisation_VariableUsage().iterator(); it |
| 529 | .hasNext();) { |
| 530 | VariableCharacterisation childElement = (VariableCharacterisation) it |
| 531 | .next(); |
| 532 | int visualID = PalladioComponentModelVisualIDRegistry |
| 533 | .getNodeVisualID(view, childElement); |
| 534 | if (visualID == VariableCharacterisation3EditPart.VISUAL_ID) { |
| 535 | result.add(new PalladioComponentModelNodeDescriptor( |
| 536 | childElement, visualID)); |
| 537 | continue; |
| 538 | } |
| 539 | } |
| 540 | return result; |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * @generated |
| 545 | */ |
| 546 | public static List getResourceDemandingBehaviourBehaviourCompartment_7004SemanticChildren( |
| 547 | View view) { |
| 548 | if (false == view.eContainer() instanceof View) { |
| 549 | return Collections.EMPTY_LIST; |
| 550 | } |
| 551 | View containerView = (View) view.eContainer(); |
| 552 | if (!containerView.isSetElement()) { |
| 553 | return Collections.EMPTY_LIST; |
| 554 | } |
| 555 | ResourceDemandingBehaviour modelElement = (ResourceDemandingBehaviour) containerView |
| 556 | .getElement(); |
| 557 | List result = new LinkedList(); |
| 558 | for (Iterator it = modelElement.getSteps_Behaviour().iterator(); it |
| 559 | .hasNext();) { |
| 560 | AbstractAction childElement = (AbstractAction) it.next(); |
| 561 | int visualID = PalladioComponentModelVisualIDRegistry |
| 562 | .getNodeVisualID(view, childElement); |
| 563 | if (visualID == StartAction2EditPart.VISUAL_ID) { |
| 564 | result.add(new PalladioComponentModelNodeDescriptor( |
| 565 | childElement, visualID)); |
| 566 | continue; |
| 567 | } |
| 568 | if (visualID == StopAction2EditPart.VISUAL_ID) { |
| 569 | result.add(new PalladioComponentModelNodeDescriptor( |
| 570 | childElement, visualID)); |
| 571 | continue; |
| 572 | } |
| 573 | if (visualID == LoopAction2EditPart.VISUAL_ID) { |
| 574 | result.add(new PalladioComponentModelNodeDescriptor( |
| 575 | childElement, visualID)); |
| 576 | continue; |
| 577 | } |
| 578 | if (visualID == InternalAction2EditPart.VISUAL_ID) { |
| 579 | result.add(new PalladioComponentModelNodeDescriptor( |
| 580 | childElement, visualID)); |
| 581 | continue; |
| 582 | } |
| 583 | if (visualID == BranchAction2EditPart.VISUAL_ID) { |
| 584 | result.add(new PalladioComponentModelNodeDescriptor( |
| 585 | childElement, visualID)); |
| 586 | continue; |
| 587 | } |
| 588 | if (visualID == ExternalCallAction2EditPart.VISUAL_ID) { |
| 589 | result.add(new PalladioComponentModelNodeDescriptor( |
| 590 | childElement, visualID)); |
| 591 | continue; |
| 592 | } |
| 593 | if (visualID == EmitEventAction2EditPart.VISUAL_ID) { |
| 594 | result.add(new PalladioComponentModelNodeDescriptor( |
| 595 | childElement, visualID)); |
| 596 | continue; |
| 597 | } |
| 598 | if (visualID == CollectionIteratorAction2EditPart.VISUAL_ID) { |
| 599 | result.add(new PalladioComponentModelNodeDescriptor( |
| 600 | childElement, visualID)); |
| 601 | continue; |
| 602 | } |
| 603 | if (visualID == AcquireAction2EditPart.VISUAL_ID) { |
| 604 | result.add(new PalladioComponentModelNodeDescriptor( |
| 605 | childElement, visualID)); |
| 606 | continue; |
| 607 | } |
| 608 | if (visualID == ReleaseAction2EditPart.VISUAL_ID) { |
| 609 | result.add(new PalladioComponentModelNodeDescriptor( |
| 610 | childElement, visualID)); |
| 611 | continue; |
| 612 | } |
| 613 | if (visualID == ForkAction2EditPart.VISUAL_ID) { |
| 614 | result.add(new PalladioComponentModelNodeDescriptor( |
| 615 | childElement, visualID)); |
| 616 | continue; |
| 617 | } |
| 618 | if (visualID == SetVariableAction2EditPart.VISUAL_ID) { |
| 619 | result.add(new PalladioComponentModelNodeDescriptor( |
| 620 | childElement, visualID)); |
| 621 | continue; |
| 622 | } |
| 623 | if (visualID == RecoveryAction2EditPart.VISUAL_ID) { |
| 624 | result.add(new PalladioComponentModelNodeDescriptor( |
| 625 | childElement, visualID)); |
| 626 | continue; |
| 627 | } |
| 628 | } |
| 629 | return result; |
| 630 | } |
| 631 | |
| 632 | /** |
| 633 | * @generated |
| 634 | */ |
| 635 | public static List getInternalActionResourceDemands_7006SemanticChildren( |
| 636 | View view) { |
| 637 | if (false == view.eContainer() instanceof View) { |
| 638 | return Collections.EMPTY_LIST; |
| 639 | } |
| 640 | View containerView = (View) view.eContainer(); |
| 641 | if (!containerView.isSetElement()) { |
| 642 | return Collections.EMPTY_LIST; |
| 643 | } |
| 644 | InternalAction modelElement = (InternalAction) containerView |
| 645 | .getElement(); |
| 646 | List result = new LinkedList(); |
| 647 | for (Iterator it = modelElement.getResourceDemand_Action().iterator(); it |
| 648 | .hasNext();) { |
| 649 | de.uka.ipd.sdq.pcm.seff.seff_performance.ParametricResourceDemand childElement = (de.uka.ipd.sdq.pcm.seff.seff_performance.ParametricResourceDemand) it |
| 650 | .next(); |
| 651 | int visualID = PalladioComponentModelVisualIDRegistry |
| 652 | .getNodeVisualID(view, childElement); |
| 653 | if (visualID == ParametricResourceDemandEditPart.VISUAL_ID) { |
| 654 | result.add(new PalladioComponentModelNodeDescriptor( |
| 655 | childElement, visualID)); |
| 656 | continue; |
| 657 | } |
| 658 | } |
| 659 | return result; |
| 660 | } |
| 661 | |
| 662 | /** |
| 663 | * @generated |
| 664 | */ |
| 665 | public static List getInternalActionFailureOccurrenceDescriptions_7045SemanticChildren( |
| 666 | View view) { |
| 667 | if (false == view.eContainer() instanceof View) { |
| 668 | return Collections.EMPTY_LIST; |
| 669 | } |
| 670 | View containerView = (View) view.eContainer(); |
| 671 | if (!containerView.isSetElement()) { |
| 672 | return Collections.EMPTY_LIST; |
| 673 | } |
| 674 | InternalAction modelElement = (InternalAction) containerView |
| 675 | .getElement(); |
| 676 | List result = new LinkedList(); |
| 677 | for (Iterator it = modelElement |
| 678 | .getInternalFailureOccurrenceDescriptions__InternalAction() |
| 679 | .iterator(); it.hasNext();) { |
| 680 | InternalFailureOccurrenceDescription childElement = (InternalFailureOccurrenceDescription) it |
| 681 | .next(); |
| 682 | int visualID = PalladioComponentModelVisualIDRegistry |
| 683 | .getNodeVisualID(view, childElement); |
| 684 | if (visualID == InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID) { |
| 685 | result.add(new PalladioComponentModelNodeDescriptor( |
| 686 | childElement, visualID)); |
| 687 | continue; |
| 688 | } |
| 689 | } |
| 690 | return result; |
| 691 | } |
| 692 | |
| 693 | /** |
| 694 | * @generated |
| 695 | */ |
| 696 | public static List getInternalActionInfrastructureCallsCompartment_7048SemanticChildren( |
| 697 | View view) { |
| 698 | if (false == view.eContainer() instanceof View) { |
| 699 | return Collections.EMPTY_LIST; |
| 700 | } |
| 701 | View containerView = (View) view.eContainer(); |
| 702 | if (!containerView.isSetElement()) { |
| 703 | return Collections.EMPTY_LIST; |
| 704 | } |
| 705 | InternalAction modelElement = (InternalAction) containerView |
| 706 | .getElement(); |
| 707 | List result = new LinkedList(); |
| 708 | for (Iterator it = modelElement.getInfrastructureCall__Action() |
| 709 | .iterator(); it.hasNext();) { |
| 710 | de.uka.ipd.sdq.pcm.seff.seff_performance.InfrastructureCall childElement = (de.uka.ipd.sdq.pcm.seff.seff_performance.InfrastructureCall) it |
| 711 | .next(); |
| 712 | int visualID = PalladioComponentModelVisualIDRegistry |
| 713 | .getNodeVisualID(view, childElement); |
| 714 | if (visualID == InfrastructureCallEditPart.VISUAL_ID) { |
| 715 | result.add(new PalladioComponentModelNodeDescriptor( |
| 716 | childElement, visualID)); |
| 717 | continue; |
| 718 | } |
| 719 | } |
| 720 | return result; |
| 721 | } |
| 722 | |
| 723 | /** |
| 724 | * @generated |
| 725 | */ |
| 726 | public static List getInfrastructureCallInfrastructureCallInputVariableUsages_7049SemanticChildren( |
| 727 | View view) { |
| 728 | if (false == view.eContainer() instanceof View) { |
| 729 | return Collections.EMPTY_LIST; |
| 730 | } |
| 731 | View containerView = (View) view.eContainer(); |
| 732 | if (!containerView.isSetElement()) { |
| 733 | return Collections.EMPTY_LIST; |
| 734 | } |
| 735 | de.uka.ipd.sdq.pcm.seff.seff_performance.InfrastructureCall modelElement = (de.uka.ipd.sdq.pcm.seff.seff_performance.InfrastructureCall) containerView |
| 736 | .getElement(); |
| 737 | List result = new LinkedList(); |
| 738 | for (Iterator it = modelElement.getInputVariableUsages__CallAction() |
| 739 | .iterator(); it.hasNext();) { |
| 740 | VariableUsage childElement = (VariableUsage) it.next(); |
| 741 | int visualID = PalladioComponentModelVisualIDRegistry |
| 742 | .getNodeVisualID(view, childElement); |
| 743 | if (visualID == VariableUsage5EditPart.VISUAL_ID) { |
| 744 | result.add(new PalladioComponentModelNodeDescriptor( |
| 745 | childElement, visualID)); |
| 746 | continue; |
| 747 | } |
| 748 | } |
| 749 | return result; |
| 750 | } |
| 751 | |
| 752 | /** |
| 753 | * @generated |
| 754 | */ |
| 755 | public static List getVariableUsageVariableCharacterisation_7050SemanticChildren( |
| 756 | View view) { |
| 757 | if (false == view.eContainer() instanceof View) { |
| 758 | return Collections.EMPTY_LIST; |
| 759 | } |
| 760 | View containerView = (View) view.eContainer(); |
| 761 | if (!containerView.isSetElement()) { |
| 762 | return Collections.EMPTY_LIST; |
| 763 | } |
| 764 | VariableUsage modelElement = (VariableUsage) containerView.getElement(); |
| 765 | List result = new LinkedList(); |
| 766 | for (Iterator it = modelElement |
| 767 | .getVariableCharacterisation_VariableUsage().iterator(); it |
| 768 | .hasNext();) { |
| 769 | VariableCharacterisation childElement = (VariableCharacterisation) it |
| 770 | .next(); |
| 771 | int visualID = PalladioComponentModelVisualIDRegistry |
| 772 | .getNodeVisualID(view, childElement); |
| 773 | if (visualID == VariableCharacterisation4EditPart.VISUAL_ID) { |
| 774 | result.add(new PalladioComponentModelNodeDescriptor( |
| 775 | childElement, visualID)); |
| 776 | continue; |
| 777 | } |
| 778 | } |
| 779 | return result; |
| 780 | } |
| 781 | |
| 782 | /** |
| 783 | * @generated |
| 784 | */ |
| 785 | public static List getBranchActionBranchTransitionCompartment_7007SemanticChildren( |
| 786 | View view) { |
| 787 | if (false == view.eContainer() instanceof View) { |
| 788 | return Collections.EMPTY_LIST; |
| 789 | } |
| 790 | View containerView = (View) view.eContainer(); |
| 791 | if (!containerView.isSetElement()) { |
| 792 | return Collections.EMPTY_LIST; |
| 793 | } |
| 794 | BranchAction modelElement = (BranchAction) containerView.getElement(); |
| 795 | List result = new LinkedList(); |
| 796 | for (Iterator it = modelElement.getBranches_Branch().iterator(); it |
| 797 | .hasNext();) { |
| 798 | AbstractBranchTransition childElement = (AbstractBranchTransition) it |
| 799 | .next(); |
| 800 | int visualID = PalladioComponentModelVisualIDRegistry |
| 801 | .getNodeVisualID(view, childElement); |
| 802 | if (visualID == ProbabilisticBranchTransitionEditPart.VISUAL_ID) { |
| 803 | result.add(new PalladioComponentModelNodeDescriptor( |
| 804 | childElement, visualID)); |
| 805 | continue; |
| 806 | } |
| 807 | if (visualID == GuardedBranchTransitionEditPart.VISUAL_ID) { |
| 808 | result.add(new PalladioComponentModelNodeDescriptor( |
| 809 | childElement, visualID)); |
| 810 | continue; |
| 811 | } |
| 812 | } |
| 813 | return result; |
| 814 | } |
| 815 | |
| 816 | /** |
| 817 | * @generated |
| 818 | */ |
| 819 | public static List getResourceDemandingBehaviourBehaviourCompartment_7009SemanticChildren( |
| 820 | View view) { |
| 821 | if (false == view.eContainer() instanceof View) { |
| 822 | return Collections.EMPTY_LIST; |
| 823 | } |
| 824 | View containerView = (View) view.eContainer(); |
| 825 | if (!containerView.isSetElement()) { |
| 826 | return Collections.EMPTY_LIST; |
| 827 | } |
| 828 | ResourceDemandingBehaviour modelElement = (ResourceDemandingBehaviour) containerView |
| 829 | .getElement(); |
| 830 | List result = new LinkedList(); |
| 831 | for (Iterator it = modelElement.getSteps_Behaviour().iterator(); it |
| 832 | .hasNext();) { |
| 833 | AbstractAction childElement = (AbstractAction) it.next(); |
| 834 | int visualID = PalladioComponentModelVisualIDRegistry |
| 835 | .getNodeVisualID(view, childElement); |
| 836 | if (visualID == StartAction2EditPart.VISUAL_ID) { |
| 837 | result.add(new PalladioComponentModelNodeDescriptor( |
| 838 | childElement, visualID)); |
| 839 | continue; |
| 840 | } |
| 841 | if (visualID == StopAction2EditPart.VISUAL_ID) { |
| 842 | result.add(new PalladioComponentModelNodeDescriptor( |
| 843 | childElement, visualID)); |
| 844 | continue; |
| 845 | } |
| 846 | if (visualID == LoopAction2EditPart.VISUAL_ID) { |
| 847 | result.add(new PalladioComponentModelNodeDescriptor( |
| 848 | childElement, visualID)); |
| 849 | continue; |
| 850 | } |
| 851 | if (visualID == InternalAction2EditPart.VISUAL_ID) { |
| 852 | result.add(new PalladioComponentModelNodeDescriptor( |
| 853 | childElement, visualID)); |
| 854 | continue; |
| 855 | } |
| 856 | if (visualID == BranchAction2EditPart.VISUAL_ID) { |
| 857 | result.add(new PalladioComponentModelNodeDescriptor( |
| 858 | childElement, visualID)); |
| 859 | continue; |
| 860 | } |
| 861 | if (visualID == ExternalCallAction2EditPart.VISUAL_ID) { |
| 862 | result.add(new PalladioComponentModelNodeDescriptor( |
| 863 | childElement, visualID)); |
| 864 | continue; |
| 865 | } |
| 866 | if (visualID == EmitEventAction2EditPart.VISUAL_ID) { |
| 867 | result.add(new PalladioComponentModelNodeDescriptor( |
| 868 | childElement, visualID)); |
| 869 | continue; |
| 870 | } |
| 871 | if (visualID == AcquireAction2EditPart.VISUAL_ID) { |
| 872 | result.add(new PalladioComponentModelNodeDescriptor( |
| 873 | childElement, visualID)); |
| 874 | continue; |
| 875 | } |
| 876 | if (visualID == ReleaseAction2EditPart.VISUAL_ID) { |
| 877 | result.add(new PalladioComponentModelNodeDescriptor( |
| 878 | childElement, visualID)); |
| 879 | continue; |
| 880 | } |
| 881 | if (visualID == ForkAction2EditPart.VISUAL_ID) { |
| 882 | result.add(new PalladioComponentModelNodeDescriptor( |
| 883 | childElement, visualID)); |
| 884 | continue; |
| 885 | } |
| 886 | if (visualID == CollectionIteratorAction2EditPart.VISUAL_ID) { |
| 887 | result.add(new PalladioComponentModelNodeDescriptor( |
| 888 | childElement, visualID)); |
| 889 | continue; |
| 890 | } |
| 891 | if (visualID == SetVariableAction2EditPart.VISUAL_ID) { |
| 892 | result.add(new PalladioComponentModelNodeDescriptor( |
| 893 | childElement, visualID)); |
| 894 | continue; |
| 895 | } |
| 896 | if (visualID == RecoveryAction2EditPart.VISUAL_ID) { |
| 897 | result.add(new PalladioComponentModelNodeDescriptor( |
| 898 | childElement, visualID)); |
| 899 | continue; |
| 900 | } |
| 901 | } |
| 902 | return result; |
| 903 | } |
| 904 | |
| 905 | /** |
| 906 | * @generated |
| 907 | */ |
| 908 | public static List getExternalCallActionInputVariableUsage_7010SemanticChildren( |
| 909 | View view) { |
| 910 | if (false == view.eContainer() instanceof View) { |
| 911 | return Collections.EMPTY_LIST; |
| 912 | } |
| 913 | View containerView = (View) view.eContainer(); |
| 914 | if (!containerView.isSetElement()) { |
| 915 | return Collections.EMPTY_LIST; |
| 916 | } |
| 917 | ExternalCallAction modelElement = (ExternalCallAction) containerView |
| 918 | .getElement(); |
| 919 | List result = new LinkedList(); |
| 920 | for (Iterator it = modelElement.getInputVariableUsages__CallAction() |
| 921 | .iterator(); it.hasNext();) { |
| 922 | VariableUsage childElement = (VariableUsage) it.next(); |
| 923 | int visualID = PalladioComponentModelVisualIDRegistry |
| 924 | .getNodeVisualID(view, childElement); |
| 925 | if (visualID == VariableUsageEditPart.VISUAL_ID) { |
| 926 | result.add(new PalladioComponentModelNodeDescriptor( |
| 927 | childElement, visualID)); |
| 928 | continue; |
| 929 | } |
| 930 | } |
| 931 | return result; |
| 932 | } |
| 933 | |
| 934 | /** |
| 935 | * @generated |
| 936 | */ |
| 937 | public static List getExternalCallActionOutputVariableUsage_7023SemanticChildren( |
| 938 | View view) { |
| 939 | if (false == view.eContainer() instanceof View) { |
| 940 | return Collections.EMPTY_LIST; |
| 941 | } |
| 942 | View containerView = (View) view.eContainer(); |
| 943 | if (!containerView.isSetElement()) { |
| 944 | return Collections.EMPTY_LIST; |
| 945 | } |
| 946 | ExternalCallAction modelElement = (ExternalCallAction) containerView |
| 947 | .getElement(); |
| 948 | List result = new LinkedList(); |
| 949 | for (Iterator it = modelElement |
| 950 | .getReturnVariableUsage__CallReturnAction().iterator(); it |
| 951 | .hasNext();) { |
| 952 | VariableUsage childElement = (VariableUsage) it.next(); |
| 953 | int visualID = PalladioComponentModelVisualIDRegistry |
| 954 | .getNodeVisualID(view, childElement); |
| 955 | if (visualID == VariableUsage2EditPart.VISUAL_ID) { |
| 956 | result.add(new PalladioComponentModelNodeDescriptor( |
| 957 | childElement, visualID)); |
| 958 | continue; |
| 959 | } |
| 960 | } |
| 961 | return result; |
| 962 | } |
| 963 | |
| 964 | /** |
| 965 | * @generated |
| 966 | */ |
| 967 | public static List getEmitEventActionInputVariableUsageEvent_7041SemanticChildren( |
| 968 | View view) { |
| 969 | if (false == view.eContainer() instanceof View) { |
| 970 | return Collections.EMPTY_LIST; |
| 971 | } |
| 972 | View containerView = (View) view.eContainer(); |
| 973 | if (!containerView.isSetElement()) { |
| 974 | return Collections.EMPTY_LIST; |
| 975 | } |
| 976 | EmitEventAction modelElement = (EmitEventAction) containerView |
| 977 | .getElement(); |
| 978 | List result = new LinkedList(); |
| 979 | for (Iterator it = modelElement.getInputVariableUsages__CallAction() |
| 980 | .iterator(); it.hasNext();) { |
| 981 | VariableUsage childElement = (VariableUsage) it.next(); |
| 982 | int visualID = PalladioComponentModelVisualIDRegistry |
| 983 | .getNodeVisualID(view, childElement); |
| 984 | if (visualID == VariableUsage4EditPart.VISUAL_ID) { |
| 985 | result.add(new PalladioComponentModelNodeDescriptor( |
| 986 | childElement, visualID)); |
| 987 | continue; |
| 988 | } |
| 989 | } |
| 990 | return result; |
| 991 | } |
| 992 | |
| 993 | /** |
| 994 | * @generated |
| 995 | */ |
| 996 | public static List getForkActionForkedBehaviours_7024SemanticChildren( |
| 997 | View view) { |
| 998 | if (false == view.eContainer() instanceof View) { |
| 999 | return Collections.EMPTY_LIST; |
| 1000 | } |
| 1001 | View containerView = (View) view.eContainer(); |
| 1002 | if (!containerView.isSetElement()) { |
| 1003 | return Collections.EMPTY_LIST; |
| 1004 | } |
| 1005 | ForkAction modelElement = (ForkAction) containerView.getElement(); |
| 1006 | List result = new LinkedList(); |
| 1007 | for (Iterator it = modelElement |
| 1008 | .getAsynchronousForkedBehaviours_ForkAction().iterator(); it |
| 1009 | .hasNext();) { |
| 1010 | ForkedBehaviour childElement = (ForkedBehaviour) it.next(); |
| 1011 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1012 | .getNodeVisualID(view, childElement); |
| 1013 | if (visualID == ForkedBehaviourEditPart.VISUAL_ID) { |
| 1014 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1015 | childElement, visualID)); |
| 1016 | continue; |
| 1017 | } |
| 1018 | } |
| 1019 | { |
| 1020 | SynchronisationPoint childElement = modelElement |
| 1021 | .getSynchronisingBehaviours_ForkAction(); |
| 1022 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1023 | .getNodeVisualID(view, childElement); |
| 1024 | if (visualID == SynchronisationPointEditPart.VISUAL_ID) { |
| 1025 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1026 | childElement, visualID)); |
| 1027 | } |
| 1028 | } |
| 1029 | return result; |
| 1030 | } |
| 1031 | |
| 1032 | /** |
| 1033 | * @generated |
| 1034 | */ |
| 1035 | public static List getForkedBehaviourBehaviourCompartment_7026SemanticChildren( |
| 1036 | View view) { |
| 1037 | if (false == view.eContainer() instanceof View) { |
| 1038 | return Collections.EMPTY_LIST; |
| 1039 | } |
| 1040 | View containerView = (View) view.eContainer(); |
| 1041 | if (!containerView.isSetElement()) { |
| 1042 | return Collections.EMPTY_LIST; |
| 1043 | } |
| 1044 | ForkedBehaviour modelElement = (ForkedBehaviour) containerView |
| 1045 | .getElement(); |
| 1046 | List result = new LinkedList(); |
| 1047 | for (Iterator it = modelElement.getSteps_Behaviour().iterator(); it |
| 1048 | .hasNext();) { |
| 1049 | AbstractAction childElement = (AbstractAction) it.next(); |
| 1050 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1051 | .getNodeVisualID(view, childElement); |
| 1052 | if (visualID == StartAction2EditPart.VISUAL_ID) { |
| 1053 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1054 | childElement, visualID)); |
| 1055 | continue; |
| 1056 | } |
| 1057 | if (visualID == StopAction2EditPart.VISUAL_ID) { |
| 1058 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1059 | childElement, visualID)); |
| 1060 | continue; |
| 1061 | } |
| 1062 | if (visualID == LoopAction2EditPart.VISUAL_ID) { |
| 1063 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1064 | childElement, visualID)); |
| 1065 | continue; |
| 1066 | } |
| 1067 | if (visualID == InternalAction2EditPart.VISUAL_ID) { |
| 1068 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1069 | childElement, visualID)); |
| 1070 | continue; |
| 1071 | } |
| 1072 | if (visualID == BranchAction2EditPart.VISUAL_ID) { |
| 1073 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1074 | childElement, visualID)); |
| 1075 | continue; |
| 1076 | } |
| 1077 | if (visualID == ExternalCallAction2EditPart.VISUAL_ID) { |
| 1078 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1079 | childElement, visualID)); |
| 1080 | continue; |
| 1081 | } |
| 1082 | if (visualID == EmitEventAction2EditPart.VISUAL_ID) { |
| 1083 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1084 | childElement, visualID)); |
| 1085 | continue; |
| 1086 | } |
| 1087 | if (visualID == CollectionIteratorAction2EditPart.VISUAL_ID) { |
| 1088 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1089 | childElement, visualID)); |
| 1090 | continue; |
| 1091 | } |
| 1092 | if (visualID == AcquireAction2EditPart.VISUAL_ID) { |
| 1093 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1094 | childElement, visualID)); |
| 1095 | continue; |
| 1096 | } |
| 1097 | if (visualID == ReleaseAction2EditPart.VISUAL_ID) { |
| 1098 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1099 | childElement, visualID)); |
| 1100 | continue; |
| 1101 | } |
| 1102 | if (visualID == ForkAction2EditPart.VISUAL_ID) { |
| 1103 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1104 | childElement, visualID)); |
| 1105 | continue; |
| 1106 | } |
| 1107 | if (visualID == RecoveryAction2EditPart.VISUAL_ID) { |
| 1108 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1109 | childElement, visualID)); |
| 1110 | continue; |
| 1111 | } |
| 1112 | } |
| 1113 | return result; |
| 1114 | } |
| 1115 | |
| 1116 | /** |
| 1117 | * @generated |
| 1118 | */ |
| 1119 | public static List getResourceDemandingBehaviourBehaviourCompartment_7014SemanticChildren( |
| 1120 | View view) { |
| 1121 | if (false == view.eContainer() instanceof View) { |
| 1122 | return Collections.EMPTY_LIST; |
| 1123 | } |
| 1124 | View containerView = (View) view.eContainer(); |
| 1125 | if (!containerView.isSetElement()) { |
| 1126 | return Collections.EMPTY_LIST; |
| 1127 | } |
| 1128 | ResourceDemandingBehaviour modelElement = (ResourceDemandingBehaviour) containerView |
| 1129 | .getElement(); |
| 1130 | List result = new LinkedList(); |
| 1131 | for (Iterator it = modelElement.getSteps_Behaviour().iterator(); it |
| 1132 | .hasNext();) { |
| 1133 | AbstractAction childElement = (AbstractAction) it.next(); |
| 1134 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1135 | .getNodeVisualID(view, childElement); |
| 1136 | if (visualID == StartAction2EditPart.VISUAL_ID) { |
| 1137 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1138 | childElement, visualID)); |
| 1139 | continue; |
| 1140 | } |
| 1141 | if (visualID == StopAction2EditPart.VISUAL_ID) { |
| 1142 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1143 | childElement, visualID)); |
| 1144 | continue; |
| 1145 | } |
| 1146 | if (visualID == LoopAction2EditPart.VISUAL_ID) { |
| 1147 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1148 | childElement, visualID)); |
| 1149 | continue; |
| 1150 | } |
| 1151 | if (visualID == InternalAction2EditPart.VISUAL_ID) { |
| 1152 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1153 | childElement, visualID)); |
| 1154 | continue; |
| 1155 | } |
| 1156 | if (visualID == BranchAction2EditPart.VISUAL_ID) { |
| 1157 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1158 | childElement, visualID)); |
| 1159 | continue; |
| 1160 | } |
| 1161 | if (visualID == ExternalCallAction2EditPart.VISUAL_ID) { |
| 1162 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1163 | childElement, visualID)); |
| 1164 | continue; |
| 1165 | } |
| 1166 | if (visualID == EmitEventAction2EditPart.VISUAL_ID) { |
| 1167 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1168 | childElement, visualID)); |
| 1169 | continue; |
| 1170 | } |
| 1171 | if (visualID == CollectionIteratorAction2EditPart.VISUAL_ID) { |
| 1172 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1173 | childElement, visualID)); |
| 1174 | continue; |
| 1175 | } |
| 1176 | if (visualID == AcquireAction2EditPart.VISUAL_ID) { |
| 1177 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1178 | childElement, visualID)); |
| 1179 | continue; |
| 1180 | } |
| 1181 | if (visualID == ReleaseAction2EditPart.VISUAL_ID) { |
| 1182 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1183 | childElement, visualID)); |
| 1184 | continue; |
| 1185 | } |
| 1186 | if (visualID == ForkAction2EditPart.VISUAL_ID) { |
| 1187 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1188 | childElement, visualID)); |
| 1189 | continue; |
| 1190 | } |
| 1191 | if (visualID == RecoveryAction2EditPart.VISUAL_ID) { |
| 1192 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1193 | childElement, visualID)); |
| 1194 | continue; |
| 1195 | } |
| 1196 | } |
| 1197 | return result; |
| 1198 | } |
| 1199 | |
| 1200 | /** |
| 1201 | * @generated |
| 1202 | */ |
| 1203 | public static List getRecoveryActionRecoveryBlockCompartment_7054SemanticChildren( |
| 1204 | View view) { |
| 1205 | if (false == view.eContainer() instanceof View) { |
| 1206 | return Collections.EMPTY_LIST; |
| 1207 | } |
| 1208 | View containerView = (View) view.eContainer(); |
| 1209 | if (!containerView.isSetElement()) { |
| 1210 | return Collections.EMPTY_LIST; |
| 1211 | } |
| 1212 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction) containerView |
| 1213 | .getElement(); |
| 1214 | List result = new LinkedList(); |
| 1215 | for (Iterator it = modelElement |
| 1216 | .getRecoveryActionBehaviours__RecoveryAction().iterator(); it |
| 1217 | .hasNext();) { |
| 1218 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour childElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour) it |
| 1219 | .next(); |
| 1220 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1221 | .getNodeVisualID(view, childElement); |
| 1222 | if (visualID == RecoveryActionBehaviourEditPart.VISUAL_ID) { |
| 1223 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1224 | childElement, visualID)); |
| 1225 | continue; |
| 1226 | } |
| 1227 | } |
| 1228 | return result; |
| 1229 | } |
| 1230 | |
| 1231 | /** |
| 1232 | * @generated |
| 1233 | */ |
| 1234 | public static List getRecoveryActionBehaviourAlternativeBehaviourCompartment_7055SemanticChildren( |
| 1235 | View view) { |
| 1236 | if (false == view.eContainer() instanceof View) { |
| 1237 | return Collections.EMPTY_LIST; |
| 1238 | } |
| 1239 | View containerView = (View) view.eContainer(); |
| 1240 | if (!containerView.isSetElement()) { |
| 1241 | return Collections.EMPTY_LIST; |
| 1242 | } |
| 1243 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour) containerView |
| 1244 | .getElement(); |
| 1245 | List result = new LinkedList(); |
| 1246 | for (Iterator it = modelElement.getSteps_Behaviour().iterator(); it |
| 1247 | .hasNext();) { |
| 1248 | AbstractAction childElement = (AbstractAction) it.next(); |
| 1249 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1250 | .getNodeVisualID(view, childElement); |
| 1251 | if (visualID == StartAction2EditPart.VISUAL_ID) { |
| 1252 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1253 | childElement, visualID)); |
| 1254 | continue; |
| 1255 | } |
| 1256 | if (visualID == StopAction2EditPart.VISUAL_ID) { |
| 1257 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1258 | childElement, visualID)); |
| 1259 | continue; |
| 1260 | } |
| 1261 | if (visualID == LoopAction2EditPart.VISUAL_ID) { |
| 1262 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1263 | childElement, visualID)); |
| 1264 | continue; |
| 1265 | } |
| 1266 | if (visualID == InternalAction2EditPart.VISUAL_ID) { |
| 1267 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1268 | childElement, visualID)); |
| 1269 | continue; |
| 1270 | } |
| 1271 | if (visualID == BranchAction2EditPart.VISUAL_ID) { |
| 1272 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1273 | childElement, visualID)); |
| 1274 | continue; |
| 1275 | } |
| 1276 | if (visualID == ExternalCallAction2EditPart.VISUAL_ID) { |
| 1277 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1278 | childElement, visualID)); |
| 1279 | continue; |
| 1280 | } |
| 1281 | if (visualID == EmitEventAction2EditPart.VISUAL_ID) { |
| 1282 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1283 | childElement, visualID)); |
| 1284 | continue; |
| 1285 | } |
| 1286 | if (visualID == CollectionIteratorAction2EditPart.VISUAL_ID) { |
| 1287 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1288 | childElement, visualID)); |
| 1289 | continue; |
| 1290 | } |
| 1291 | if (visualID == AcquireAction2EditPart.VISUAL_ID) { |
| 1292 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1293 | childElement, visualID)); |
| 1294 | continue; |
| 1295 | } |
| 1296 | if (visualID == ReleaseAction2EditPart.VISUAL_ID) { |
| 1297 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1298 | childElement, visualID)); |
| 1299 | continue; |
| 1300 | } |
| 1301 | if (visualID == ForkAction2EditPart.VISUAL_ID) { |
| 1302 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1303 | childElement, visualID)); |
| 1304 | continue; |
| 1305 | } |
| 1306 | if (visualID == SetVariableAction2EditPart.VISUAL_ID) { |
| 1307 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1308 | childElement, visualID)); |
| 1309 | continue; |
| 1310 | } |
| 1311 | if (visualID == RecoveryAction2EditPart.VISUAL_ID) { |
| 1312 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1313 | childElement, visualID)); |
| 1314 | continue; |
| 1315 | } |
| 1316 | } |
| 1317 | return result; |
| 1318 | } |
| 1319 | |
| 1320 | /** |
| 1321 | * @generated |
| 1322 | */ |
| 1323 | public static List getSynchronisationPointSynchronisationPoint_7034SemanticChildren( |
| 1324 | View view) { |
| 1325 | if (false == view.eContainer() instanceof View) { |
| 1326 | return Collections.EMPTY_LIST; |
| 1327 | } |
| 1328 | View containerView = (View) view.eContainer(); |
| 1329 | if (!containerView.isSetElement()) { |
| 1330 | return Collections.EMPTY_LIST; |
| 1331 | } |
| 1332 | SynchronisationPoint modelElement = (SynchronisationPoint) containerView |
| 1333 | .getElement(); |
| 1334 | List result = new LinkedList(); |
| 1335 | for (Iterator it = modelElement |
| 1336 | .getSynchronousForkedBehaviours_SynchronisationPoint() |
| 1337 | .iterator(); it.hasNext();) { |
| 1338 | ForkedBehaviour childElement = (ForkedBehaviour) it.next(); |
| 1339 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1340 | .getNodeVisualID(view, childElement); |
| 1341 | if (visualID == ForkedBehaviour2EditPart.VISUAL_ID) { |
| 1342 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1343 | childElement, visualID)); |
| 1344 | continue; |
| 1345 | } |
| 1346 | } |
| 1347 | return result; |
| 1348 | } |
| 1349 | |
| 1350 | /** |
| 1351 | * @generated |
| 1352 | */ |
| 1353 | public static List getForkedBehaviourBehaviourCompartment_7033SemanticChildren( |
| 1354 | View view) { |
| 1355 | if (false == view.eContainer() instanceof View) { |
| 1356 | return Collections.EMPTY_LIST; |
| 1357 | } |
| 1358 | View containerView = (View) view.eContainer(); |
| 1359 | if (!containerView.isSetElement()) { |
| 1360 | return Collections.EMPTY_LIST; |
| 1361 | } |
| 1362 | ForkedBehaviour modelElement = (ForkedBehaviour) containerView |
| 1363 | .getElement(); |
| 1364 | List result = new LinkedList(); |
| 1365 | for (Iterator it = modelElement.getSteps_Behaviour().iterator(); it |
| 1366 | .hasNext();) { |
| 1367 | AbstractAction childElement = (AbstractAction) it.next(); |
| 1368 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1369 | .getNodeVisualID(view, childElement); |
| 1370 | if (visualID == StartAction2EditPart.VISUAL_ID) { |
| 1371 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1372 | childElement, visualID)); |
| 1373 | continue; |
| 1374 | } |
| 1375 | if (visualID == StopAction2EditPart.VISUAL_ID) { |
| 1376 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1377 | childElement, visualID)); |
| 1378 | continue; |
| 1379 | } |
| 1380 | if (visualID == LoopAction2EditPart.VISUAL_ID) { |
| 1381 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1382 | childElement, visualID)); |
| 1383 | continue; |
| 1384 | } |
| 1385 | if (visualID == InternalAction2EditPart.VISUAL_ID) { |
| 1386 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1387 | childElement, visualID)); |
| 1388 | continue; |
| 1389 | } |
| 1390 | if (visualID == BranchAction2EditPart.VISUAL_ID) { |
| 1391 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1392 | childElement, visualID)); |
| 1393 | continue; |
| 1394 | } |
| 1395 | if (visualID == ExternalCallAction2EditPart.VISUAL_ID) { |
| 1396 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1397 | childElement, visualID)); |
| 1398 | continue; |
| 1399 | } |
| 1400 | if (visualID == EmitEventAction2EditPart.VISUAL_ID) { |
| 1401 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1402 | childElement, visualID)); |
| 1403 | continue; |
| 1404 | } |
| 1405 | if (visualID == CollectionIteratorAction2EditPart.VISUAL_ID) { |
| 1406 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1407 | childElement, visualID)); |
| 1408 | continue; |
| 1409 | } |
| 1410 | if (visualID == AcquireAction2EditPart.VISUAL_ID) { |
| 1411 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1412 | childElement, visualID)); |
| 1413 | continue; |
| 1414 | } |
| 1415 | if (visualID == ReleaseAction2EditPart.VISUAL_ID) { |
| 1416 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1417 | childElement, visualID)); |
| 1418 | continue; |
| 1419 | } |
| 1420 | if (visualID == ForkAction2EditPart.VISUAL_ID) { |
| 1421 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1422 | childElement, visualID)); |
| 1423 | continue; |
| 1424 | } |
| 1425 | if (visualID == RecoveryAction2EditPart.VISUAL_ID) { |
| 1426 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1427 | childElement, visualID)); |
| 1428 | continue; |
| 1429 | } |
| 1430 | } |
| 1431 | return result; |
| 1432 | } |
| 1433 | |
| 1434 | /** |
| 1435 | * @generated |
| 1436 | */ |
| 1437 | public static List getSetVariableActionVariableSetter_7025SemanticChildren( |
| 1438 | View view) { |
| 1439 | if (false == view.eContainer() instanceof View) { |
| 1440 | return Collections.EMPTY_LIST; |
| 1441 | } |
| 1442 | View containerView = (View) view.eContainer(); |
| 1443 | if (!containerView.isSetElement()) { |
| 1444 | return Collections.EMPTY_LIST; |
| 1445 | } |
| 1446 | SetVariableAction modelElement = (SetVariableAction) containerView |
| 1447 | .getElement(); |
| 1448 | List result = new LinkedList(); |
| 1449 | for (Iterator it = modelElement |
| 1450 | .getLocalVariableUsages_SetVariableAction().iterator(); it |
| 1451 | .hasNext();) { |
| 1452 | VariableUsage childElement = (VariableUsage) it.next(); |
| 1453 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1454 | .getNodeVisualID(view, childElement); |
| 1455 | if (visualID == VariableUsage3EditPart.VISUAL_ID) { |
| 1456 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1457 | childElement, visualID)); |
| 1458 | continue; |
| 1459 | } |
| 1460 | } |
| 1461 | return result; |
| 1462 | } |
| 1463 | |
| 1464 | /** |
| 1465 | * @generated |
| 1466 | */ |
| 1467 | public static List getVariableUsageVariableCharacterisation_7032SemanticChildren( |
| 1468 | View view) { |
| 1469 | if (false == view.eContainer() instanceof View) { |
| 1470 | return Collections.EMPTY_LIST; |
| 1471 | } |
| 1472 | View containerView = (View) view.eContainer(); |
| 1473 | if (!containerView.isSetElement()) { |
| 1474 | return Collections.EMPTY_LIST; |
| 1475 | } |
| 1476 | VariableUsage modelElement = (VariableUsage) containerView.getElement(); |
| 1477 | List result = new LinkedList(); |
| 1478 | for (Iterator it = modelElement |
| 1479 | .getVariableCharacterisation_VariableUsage().iterator(); it |
| 1480 | .hasNext();) { |
| 1481 | VariableCharacterisation childElement = (VariableCharacterisation) it |
| 1482 | .next(); |
| 1483 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1484 | .getNodeVisualID(view, childElement); |
| 1485 | if (visualID == VariableCharacterisation5EditPart.VISUAL_ID) { |
| 1486 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1487 | childElement, visualID)); |
| 1488 | continue; |
| 1489 | } |
| 1490 | } |
| 1491 | return result; |
| 1492 | } |
| 1493 | |
| 1494 | /** |
| 1495 | * @generated |
| 1496 | */ |
| 1497 | public static List getResourceDemandingBehaviourBehaviourCompartment_7018SemanticChildren( |
| 1498 | View view) { |
| 1499 | if (false == view.eContainer() instanceof View) { |
| 1500 | return Collections.EMPTY_LIST; |
| 1501 | } |
| 1502 | View containerView = (View) view.eContainer(); |
| 1503 | if (!containerView.isSetElement()) { |
| 1504 | return Collections.EMPTY_LIST; |
| 1505 | } |
| 1506 | ResourceDemandingBehaviour modelElement = (ResourceDemandingBehaviour) containerView |
| 1507 | .getElement(); |
| 1508 | List result = new LinkedList(); |
| 1509 | for (Iterator it = modelElement.getSteps_Behaviour().iterator(); it |
| 1510 | .hasNext();) { |
| 1511 | AbstractAction childElement = (AbstractAction) it.next(); |
| 1512 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1513 | .getNodeVisualID(view, childElement); |
| 1514 | if (visualID == StartAction2EditPart.VISUAL_ID) { |
| 1515 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1516 | childElement, visualID)); |
| 1517 | continue; |
| 1518 | } |
| 1519 | if (visualID == StopAction2EditPart.VISUAL_ID) { |
| 1520 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1521 | childElement, visualID)); |
| 1522 | continue; |
| 1523 | } |
| 1524 | if (visualID == LoopAction2EditPart.VISUAL_ID) { |
| 1525 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1526 | childElement, visualID)); |
| 1527 | continue; |
| 1528 | } |
| 1529 | if (visualID == InternalAction2EditPart.VISUAL_ID) { |
| 1530 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1531 | childElement, visualID)); |
| 1532 | continue; |
| 1533 | } |
| 1534 | if (visualID == BranchAction2EditPart.VISUAL_ID) { |
| 1535 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1536 | childElement, visualID)); |
| 1537 | continue; |
| 1538 | } |
| 1539 | if (visualID == ExternalCallAction2EditPart.VISUAL_ID) { |
| 1540 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1541 | childElement, visualID)); |
| 1542 | continue; |
| 1543 | } |
| 1544 | if (visualID == EmitEventAction2EditPart.VISUAL_ID) { |
| 1545 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1546 | childElement, visualID)); |
| 1547 | continue; |
| 1548 | } |
| 1549 | if (visualID == AcquireAction2EditPart.VISUAL_ID) { |
| 1550 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1551 | childElement, visualID)); |
| 1552 | continue; |
| 1553 | } |
| 1554 | if (visualID == ReleaseAction2EditPart.VISUAL_ID) { |
| 1555 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1556 | childElement, visualID)); |
| 1557 | continue; |
| 1558 | } |
| 1559 | if (visualID == ForkAction2EditPart.VISUAL_ID) { |
| 1560 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1561 | childElement, visualID)); |
| 1562 | continue; |
| 1563 | } |
| 1564 | if (visualID == CollectionIteratorAction2EditPart.VISUAL_ID) { |
| 1565 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1566 | childElement, visualID)); |
| 1567 | continue; |
| 1568 | } |
| 1569 | if (visualID == SetVariableAction2EditPart.VISUAL_ID) { |
| 1570 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1571 | childElement, visualID)); |
| 1572 | continue; |
| 1573 | } |
| 1574 | if (visualID == RecoveryAction2EditPart.VISUAL_ID) { |
| 1575 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1576 | childElement, visualID)); |
| 1577 | continue; |
| 1578 | } |
| 1579 | } |
| 1580 | return result; |
| 1581 | } |
| 1582 | |
| 1583 | /** |
| 1584 | * @generated |
| 1585 | */ |
| 1586 | public static List getBranchActionBranchTransitionCompartment_7011SemanticChildren( |
| 1587 | View view) { |
| 1588 | if (false == view.eContainer() instanceof View) { |
| 1589 | return Collections.EMPTY_LIST; |
| 1590 | } |
| 1591 | View containerView = (View) view.eContainer(); |
| 1592 | if (!containerView.isSetElement()) { |
| 1593 | return Collections.EMPTY_LIST; |
| 1594 | } |
| 1595 | BranchAction modelElement = (BranchAction) containerView.getElement(); |
| 1596 | List result = new LinkedList(); |
| 1597 | for (Iterator it = modelElement.getBranches_Branch().iterator(); it |
| 1598 | .hasNext();) { |
| 1599 | AbstractBranchTransition childElement = (AbstractBranchTransition) it |
| 1600 | .next(); |
| 1601 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1602 | .getNodeVisualID(view, childElement); |
| 1603 | if (visualID == ProbabilisticBranchTransitionEditPart.VISUAL_ID) { |
| 1604 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1605 | childElement, visualID)); |
| 1606 | continue; |
| 1607 | } |
| 1608 | if (visualID == GuardedBranchTransitionEditPart.VISUAL_ID) { |
| 1609 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1610 | childElement, visualID)); |
| 1611 | continue; |
| 1612 | } |
| 1613 | } |
| 1614 | return result; |
| 1615 | } |
| 1616 | |
| 1617 | /** |
| 1618 | * @generated |
| 1619 | */ |
| 1620 | public static List getInternalActionResourceDemands_7012SemanticChildren( |
| 1621 | View view) { |
| 1622 | if (false == view.eContainer() instanceof View) { |
| 1623 | return Collections.EMPTY_LIST; |
| 1624 | } |
| 1625 | View containerView = (View) view.eContainer(); |
| 1626 | if (!containerView.isSetElement()) { |
| 1627 | return Collections.EMPTY_LIST; |
| 1628 | } |
| 1629 | InternalAction modelElement = (InternalAction) containerView |
| 1630 | .getElement(); |
| 1631 | List result = new LinkedList(); |
| 1632 | for (Iterator it = modelElement.getResourceDemand_Action().iterator(); it |
| 1633 | .hasNext();) { |
| 1634 | de.uka.ipd.sdq.pcm.seff.seff_performance.ParametricResourceDemand childElement = (de.uka.ipd.sdq.pcm.seff.seff_performance.ParametricResourceDemand) it |
| 1635 | .next(); |
| 1636 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1637 | .getNodeVisualID(view, childElement); |
| 1638 | if (visualID == ParametricResourceDemandEditPart.VISUAL_ID) { |
| 1639 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1640 | childElement, visualID)); |
| 1641 | continue; |
| 1642 | } |
| 1643 | } |
| 1644 | return result; |
| 1645 | } |
| 1646 | |
| 1647 | /** |
| 1648 | * @generated |
| 1649 | */ |
| 1650 | public static List getInternalActionFailureOccurrenceDescriptions_7046SemanticChildren( |
| 1651 | View view) { |
| 1652 | if (false == view.eContainer() instanceof View) { |
| 1653 | return Collections.EMPTY_LIST; |
| 1654 | } |
| 1655 | View containerView = (View) view.eContainer(); |
| 1656 | if (!containerView.isSetElement()) { |
| 1657 | return Collections.EMPTY_LIST; |
| 1658 | } |
| 1659 | InternalAction modelElement = (InternalAction) containerView |
| 1660 | .getElement(); |
| 1661 | List result = new LinkedList(); |
| 1662 | for (Iterator it = modelElement |
| 1663 | .getInternalFailureOccurrenceDescriptions__InternalAction() |
| 1664 | .iterator(); it.hasNext();) { |
| 1665 | InternalFailureOccurrenceDescription childElement = (InternalFailureOccurrenceDescription) it |
| 1666 | .next(); |
| 1667 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1668 | .getNodeVisualID(view, childElement); |
| 1669 | if (visualID == InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID) { |
| 1670 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1671 | childElement, visualID)); |
| 1672 | continue; |
| 1673 | } |
| 1674 | } |
| 1675 | return result; |
| 1676 | } |
| 1677 | |
| 1678 | /** |
| 1679 | * @generated |
| 1680 | */ |
| 1681 | public static List getInternalActionInfrastructureCallsCompartment_7051SemanticChildren( |
| 1682 | View view) { |
| 1683 | if (false == view.eContainer() instanceof View) { |
| 1684 | return Collections.EMPTY_LIST; |
| 1685 | } |
| 1686 | View containerView = (View) view.eContainer(); |
| 1687 | if (!containerView.isSetElement()) { |
| 1688 | return Collections.EMPTY_LIST; |
| 1689 | } |
| 1690 | InternalAction modelElement = (InternalAction) containerView |
| 1691 | .getElement(); |
| 1692 | List result = new LinkedList(); |
| 1693 | for (Iterator it = modelElement.getInfrastructureCall__Action() |
| 1694 | .iterator(); it.hasNext();) { |
| 1695 | de.uka.ipd.sdq.pcm.seff.seff_performance.InfrastructureCall childElement = (de.uka.ipd.sdq.pcm.seff.seff_performance.InfrastructureCall) it |
| 1696 | .next(); |
| 1697 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1698 | .getNodeVisualID(view, childElement); |
| 1699 | if (visualID == InfrastructureCallEditPart.VISUAL_ID) { |
| 1700 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1701 | childElement, visualID)); |
| 1702 | continue; |
| 1703 | } |
| 1704 | } |
| 1705 | return result; |
| 1706 | } |
| 1707 | |
| 1708 | /** |
| 1709 | * @generated |
| 1710 | */ |
| 1711 | public static List getSetVariableActionVariableSetter_7016SemanticChildren( |
| 1712 | View view) { |
| 1713 | if (false == view.eContainer() instanceof View) { |
| 1714 | return Collections.EMPTY_LIST; |
| 1715 | } |
| 1716 | View containerView = (View) view.eContainer(); |
| 1717 | if (!containerView.isSetElement()) { |
| 1718 | return Collections.EMPTY_LIST; |
| 1719 | } |
| 1720 | SetVariableAction modelElement = (SetVariableAction) containerView |
| 1721 | .getElement(); |
| 1722 | List result = new LinkedList(); |
| 1723 | for (Iterator it = modelElement |
| 1724 | .getLocalVariableUsages_SetVariableAction().iterator(); it |
| 1725 | .hasNext();) { |
| 1726 | VariableUsage childElement = (VariableUsage) it.next(); |
| 1727 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1728 | .getNodeVisualID(view, childElement); |
| 1729 | if (visualID == VariableUsage3EditPart.VISUAL_ID) { |
| 1730 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1731 | childElement, visualID)); |
| 1732 | continue; |
| 1733 | } |
| 1734 | } |
| 1735 | return result; |
| 1736 | } |
| 1737 | |
| 1738 | /** |
| 1739 | * @generated |
| 1740 | */ |
| 1741 | public static List getForkActionForkedBehaviours_7019SemanticChildren( |
| 1742 | View view) { |
| 1743 | if (false == view.eContainer() instanceof View) { |
| 1744 | return Collections.EMPTY_LIST; |
| 1745 | } |
| 1746 | View containerView = (View) view.eContainer(); |
| 1747 | if (!containerView.isSetElement()) { |
| 1748 | return Collections.EMPTY_LIST; |
| 1749 | } |
| 1750 | ForkAction modelElement = (ForkAction) containerView.getElement(); |
| 1751 | List result = new LinkedList(); |
| 1752 | for (Iterator it = modelElement |
| 1753 | .getAsynchronousForkedBehaviours_ForkAction().iterator(); it |
| 1754 | .hasNext();) { |
| 1755 | ForkedBehaviour childElement = (ForkedBehaviour) it.next(); |
| 1756 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1757 | .getNodeVisualID(view, childElement); |
| 1758 | if (visualID == ForkedBehaviourEditPart.VISUAL_ID) { |
| 1759 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1760 | childElement, visualID)); |
| 1761 | continue; |
| 1762 | } |
| 1763 | } |
| 1764 | { |
| 1765 | SynchronisationPoint childElement = modelElement |
| 1766 | .getSynchronisingBehaviours_ForkAction(); |
| 1767 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1768 | .getNodeVisualID(view, childElement); |
| 1769 | if (visualID == SynchronisationPointEditPart.VISUAL_ID) { |
| 1770 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1771 | childElement, visualID)); |
| 1772 | } |
| 1773 | } |
| 1774 | return result; |
| 1775 | } |
| 1776 | |
| 1777 | /** |
| 1778 | * @generated |
| 1779 | */ |
| 1780 | public static List getRecoveryActionRecoveryBlockCompartment_7056SemanticChildren( |
| 1781 | View view) { |
| 1782 | if (false == view.eContainer() instanceof View) { |
| 1783 | return Collections.EMPTY_LIST; |
| 1784 | } |
| 1785 | View containerView = (View) view.eContainer(); |
| 1786 | if (!containerView.isSetElement()) { |
| 1787 | return Collections.EMPTY_LIST; |
| 1788 | } |
| 1789 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction) containerView |
| 1790 | .getElement(); |
| 1791 | List result = new LinkedList(); |
| 1792 | for (Iterator it = modelElement |
| 1793 | .getRecoveryActionBehaviours__RecoveryAction().iterator(); it |
| 1794 | .hasNext();) { |
| 1795 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour childElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour) it |
| 1796 | .next(); |
| 1797 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1798 | .getNodeVisualID(view, childElement); |
| 1799 | if (visualID == RecoveryActionBehaviourEditPart.VISUAL_ID) { |
| 1800 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1801 | childElement, visualID)); |
| 1802 | continue; |
| 1803 | } |
| 1804 | } |
| 1805 | return result; |
| 1806 | } |
| 1807 | |
| 1808 | /** |
| 1809 | * @generated |
| 1810 | */ |
| 1811 | public static List getResourceDemandingSEFF_1000SemanticChildren(View view) { |
| 1812 | if (!view.isSetElement()) { |
| 1813 | return Collections.EMPTY_LIST; |
| 1814 | } |
| 1815 | ResourceDemandingSEFF modelElement = (ResourceDemandingSEFF) view |
| 1816 | .getElement(); |
| 1817 | List result = new LinkedList(); |
| 1818 | for (Iterator it = modelElement.getSteps_Behaviour().iterator(); it |
| 1819 | .hasNext();) { |
| 1820 | AbstractAction childElement = (AbstractAction) it.next(); |
| 1821 | int visualID = PalladioComponentModelVisualIDRegistry |
| 1822 | .getNodeVisualID(view, childElement); |
| 1823 | if (visualID == StartActionEditPart.VISUAL_ID) { |
| 1824 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1825 | childElement, visualID)); |
| 1826 | continue; |
| 1827 | } |
| 1828 | if (visualID == StopActionEditPart.VISUAL_ID) { |
| 1829 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1830 | childElement, visualID)); |
| 1831 | continue; |
| 1832 | } |
| 1833 | if (visualID == ExternalCallActionEditPart.VISUAL_ID) { |
| 1834 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1835 | childElement, visualID)); |
| 1836 | continue; |
| 1837 | } |
| 1838 | if (visualID == EmitEventActionEditPart.VISUAL_ID) { |
| 1839 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1840 | childElement, visualID)); |
| 1841 | continue; |
| 1842 | } |
| 1843 | if (visualID == LoopActionEditPart.VISUAL_ID) { |
| 1844 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1845 | childElement, visualID)); |
| 1846 | continue; |
| 1847 | } |
| 1848 | if (visualID == BranchActionEditPart.VISUAL_ID) { |
| 1849 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1850 | childElement, visualID)); |
| 1851 | continue; |
| 1852 | } |
| 1853 | if (visualID == InternalActionEditPart.VISUAL_ID) { |
| 1854 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1855 | childElement, visualID)); |
| 1856 | continue; |
| 1857 | } |
| 1858 | if (visualID == CollectionIteratorActionEditPart.VISUAL_ID) { |
| 1859 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1860 | childElement, visualID)); |
| 1861 | continue; |
| 1862 | } |
| 1863 | if (visualID == SetVariableActionEditPart.VISUAL_ID) { |
| 1864 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1865 | childElement, visualID)); |
| 1866 | continue; |
| 1867 | } |
| 1868 | if (visualID == AcquireActionEditPart.VISUAL_ID) { |
| 1869 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1870 | childElement, visualID)); |
| 1871 | continue; |
| 1872 | } |
| 1873 | if (visualID == ReleaseActionEditPart.VISUAL_ID) { |
| 1874 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1875 | childElement, visualID)); |
| 1876 | continue; |
| 1877 | } |
| 1878 | if (visualID == ForkActionEditPart.VISUAL_ID) { |
| 1879 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1880 | childElement, visualID)); |
| 1881 | continue; |
| 1882 | } |
| 1883 | if (visualID == RecoveryActionEditPart.VISUAL_ID) { |
| 1884 | result.add(new PalladioComponentModelNodeDescriptor( |
| 1885 | childElement, visualID)); |
| 1886 | continue; |
| 1887 | } |
| 1888 | } |
| 1889 | return result; |
| 1890 | } |
| 1891 | |
| 1892 | /** |
| 1893 | * @generated |
| 1894 | */ |
| 1895 | public static List getContainedLinks(View view) { |
| 1896 | switch (PalladioComponentModelVisualIDRegistry.getVisualID(view)) { |
| 1897 | case ResourceDemandingSEFFEditPart.VISUAL_ID: |
| 1898 | return getResourceDemandingSEFF_1000ContainedLinks(view); |
| 1899 | case StartActionEditPart.VISUAL_ID: |
| 1900 | return getStartAction_2001ContainedLinks(view); |
| 1901 | case StopActionEditPart.VISUAL_ID: |
| 1902 | return getStopAction_2002ContainedLinks(view); |
| 1903 | case ExternalCallActionEditPart.VISUAL_ID: |
| 1904 | return getExternalCallAction_2003ContainedLinks(view); |
| 1905 | case EmitEventActionEditPart.VISUAL_ID: |
| 1906 | return getEmitEventAction_2013ContainedLinks(view); |
| 1907 | case LoopActionEditPart.VISUAL_ID: |
| 1908 | return getLoopAction_2004ContainedLinks(view); |
| 1909 | case BranchActionEditPart.VISUAL_ID: |
| 1910 | return getBranchAction_2005ContainedLinks(view); |
| 1911 | case InternalActionEditPart.VISUAL_ID: |
| 1912 | return getInternalAction_2006ContainedLinks(view); |
| 1913 | case CollectionIteratorActionEditPart.VISUAL_ID: |
| 1914 | return getCollectionIteratorAction_2007ContainedLinks(view); |
| 1915 | case SetVariableActionEditPart.VISUAL_ID: |
| 1916 | return getSetVariableAction_2008ContainedLinks(view); |
| 1917 | case AcquireActionEditPart.VISUAL_ID: |
| 1918 | return getAcquireAction_2012ContainedLinks(view); |
| 1919 | case ReleaseActionEditPart.VISUAL_ID: |
| 1920 | return getReleaseAction_2010ContainedLinks(view); |
| 1921 | case ForkActionEditPart.VISUAL_ID: |
| 1922 | return getForkAction_2011ContainedLinks(view); |
| 1923 | case RecoveryActionEditPart.VISUAL_ID: |
| 1924 | return getRecoveryAction_2016ContainedLinks(view); |
| 1925 | case VariableUsageEditPart.VISUAL_ID: |
| 1926 | return getVariableUsage_3042ContainedLinks(view); |
| 1927 | case VariableCharacterisationEditPart.VISUAL_ID: |
| 1928 | return getVariableCharacterisation_3033ContainedLinks(view); |
| 1929 | case VariableUsage2EditPart.VISUAL_ID: |
| 1930 | return getVariableUsage_3049ContainedLinks(view); |
| 1931 | case VariableCharacterisation2EditPart.VISUAL_ID: |
| 1932 | return getVariableCharacterisation_3035ContainedLinks(view); |
| 1933 | case VariableUsage4EditPart.VISUAL_ID: |
| 1934 | return getVariableUsage_3047ContainedLinks(view); |
| 1935 | case VariableCharacterisation3EditPart.VISUAL_ID: |
| 1936 | return getVariableCharacterisation_3037ContainedLinks(view); |
| 1937 | case ResourceDemandingBehaviourEditPart.VISUAL_ID: |
| 1938 | return getResourceDemandingBehaviour_3003ContainedLinks(view); |
| 1939 | case StartAction2EditPart.VISUAL_ID: |
| 1940 | return getStartAction_3004ContainedLinks(view); |
| 1941 | case StopAction2EditPart.VISUAL_ID: |
| 1942 | return getStopAction_3005ContainedLinks(view); |
| 1943 | case LoopAction2EditPart.VISUAL_ID: |
| 1944 | return getLoopAction_3006ContainedLinks(view); |
| 1945 | case InternalAction2EditPart.VISUAL_ID: |
| 1946 | return getInternalAction_3007ContainedLinks(view); |
| 1947 | case ParametricResourceDemandEditPart.VISUAL_ID: |
| 1948 | return getParametricResourceDemand_3051ContainedLinks(view); |
| 1949 | case InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID: |
| 1950 | return getInternalFailureOccurrenceDescription_3050ContainedLinks(view); |
| 1951 | case InfrastructureCallEditPart.VISUAL_ID: |
| 1952 | return getInfrastructureCall_3053ContainedLinks(view); |
| 1953 | case VariableUsage5EditPart.VISUAL_ID: |
| 1954 | return getVariableUsage_3054ContainedLinks(view); |
| 1955 | case VariableCharacterisation4EditPart.VISUAL_ID: |
| 1956 | return getVariableCharacterisation_3048ContainedLinks(view); |
| 1957 | case BranchAction2EditPart.VISUAL_ID: |
| 1958 | return getBranchAction_3009ContainedLinks(view); |
| 1959 | case ProbabilisticBranchTransitionEditPart.VISUAL_ID: |
| 1960 | return getProbabilisticBranchTransition_3010ContainedLinks(view); |
| 1961 | case ResourceDemandingBehaviour2EditPart.VISUAL_ID: |
| 1962 | return getResourceDemandingBehaviour_3011ContainedLinks(view); |
| 1963 | case ExternalCallAction2EditPart.VISUAL_ID: |
| 1964 | return getExternalCallAction_3012ContainedLinks(view); |
| 1965 | case EmitEventAction2EditPart.VISUAL_ID: |
| 1966 | return getEmitEventAction_3046ContainedLinks(view); |
| 1967 | case AcquireAction2EditPart.VISUAL_ID: |
| 1968 | return getAcquireAction_3026ContainedLinks(view); |
| 1969 | case ReleaseAction2EditPart.VISUAL_ID: |
| 1970 | return getReleaseAction_3020ContainedLinks(view); |
| 1971 | case ForkAction2EditPart.VISUAL_ID: |
| 1972 | return getForkAction_3023ContainedLinks(view); |
| 1973 | case ForkedBehaviourEditPart.VISUAL_ID: |
| 1974 | return getForkedBehaviour_3027ContainedLinks(view); |
| 1975 | case CollectionIteratorAction2EditPart.VISUAL_ID: |
| 1976 | return getCollectionIteratorAction_3013ContainedLinks(view); |
| 1977 | case ResourceDemandingBehaviour3EditPart.VISUAL_ID: |
| 1978 | return getResourceDemandingBehaviour_3014ContainedLinks(view); |
| 1979 | case RecoveryAction2EditPart.VISUAL_ID: |
| 1980 | return getRecoveryAction_3057ContainedLinks(view); |
| 1981 | case RecoveryActionBehaviourEditPart.VISUAL_ID: |
| 1982 | return getRecoveryActionBehaviour_3058ContainedLinks(view); |
| 1983 | case SetVariableAction2EditPart.VISUAL_ID: |
| 1984 | return getSetVariableAction_3024ContainedLinks(view); |
| 1985 | case VariableUsage3EditPart.VISUAL_ID: |
| 1986 | return getVariableUsage_3036ContainedLinks(view); |
| 1987 | case VariableCharacterisation5EditPart.VISUAL_ID: |
| 1988 | return getVariableCharacterisation_3055ContainedLinks(view); |
| 1989 | case SynchronisationPointEditPart.VISUAL_ID: |
| 1990 | return getSynchronisationPoint_3038ContainedLinks(view); |
| 1991 | case ForkedBehaviour2EditPart.VISUAL_ID: |
| 1992 | return getForkedBehaviour_3039ContainedLinks(view); |
| 1993 | case GuardedBranchTransitionEditPart.VISUAL_ID: |
| 1994 | return getGuardedBranchTransition_3017ContainedLinks(view); |
| 1995 | case ResourceDemandingBehaviour4EditPart.VISUAL_ID: |
| 1996 | return getResourceDemandingBehaviour_3018ContainedLinks(view); |
| 1997 | } |
| 1998 | return Collections.EMPTY_LIST; |
| 1999 | } |
| 2000 | |
| 2001 | /** |
| 2002 | * @generated |
| 2003 | */ |
| 2004 | public static List getIncomingLinks(View view) { |
| 2005 | switch (PalladioComponentModelVisualIDRegistry.getVisualID(view)) { |
| 2006 | case StartActionEditPart.VISUAL_ID: |
| 2007 | return getStartAction_2001IncomingLinks(view); |
| 2008 | case StopActionEditPart.VISUAL_ID: |
| 2009 | return getStopAction_2002IncomingLinks(view); |
| 2010 | case ExternalCallActionEditPart.VISUAL_ID: |
| 2011 | return getExternalCallAction_2003IncomingLinks(view); |
| 2012 | case EmitEventActionEditPart.VISUAL_ID: |
| 2013 | return getEmitEventAction_2013IncomingLinks(view); |
| 2014 | case LoopActionEditPart.VISUAL_ID: |
| 2015 | return getLoopAction_2004IncomingLinks(view); |
| 2016 | case BranchActionEditPart.VISUAL_ID: |
| 2017 | return getBranchAction_2005IncomingLinks(view); |
| 2018 | case InternalActionEditPart.VISUAL_ID: |
| 2019 | return getInternalAction_2006IncomingLinks(view); |
| 2020 | case CollectionIteratorActionEditPart.VISUAL_ID: |
| 2021 | return getCollectionIteratorAction_2007IncomingLinks(view); |
| 2022 | case SetVariableActionEditPart.VISUAL_ID: |
| 2023 | return getSetVariableAction_2008IncomingLinks(view); |
| 2024 | case AcquireActionEditPart.VISUAL_ID: |
| 2025 | return getAcquireAction_2012IncomingLinks(view); |
| 2026 | case ReleaseActionEditPart.VISUAL_ID: |
| 2027 | return getReleaseAction_2010IncomingLinks(view); |
| 2028 | case ForkActionEditPart.VISUAL_ID: |
| 2029 | return getForkAction_2011IncomingLinks(view); |
| 2030 | case RecoveryActionEditPart.VISUAL_ID: |
| 2031 | return getRecoveryAction_2016IncomingLinks(view); |
| 2032 | case VariableUsageEditPart.VISUAL_ID: |
| 2033 | return getVariableUsage_3042IncomingLinks(view); |
| 2034 | case VariableCharacterisationEditPart.VISUAL_ID: |
| 2035 | return getVariableCharacterisation_3033IncomingLinks(view); |
| 2036 | case VariableUsage2EditPart.VISUAL_ID: |
| 2037 | return getVariableUsage_3049IncomingLinks(view); |
| 2038 | case VariableCharacterisation2EditPart.VISUAL_ID: |
| 2039 | return getVariableCharacterisation_3035IncomingLinks(view); |
| 2040 | case VariableUsage4EditPart.VISUAL_ID: |
| 2041 | return getVariableUsage_3047IncomingLinks(view); |
| 2042 | case VariableCharacterisation3EditPart.VISUAL_ID: |
| 2043 | return getVariableCharacterisation_3037IncomingLinks(view); |
| 2044 | case ResourceDemandingBehaviourEditPart.VISUAL_ID: |
| 2045 | return getResourceDemandingBehaviour_3003IncomingLinks(view); |
| 2046 | case StartAction2EditPart.VISUAL_ID: |
| 2047 | return getStartAction_3004IncomingLinks(view); |
| 2048 | case StopAction2EditPart.VISUAL_ID: |
| 2049 | return getStopAction_3005IncomingLinks(view); |
| 2050 | case LoopAction2EditPart.VISUAL_ID: |
| 2051 | return getLoopAction_3006IncomingLinks(view); |
| 2052 | case InternalAction2EditPart.VISUAL_ID: |
| 2053 | return getInternalAction_3007IncomingLinks(view); |
| 2054 | case ParametricResourceDemandEditPart.VISUAL_ID: |
| 2055 | return getParametricResourceDemand_3051IncomingLinks(view); |
| 2056 | case InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID: |
| 2057 | return getInternalFailureOccurrenceDescription_3050IncomingLinks(view); |
| 2058 | case InfrastructureCallEditPart.VISUAL_ID: |
| 2059 | return getInfrastructureCall_3053IncomingLinks(view); |
| 2060 | case VariableUsage5EditPart.VISUAL_ID: |
| 2061 | return getVariableUsage_3054IncomingLinks(view); |
| 2062 | case VariableCharacterisation4EditPart.VISUAL_ID: |
| 2063 | return getVariableCharacterisation_3048IncomingLinks(view); |
| 2064 | case BranchAction2EditPart.VISUAL_ID: |
| 2065 | return getBranchAction_3009IncomingLinks(view); |
| 2066 | case ProbabilisticBranchTransitionEditPart.VISUAL_ID: |
| 2067 | return getProbabilisticBranchTransition_3010IncomingLinks(view); |
| 2068 | case ResourceDemandingBehaviour2EditPart.VISUAL_ID: |
| 2069 | return getResourceDemandingBehaviour_3011IncomingLinks(view); |
| 2070 | case ExternalCallAction2EditPart.VISUAL_ID: |
| 2071 | return getExternalCallAction_3012IncomingLinks(view); |
| 2072 | case EmitEventAction2EditPart.VISUAL_ID: |
| 2073 | return getEmitEventAction_3046IncomingLinks(view); |
| 2074 | case AcquireAction2EditPart.VISUAL_ID: |
| 2075 | return getAcquireAction_3026IncomingLinks(view); |
| 2076 | case ReleaseAction2EditPart.VISUAL_ID: |
| 2077 | return getReleaseAction_3020IncomingLinks(view); |
| 2078 | case ForkAction2EditPart.VISUAL_ID: |
| 2079 | return getForkAction_3023IncomingLinks(view); |
| 2080 | case ForkedBehaviourEditPart.VISUAL_ID: |
| 2081 | return getForkedBehaviour_3027IncomingLinks(view); |
| 2082 | case CollectionIteratorAction2EditPart.VISUAL_ID: |
| 2083 | return getCollectionIteratorAction_3013IncomingLinks(view); |
| 2084 | case ResourceDemandingBehaviour3EditPart.VISUAL_ID: |
| 2085 | return getResourceDemandingBehaviour_3014IncomingLinks(view); |
| 2086 | case RecoveryAction2EditPart.VISUAL_ID: |
| 2087 | return getRecoveryAction_3057IncomingLinks(view); |
| 2088 | case RecoveryActionBehaviourEditPart.VISUAL_ID: |
| 2089 | return getRecoveryActionBehaviour_3058IncomingLinks(view); |
| 2090 | case SetVariableAction2EditPart.VISUAL_ID: |
| 2091 | return getSetVariableAction_3024IncomingLinks(view); |
| 2092 | case VariableUsage3EditPart.VISUAL_ID: |
| 2093 | return getVariableUsage_3036IncomingLinks(view); |
| 2094 | case VariableCharacterisation5EditPart.VISUAL_ID: |
| 2095 | return getVariableCharacterisation_3055IncomingLinks(view); |
| 2096 | case SynchronisationPointEditPart.VISUAL_ID: |
| 2097 | return getSynchronisationPoint_3038IncomingLinks(view); |
| 2098 | case ForkedBehaviour2EditPart.VISUAL_ID: |
| 2099 | return getForkedBehaviour_3039IncomingLinks(view); |
| 2100 | case GuardedBranchTransitionEditPart.VISUAL_ID: |
| 2101 | return getGuardedBranchTransition_3017IncomingLinks(view); |
| 2102 | case ResourceDemandingBehaviour4EditPart.VISUAL_ID: |
| 2103 | return getResourceDemandingBehaviour_3018IncomingLinks(view); |
| 2104 | } |
| 2105 | return Collections.EMPTY_LIST; |
| 2106 | } |
| 2107 | |
| 2108 | /** |
| 2109 | * @generated |
| 2110 | */ |
| 2111 | public static List getOutgoingLinks(View view) { |
| 2112 | switch (PalladioComponentModelVisualIDRegistry.getVisualID(view)) { |
| 2113 | case StartActionEditPart.VISUAL_ID: |
| 2114 | return getStartAction_2001OutgoingLinks(view); |
| 2115 | case StopActionEditPart.VISUAL_ID: |
| 2116 | return getStopAction_2002OutgoingLinks(view); |
| 2117 | case ExternalCallActionEditPart.VISUAL_ID: |
| 2118 | return getExternalCallAction_2003OutgoingLinks(view); |
| 2119 | case EmitEventActionEditPart.VISUAL_ID: |
| 2120 | return getEmitEventAction_2013OutgoingLinks(view); |
| 2121 | case LoopActionEditPart.VISUAL_ID: |
| 2122 | return getLoopAction_2004OutgoingLinks(view); |
| 2123 | case BranchActionEditPart.VISUAL_ID: |
| 2124 | return getBranchAction_2005OutgoingLinks(view); |
| 2125 | case InternalActionEditPart.VISUAL_ID: |
| 2126 | return getInternalAction_2006OutgoingLinks(view); |
| 2127 | case CollectionIteratorActionEditPart.VISUAL_ID: |
| 2128 | return getCollectionIteratorAction_2007OutgoingLinks(view); |
| 2129 | case SetVariableActionEditPart.VISUAL_ID: |
| 2130 | return getSetVariableAction_2008OutgoingLinks(view); |
| 2131 | case AcquireActionEditPart.VISUAL_ID: |
| 2132 | return getAcquireAction_2012OutgoingLinks(view); |
| 2133 | case ReleaseActionEditPart.VISUAL_ID: |
| 2134 | return getReleaseAction_2010OutgoingLinks(view); |
| 2135 | case ForkActionEditPart.VISUAL_ID: |
| 2136 | return getForkAction_2011OutgoingLinks(view); |
| 2137 | case RecoveryActionEditPart.VISUAL_ID: |
| 2138 | return getRecoveryAction_2016OutgoingLinks(view); |
| 2139 | case VariableUsageEditPart.VISUAL_ID: |
| 2140 | return getVariableUsage_3042OutgoingLinks(view); |
| 2141 | case VariableCharacterisationEditPart.VISUAL_ID: |
| 2142 | return getVariableCharacterisation_3033OutgoingLinks(view); |
| 2143 | case VariableUsage2EditPart.VISUAL_ID: |
| 2144 | return getVariableUsage_3049OutgoingLinks(view); |
| 2145 | case VariableCharacterisation2EditPart.VISUAL_ID: |
| 2146 | return getVariableCharacterisation_3035OutgoingLinks(view); |
| 2147 | case VariableUsage4EditPart.VISUAL_ID: |
| 2148 | return getVariableUsage_3047OutgoingLinks(view); |
| 2149 | case VariableCharacterisation3EditPart.VISUAL_ID: |
| 2150 | return getVariableCharacterisation_3037OutgoingLinks(view); |
| 2151 | case ResourceDemandingBehaviourEditPart.VISUAL_ID: |
| 2152 | return getResourceDemandingBehaviour_3003OutgoingLinks(view); |
| 2153 | case StartAction2EditPart.VISUAL_ID: |
| 2154 | return getStartAction_3004OutgoingLinks(view); |
| 2155 | case StopAction2EditPart.VISUAL_ID: |
| 2156 | return getStopAction_3005OutgoingLinks(view); |
| 2157 | case LoopAction2EditPart.VISUAL_ID: |
| 2158 | return getLoopAction_3006OutgoingLinks(view); |
| 2159 | case InternalAction2EditPart.VISUAL_ID: |
| 2160 | return getInternalAction_3007OutgoingLinks(view); |
| 2161 | case ParametricResourceDemandEditPart.VISUAL_ID: |
| 2162 | return getParametricResourceDemand_3051OutgoingLinks(view); |
| 2163 | case InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID: |
| 2164 | return getInternalFailureOccurrenceDescription_3050OutgoingLinks(view); |
| 2165 | case InfrastructureCallEditPart.VISUAL_ID: |
| 2166 | return getInfrastructureCall_3053OutgoingLinks(view); |
| 2167 | case VariableUsage5EditPart.VISUAL_ID: |
| 2168 | return getVariableUsage_3054OutgoingLinks(view); |
| 2169 | case VariableCharacterisation4EditPart.VISUAL_ID: |
| 2170 | return getVariableCharacterisation_3048OutgoingLinks(view); |
| 2171 | case BranchAction2EditPart.VISUAL_ID: |
| 2172 | return getBranchAction_3009OutgoingLinks(view); |
| 2173 | case ProbabilisticBranchTransitionEditPart.VISUAL_ID: |
| 2174 | return getProbabilisticBranchTransition_3010OutgoingLinks(view); |
| 2175 | case ResourceDemandingBehaviour2EditPart.VISUAL_ID: |
| 2176 | return getResourceDemandingBehaviour_3011OutgoingLinks(view); |
| 2177 | case ExternalCallAction2EditPart.VISUAL_ID: |
| 2178 | return getExternalCallAction_3012OutgoingLinks(view); |
| 2179 | case EmitEventAction2EditPart.VISUAL_ID: |
| 2180 | return getEmitEventAction_3046OutgoingLinks(view); |
| 2181 | case AcquireAction2EditPart.VISUAL_ID: |
| 2182 | return getAcquireAction_3026OutgoingLinks(view); |
| 2183 | case ReleaseAction2EditPart.VISUAL_ID: |
| 2184 | return getReleaseAction_3020OutgoingLinks(view); |
| 2185 | case ForkAction2EditPart.VISUAL_ID: |
| 2186 | return getForkAction_3023OutgoingLinks(view); |
| 2187 | case ForkedBehaviourEditPart.VISUAL_ID: |
| 2188 | return getForkedBehaviour_3027OutgoingLinks(view); |
| 2189 | case CollectionIteratorAction2EditPart.VISUAL_ID: |
| 2190 | return getCollectionIteratorAction_3013OutgoingLinks(view); |
| 2191 | case ResourceDemandingBehaviour3EditPart.VISUAL_ID: |
| 2192 | return getResourceDemandingBehaviour_3014OutgoingLinks(view); |
| 2193 | case RecoveryAction2EditPart.VISUAL_ID: |
| 2194 | return getRecoveryAction_3057OutgoingLinks(view); |
| 2195 | case RecoveryActionBehaviourEditPart.VISUAL_ID: |
| 2196 | return getRecoveryActionBehaviour_3058OutgoingLinks(view); |
| 2197 | case SetVariableAction2EditPart.VISUAL_ID: |
| 2198 | return getSetVariableAction_3024OutgoingLinks(view); |
| 2199 | case VariableUsage3EditPart.VISUAL_ID: |
| 2200 | return getVariableUsage_3036OutgoingLinks(view); |
| 2201 | case VariableCharacterisation5EditPart.VISUAL_ID: |
| 2202 | return getVariableCharacterisation_3055OutgoingLinks(view); |
| 2203 | case SynchronisationPointEditPart.VISUAL_ID: |
| 2204 | return getSynchronisationPoint_3038OutgoingLinks(view); |
| 2205 | case ForkedBehaviour2EditPart.VISUAL_ID: |
| 2206 | return getForkedBehaviour_3039OutgoingLinks(view); |
| 2207 | case GuardedBranchTransitionEditPart.VISUAL_ID: |
| 2208 | return getGuardedBranchTransition_3017OutgoingLinks(view); |
| 2209 | case ResourceDemandingBehaviour4EditPart.VISUAL_ID: |
| 2210 | return getResourceDemandingBehaviour_3018OutgoingLinks(view); |
| 2211 | } |
| 2212 | return Collections.EMPTY_LIST; |
| 2213 | } |
| 2214 | |
| 2215 | /** |
| 2216 | * @generated |
| 2217 | */ |
| 2218 | public static List getResourceDemandingSEFF_1000ContainedLinks(View view) { |
| 2219 | return Collections.EMPTY_LIST; |
| 2220 | } |
| 2221 | |
| 2222 | /** |
| 2223 | * @generated |
| 2224 | */ |
| 2225 | public static List getStartAction_2001ContainedLinks(View view) { |
| 2226 | StartAction modelElement = (StartAction) view.getElement(); |
| 2227 | List result = new LinkedList(); |
| 2228 | result |
| 2229 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2230 | return result; |
| 2231 | } |
| 2232 | |
| 2233 | /** |
| 2234 | * @generated |
| 2235 | */ |
| 2236 | public static List getStopAction_2002ContainedLinks(View view) { |
| 2237 | StopAction modelElement = (StopAction) view.getElement(); |
| 2238 | List result = new LinkedList(); |
| 2239 | result |
| 2240 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2241 | return result; |
| 2242 | } |
| 2243 | |
| 2244 | /** |
| 2245 | * @generated |
| 2246 | */ |
| 2247 | public static List getExternalCallAction_2003ContainedLinks(View view) { |
| 2248 | ExternalCallAction modelElement = (ExternalCallAction) view |
| 2249 | .getElement(); |
| 2250 | List result = new LinkedList(); |
| 2251 | result |
| 2252 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2253 | return result; |
| 2254 | } |
| 2255 | |
| 2256 | /** |
| 2257 | * @generated |
| 2258 | */ |
| 2259 | public static List getEmitEventAction_2013ContainedLinks(View view) { |
| 2260 | EmitEventAction modelElement = (EmitEventAction) view.getElement(); |
| 2261 | List result = new LinkedList(); |
| 2262 | result |
| 2263 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2264 | return result; |
| 2265 | } |
| 2266 | |
| 2267 | /** |
| 2268 | * @generated |
| 2269 | */ |
| 2270 | public static List getLoopAction_2004ContainedLinks(View view) { |
| 2271 | LoopAction modelElement = (LoopAction) view.getElement(); |
| 2272 | List result = new LinkedList(); |
| 2273 | result |
| 2274 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2275 | return result; |
| 2276 | } |
| 2277 | |
| 2278 | /** |
| 2279 | * @generated |
| 2280 | */ |
| 2281 | public static List getBranchAction_2005ContainedLinks(View view) { |
| 2282 | BranchAction modelElement = (BranchAction) view.getElement(); |
| 2283 | List result = new LinkedList(); |
| 2284 | result |
| 2285 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2286 | return result; |
| 2287 | } |
| 2288 | |
| 2289 | /** |
| 2290 | * @generated |
| 2291 | */ |
| 2292 | public static List getInternalAction_2006ContainedLinks(View view) { |
| 2293 | InternalAction modelElement = (InternalAction) view.getElement(); |
| 2294 | List result = new LinkedList(); |
| 2295 | result |
| 2296 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2297 | return result; |
| 2298 | } |
| 2299 | |
| 2300 | /** |
| 2301 | * @generated |
| 2302 | */ |
| 2303 | public static List getCollectionIteratorAction_2007ContainedLinks(View view) { |
| 2304 | CollectionIteratorAction modelElement = (CollectionIteratorAction) view |
| 2305 | .getElement(); |
| 2306 | List result = new LinkedList(); |
| 2307 | result |
| 2308 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2309 | return result; |
| 2310 | } |
| 2311 | |
| 2312 | /** |
| 2313 | * @generated |
| 2314 | */ |
| 2315 | public static List getSetVariableAction_2008ContainedLinks(View view) { |
| 2316 | SetVariableAction modelElement = (SetVariableAction) view.getElement(); |
| 2317 | List result = new LinkedList(); |
| 2318 | result |
| 2319 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2320 | return result; |
| 2321 | } |
| 2322 | |
| 2323 | /** |
| 2324 | * @generated |
| 2325 | */ |
| 2326 | public static List getAcquireAction_2012ContainedLinks(View view) { |
| 2327 | AcquireAction modelElement = (AcquireAction) view.getElement(); |
| 2328 | List result = new LinkedList(); |
| 2329 | result |
| 2330 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2331 | return result; |
| 2332 | } |
| 2333 | |
| 2334 | /** |
| 2335 | * @generated |
| 2336 | */ |
| 2337 | public static List getReleaseAction_2010ContainedLinks(View view) { |
| 2338 | ReleaseAction modelElement = (ReleaseAction) view.getElement(); |
| 2339 | List result = new LinkedList(); |
| 2340 | result |
| 2341 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2342 | return result; |
| 2343 | } |
| 2344 | |
| 2345 | /** |
| 2346 | * @generated |
| 2347 | */ |
| 2348 | public static List getForkAction_2011ContainedLinks(View view) { |
| 2349 | ForkAction modelElement = (ForkAction) view.getElement(); |
| 2350 | List result = new LinkedList(); |
| 2351 | result |
| 2352 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2353 | return result; |
| 2354 | } |
| 2355 | |
| 2356 | /** |
| 2357 | * @generated |
| 2358 | */ |
| 2359 | public static List getRecoveryAction_2016ContainedLinks(View view) { |
| 2360 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction) view |
| 2361 | .getElement(); |
| 2362 | List result = new LinkedList(); |
| 2363 | result |
| 2364 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2365 | return result; |
| 2366 | } |
| 2367 | |
| 2368 | /** |
| 2369 | * @generated |
| 2370 | */ |
| 2371 | public static List getVariableUsage_3042ContainedLinks(View view) { |
| 2372 | return Collections.EMPTY_LIST; |
| 2373 | } |
| 2374 | |
| 2375 | /** |
| 2376 | * @generated |
| 2377 | */ |
| 2378 | public static List getVariableCharacterisation_3033ContainedLinks(View view) { |
| 2379 | return Collections.EMPTY_LIST; |
| 2380 | } |
| 2381 | |
| 2382 | /** |
| 2383 | * @generated |
| 2384 | */ |
| 2385 | public static List getVariableUsage_3049ContainedLinks(View view) { |
| 2386 | return Collections.EMPTY_LIST; |
| 2387 | } |
| 2388 | |
| 2389 | /** |
| 2390 | * @generated |
| 2391 | */ |
| 2392 | public static List getVariableCharacterisation_3035ContainedLinks(View view) { |
| 2393 | return Collections.EMPTY_LIST; |
| 2394 | } |
| 2395 | |
| 2396 | /** |
| 2397 | * @generated |
| 2398 | */ |
| 2399 | public static List getVariableUsage_3047ContainedLinks(View view) { |
| 2400 | return Collections.EMPTY_LIST; |
| 2401 | } |
| 2402 | |
| 2403 | /** |
| 2404 | * @generated |
| 2405 | */ |
| 2406 | public static List getResourceDemandingBehaviour_3003ContainedLinks( |
| 2407 | View view) { |
| 2408 | return Collections.EMPTY_LIST; |
| 2409 | } |
| 2410 | |
| 2411 | /** |
| 2412 | * @generated |
| 2413 | */ |
| 2414 | public static List getStartAction_3004ContainedLinks(View view) { |
| 2415 | StartAction modelElement = (StartAction) view.getElement(); |
| 2416 | List result = new LinkedList(); |
| 2417 | result |
| 2418 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2419 | return result; |
| 2420 | } |
| 2421 | |
| 2422 | /** |
| 2423 | * @generated |
| 2424 | */ |
| 2425 | public static List getStopAction_3005ContainedLinks(View view) { |
| 2426 | StopAction modelElement = (StopAction) view.getElement(); |
| 2427 | List result = new LinkedList(); |
| 2428 | result |
| 2429 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2430 | return result; |
| 2431 | } |
| 2432 | |
| 2433 | /** |
| 2434 | * @generated |
| 2435 | */ |
| 2436 | public static List getLoopAction_3006ContainedLinks(View view) { |
| 2437 | LoopAction modelElement = (LoopAction) view.getElement(); |
| 2438 | List result = new LinkedList(); |
| 2439 | result |
| 2440 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2441 | return result; |
| 2442 | } |
| 2443 | |
| 2444 | /** |
| 2445 | * @generated |
| 2446 | */ |
| 2447 | public static List getInternalAction_3007ContainedLinks(View view) { |
| 2448 | InternalAction modelElement = (InternalAction) view.getElement(); |
| 2449 | List result = new LinkedList(); |
| 2450 | result |
| 2451 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2452 | return result; |
| 2453 | } |
| 2454 | |
| 2455 | /** |
| 2456 | * @generated |
| 2457 | */ |
| 2458 | public static List getParametricResourceDemand_3051ContainedLinks(View view) { |
| 2459 | return Collections.EMPTY_LIST; |
| 2460 | } |
| 2461 | |
| 2462 | /** |
| 2463 | * @generated |
| 2464 | */ |
| 2465 | public static List getInternalFailureOccurrenceDescription_3050ContainedLinks( |
| 2466 | View view) { |
| 2467 | return Collections.EMPTY_LIST; |
| 2468 | } |
| 2469 | |
| 2470 | /** |
| 2471 | * @generated |
| 2472 | */ |
| 2473 | public static List getInfrastructureCall_3053ContainedLinks(View view) { |
| 2474 | return Collections.EMPTY_LIST; |
| 2475 | } |
| 2476 | |
| 2477 | /** |
| 2478 | * @generated |
| 2479 | */ |
| 2480 | public static List getVariableUsage_3054ContainedLinks(View view) { |
| 2481 | return Collections.EMPTY_LIST; |
| 2482 | } |
| 2483 | |
| 2484 | /** |
| 2485 | * @generated |
| 2486 | */ |
| 2487 | public static List getBranchAction_3009ContainedLinks(View view) { |
| 2488 | BranchAction modelElement = (BranchAction) view.getElement(); |
| 2489 | List result = new LinkedList(); |
| 2490 | result |
| 2491 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2492 | return result; |
| 2493 | } |
| 2494 | |
| 2495 | /** |
| 2496 | * @generated |
| 2497 | */ |
| 2498 | public static List getProbabilisticBranchTransition_3010ContainedLinks( |
| 2499 | View view) { |
| 2500 | return Collections.EMPTY_LIST; |
| 2501 | } |
| 2502 | |
| 2503 | /** |
| 2504 | * @generated |
| 2505 | */ |
| 2506 | public static List getResourceDemandingBehaviour_3011ContainedLinks( |
| 2507 | View view) { |
| 2508 | return Collections.EMPTY_LIST; |
| 2509 | } |
| 2510 | |
| 2511 | /** |
| 2512 | * @generated |
| 2513 | */ |
| 2514 | public static List getExternalCallAction_3012ContainedLinks(View view) { |
| 2515 | ExternalCallAction modelElement = (ExternalCallAction) view |
| 2516 | .getElement(); |
| 2517 | List result = new LinkedList(); |
| 2518 | result |
| 2519 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2520 | return result; |
| 2521 | } |
| 2522 | |
| 2523 | /** |
| 2524 | * @generated |
| 2525 | */ |
| 2526 | public static List getEmitEventAction_3046ContainedLinks(View view) { |
| 2527 | EmitEventAction modelElement = (EmitEventAction) view.getElement(); |
| 2528 | List result = new LinkedList(); |
| 2529 | result |
| 2530 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2531 | return result; |
| 2532 | } |
| 2533 | |
| 2534 | /** |
| 2535 | * @generated |
| 2536 | */ |
| 2537 | public static List getAcquireAction_3026ContainedLinks(View view) { |
| 2538 | AcquireAction modelElement = (AcquireAction) view.getElement(); |
| 2539 | List result = new LinkedList(); |
| 2540 | result |
| 2541 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2542 | return result; |
| 2543 | } |
| 2544 | |
| 2545 | /** |
| 2546 | * @generated |
| 2547 | */ |
| 2548 | public static List getReleaseAction_3020ContainedLinks(View view) { |
| 2549 | ReleaseAction modelElement = (ReleaseAction) view.getElement(); |
| 2550 | List result = new LinkedList(); |
| 2551 | result |
| 2552 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2553 | return result; |
| 2554 | } |
| 2555 | |
| 2556 | /** |
| 2557 | * @generated |
| 2558 | */ |
| 2559 | public static List getForkAction_3023ContainedLinks(View view) { |
| 2560 | ForkAction modelElement = (ForkAction) view.getElement(); |
| 2561 | List result = new LinkedList(); |
| 2562 | result |
| 2563 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2564 | return result; |
| 2565 | } |
| 2566 | |
| 2567 | /** |
| 2568 | * @generated |
| 2569 | */ |
| 2570 | public static List getForkedBehaviour_3027ContainedLinks(View view) { |
| 2571 | return Collections.EMPTY_LIST; |
| 2572 | } |
| 2573 | |
| 2574 | /** |
| 2575 | * @generated |
| 2576 | */ |
| 2577 | public static List getCollectionIteratorAction_3013ContainedLinks(View view) { |
| 2578 | CollectionIteratorAction modelElement = (CollectionIteratorAction) view |
| 2579 | .getElement(); |
| 2580 | List result = new LinkedList(); |
| 2581 | result |
| 2582 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2583 | return result; |
| 2584 | } |
| 2585 | |
| 2586 | /** |
| 2587 | * @generated |
| 2588 | */ |
| 2589 | public static List getResourceDemandingBehaviour_3014ContainedLinks( |
| 2590 | View view) { |
| 2591 | return Collections.EMPTY_LIST; |
| 2592 | } |
| 2593 | |
| 2594 | /** |
| 2595 | * @generated |
| 2596 | */ |
| 2597 | public static List getRecoveryAction_3057ContainedLinks(View view) { |
| 2598 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction) view |
| 2599 | .getElement(); |
| 2600 | List result = new LinkedList(); |
| 2601 | result |
| 2602 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2603 | return result; |
| 2604 | } |
| 2605 | |
| 2606 | /** |
| 2607 | * @generated |
| 2608 | */ |
| 2609 | public static List getRecoveryActionBehaviour_3058ContainedLinks(View view) { |
| 2610 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour) view |
| 2611 | .getElement(); |
| 2612 | List result = new LinkedList(); |
| 2613 | result |
| 2614 | .addAll(getOutgoingFeatureModelFacetLinks_RecoveryActionBehaviour_FailureHandlingAlternatives__RecoveryActionBehaviour_4004(modelElement)); |
| 2615 | return result; |
| 2616 | } |
| 2617 | |
| 2618 | /** |
| 2619 | * @generated |
| 2620 | */ |
| 2621 | public static List getSynchronisationPoint_3038ContainedLinks(View view) { |
| 2622 | return Collections.EMPTY_LIST; |
| 2623 | } |
| 2624 | |
| 2625 | /** |
| 2626 | * @generated |
| 2627 | */ |
| 2628 | public static List getForkedBehaviour_3039ContainedLinks(View view) { |
| 2629 | return Collections.EMPTY_LIST; |
| 2630 | } |
| 2631 | |
| 2632 | /** |
| 2633 | * @generated |
| 2634 | */ |
| 2635 | public static List getSetVariableAction_3024ContainedLinks(View view) { |
| 2636 | SetVariableAction modelElement = (SetVariableAction) view.getElement(); |
| 2637 | List result = new LinkedList(); |
| 2638 | result |
| 2639 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 2640 | return result; |
| 2641 | } |
| 2642 | |
| 2643 | /** |
| 2644 | * @generated |
| 2645 | */ |
| 2646 | public static List getVariableUsage_3036ContainedLinks(View view) { |
| 2647 | return Collections.EMPTY_LIST; |
| 2648 | } |
| 2649 | |
| 2650 | /** |
| 2651 | * @generated |
| 2652 | */ |
| 2653 | public static List getVariableCharacterisation_3055ContainedLinks(View view) { |
| 2654 | return Collections.EMPTY_LIST; |
| 2655 | } |
| 2656 | |
| 2657 | /** |
| 2658 | * @generated |
| 2659 | */ |
| 2660 | public static List getVariableCharacterisation_3048ContainedLinks(View view) { |
| 2661 | return Collections.EMPTY_LIST; |
| 2662 | } |
| 2663 | |
| 2664 | /** |
| 2665 | * @generated |
| 2666 | */ |
| 2667 | public static List getVariableCharacterisation_3037ContainedLinks(View view) { |
| 2668 | return Collections.EMPTY_LIST; |
| 2669 | } |
| 2670 | |
| 2671 | /** |
| 2672 | * @generated |
| 2673 | */ |
| 2674 | public static List getGuardedBranchTransition_3017ContainedLinks(View view) { |
| 2675 | return Collections.EMPTY_LIST; |
| 2676 | } |
| 2677 | |
| 2678 | /** |
| 2679 | * @generated |
| 2680 | */ |
| 2681 | public static List getResourceDemandingBehaviour_3018ContainedLinks( |
| 2682 | View view) { |
| 2683 | return Collections.EMPTY_LIST; |
| 2684 | } |
| 2685 | |
| 2686 | /** |
| 2687 | * @generated |
| 2688 | */ |
| 2689 | public static List getStartAction_2001IncomingLinks(View view) { |
| 2690 | StartAction modelElement = (StartAction) view.getElement(); |
| 2691 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2692 | .getResourceSet().getResources()); |
| 2693 | List result = new LinkedList(); |
| 2694 | result |
| 2695 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2696 | modelElement, crossReferences)); |
| 2697 | return result; |
| 2698 | } |
| 2699 | |
| 2700 | /** |
| 2701 | * @generated |
| 2702 | */ |
| 2703 | public static List getStopAction_2002IncomingLinks(View view) { |
| 2704 | StopAction modelElement = (StopAction) view.getElement(); |
| 2705 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2706 | .getResourceSet().getResources()); |
| 2707 | List result = new LinkedList(); |
| 2708 | result |
| 2709 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2710 | modelElement, crossReferences)); |
| 2711 | return result; |
| 2712 | } |
| 2713 | |
| 2714 | /** |
| 2715 | * @generated |
| 2716 | */ |
| 2717 | public static List getExternalCallAction_2003IncomingLinks(View view) { |
| 2718 | ExternalCallAction modelElement = (ExternalCallAction) view |
| 2719 | .getElement(); |
| 2720 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2721 | .getResourceSet().getResources()); |
| 2722 | List result = new LinkedList(); |
| 2723 | result |
| 2724 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2725 | modelElement, crossReferences)); |
| 2726 | return result; |
| 2727 | } |
| 2728 | |
| 2729 | /** |
| 2730 | * @generated |
| 2731 | */ |
| 2732 | public static List getEmitEventAction_2013IncomingLinks(View view) { |
| 2733 | EmitEventAction modelElement = (EmitEventAction) view.getElement(); |
| 2734 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2735 | .getResourceSet().getResources()); |
| 2736 | List result = new LinkedList(); |
| 2737 | result |
| 2738 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2739 | modelElement, crossReferences)); |
| 2740 | return result; |
| 2741 | } |
| 2742 | |
| 2743 | /** |
| 2744 | * @generated |
| 2745 | */ |
| 2746 | public static List getLoopAction_2004IncomingLinks(View view) { |
| 2747 | LoopAction modelElement = (LoopAction) view.getElement(); |
| 2748 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2749 | .getResourceSet().getResources()); |
| 2750 | List result = new LinkedList(); |
| 2751 | result |
| 2752 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2753 | modelElement, crossReferences)); |
| 2754 | return result; |
| 2755 | } |
| 2756 | |
| 2757 | /** |
| 2758 | * @generated |
| 2759 | */ |
| 2760 | public static List getBranchAction_2005IncomingLinks(View view) { |
| 2761 | BranchAction modelElement = (BranchAction) view.getElement(); |
| 2762 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2763 | .getResourceSet().getResources()); |
| 2764 | List result = new LinkedList(); |
| 2765 | result |
| 2766 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2767 | modelElement, crossReferences)); |
| 2768 | return result; |
| 2769 | } |
| 2770 | |
| 2771 | /** |
| 2772 | * @generated |
| 2773 | */ |
| 2774 | public static List getInternalAction_2006IncomingLinks(View view) { |
| 2775 | InternalAction modelElement = (InternalAction) view.getElement(); |
| 2776 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2777 | .getResourceSet().getResources()); |
| 2778 | List result = new LinkedList(); |
| 2779 | result |
| 2780 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2781 | modelElement, crossReferences)); |
| 2782 | return result; |
| 2783 | } |
| 2784 | |
| 2785 | /** |
| 2786 | * @generated |
| 2787 | */ |
| 2788 | public static List getCollectionIteratorAction_2007IncomingLinks(View view) { |
| 2789 | CollectionIteratorAction modelElement = (CollectionIteratorAction) view |
| 2790 | .getElement(); |
| 2791 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2792 | .getResourceSet().getResources()); |
| 2793 | List result = new LinkedList(); |
| 2794 | result |
| 2795 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2796 | modelElement, crossReferences)); |
| 2797 | return result; |
| 2798 | } |
| 2799 | |
| 2800 | /** |
| 2801 | * @generated |
| 2802 | */ |
| 2803 | public static List getSetVariableAction_2008IncomingLinks(View view) { |
| 2804 | SetVariableAction modelElement = (SetVariableAction) view.getElement(); |
| 2805 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2806 | .getResourceSet().getResources()); |
| 2807 | List result = new LinkedList(); |
| 2808 | result |
| 2809 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2810 | modelElement, crossReferences)); |
| 2811 | return result; |
| 2812 | } |
| 2813 | |
| 2814 | /** |
| 2815 | * @generated |
| 2816 | */ |
| 2817 | public static List getAcquireAction_2012IncomingLinks(View view) { |
| 2818 | AcquireAction modelElement = (AcquireAction) view.getElement(); |
| 2819 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2820 | .getResourceSet().getResources()); |
| 2821 | List result = new LinkedList(); |
| 2822 | result |
| 2823 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2824 | modelElement, crossReferences)); |
| 2825 | return result; |
| 2826 | } |
| 2827 | |
| 2828 | /** |
| 2829 | * @generated |
| 2830 | */ |
| 2831 | public static List getReleaseAction_2010IncomingLinks(View view) { |
| 2832 | ReleaseAction modelElement = (ReleaseAction) view.getElement(); |
| 2833 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2834 | .getResourceSet().getResources()); |
| 2835 | List result = new LinkedList(); |
| 2836 | result |
| 2837 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2838 | modelElement, crossReferences)); |
| 2839 | return result; |
| 2840 | } |
| 2841 | |
| 2842 | /** |
| 2843 | * @generated |
| 2844 | */ |
| 2845 | public static List getForkAction_2011IncomingLinks(View view) { |
| 2846 | ForkAction modelElement = (ForkAction) view.getElement(); |
| 2847 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2848 | .getResourceSet().getResources()); |
| 2849 | List result = new LinkedList(); |
| 2850 | result |
| 2851 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2852 | modelElement, crossReferences)); |
| 2853 | return result; |
| 2854 | } |
| 2855 | |
| 2856 | /** |
| 2857 | * @generated |
| 2858 | */ |
| 2859 | public static List getRecoveryAction_2016IncomingLinks(View view) { |
| 2860 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction) view |
| 2861 | .getElement(); |
| 2862 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2863 | .getResourceSet().getResources()); |
| 2864 | List result = new LinkedList(); |
| 2865 | result |
| 2866 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2867 | modelElement, crossReferences)); |
| 2868 | return result; |
| 2869 | } |
| 2870 | |
| 2871 | /** |
| 2872 | * @generated |
| 2873 | */ |
| 2874 | public static List getVariableUsage_3042IncomingLinks(View view) { |
| 2875 | return Collections.EMPTY_LIST; |
| 2876 | } |
| 2877 | |
| 2878 | /** |
| 2879 | * @generated |
| 2880 | */ |
| 2881 | public static List getVariableCharacterisation_3033IncomingLinks(View view) { |
| 2882 | return Collections.EMPTY_LIST; |
| 2883 | } |
| 2884 | |
| 2885 | /** |
| 2886 | * @generated |
| 2887 | */ |
| 2888 | public static List getVariableUsage_3049IncomingLinks(View view) { |
| 2889 | return Collections.EMPTY_LIST; |
| 2890 | } |
| 2891 | |
| 2892 | /** |
| 2893 | * @generated |
| 2894 | */ |
| 2895 | public static List getVariableCharacterisation_3035IncomingLinks(View view) { |
| 2896 | return Collections.EMPTY_LIST; |
| 2897 | } |
| 2898 | |
| 2899 | /** |
| 2900 | * @generated |
| 2901 | */ |
| 2902 | public static List getVariableUsage_3047IncomingLinks(View view) { |
| 2903 | return Collections.EMPTY_LIST; |
| 2904 | } |
| 2905 | |
| 2906 | /** |
| 2907 | * @generated |
| 2908 | */ |
| 2909 | public static List getResourceDemandingBehaviour_3003IncomingLinks(View view) { |
| 2910 | return Collections.EMPTY_LIST; |
| 2911 | } |
| 2912 | |
| 2913 | /** |
| 2914 | * @generated |
| 2915 | */ |
| 2916 | public static List getStartAction_3004IncomingLinks(View view) { |
| 2917 | StartAction modelElement = (StartAction) view.getElement(); |
| 2918 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2919 | .getResourceSet().getResources()); |
| 2920 | List result = new LinkedList(); |
| 2921 | result |
| 2922 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2923 | modelElement, crossReferences)); |
| 2924 | return result; |
| 2925 | } |
| 2926 | |
| 2927 | /** |
| 2928 | * @generated |
| 2929 | */ |
| 2930 | public static List getStopAction_3005IncomingLinks(View view) { |
| 2931 | StopAction modelElement = (StopAction) view.getElement(); |
| 2932 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2933 | .getResourceSet().getResources()); |
| 2934 | List result = new LinkedList(); |
| 2935 | result |
| 2936 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2937 | modelElement, crossReferences)); |
| 2938 | return result; |
| 2939 | } |
| 2940 | |
| 2941 | /** |
| 2942 | * @generated |
| 2943 | */ |
| 2944 | public static List getLoopAction_3006IncomingLinks(View view) { |
| 2945 | LoopAction modelElement = (LoopAction) view.getElement(); |
| 2946 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2947 | .getResourceSet().getResources()); |
| 2948 | List result = new LinkedList(); |
| 2949 | result |
| 2950 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2951 | modelElement, crossReferences)); |
| 2952 | return result; |
| 2953 | } |
| 2954 | |
| 2955 | /** |
| 2956 | * @generated |
| 2957 | */ |
| 2958 | public static List getInternalAction_3007IncomingLinks(View view) { |
| 2959 | InternalAction modelElement = (InternalAction) view.getElement(); |
| 2960 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 2961 | .getResourceSet().getResources()); |
| 2962 | List result = new LinkedList(); |
| 2963 | result |
| 2964 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 2965 | modelElement, crossReferences)); |
| 2966 | return result; |
| 2967 | } |
| 2968 | |
| 2969 | /** |
| 2970 | * @generated |
| 2971 | */ |
| 2972 | public static List getParametricResourceDemand_3051IncomingLinks(View view) { |
| 2973 | return Collections.EMPTY_LIST; |
| 2974 | } |
| 2975 | |
| 2976 | /** |
| 2977 | * @generated |
| 2978 | */ |
| 2979 | public static List getInternalFailureOccurrenceDescription_3050IncomingLinks( |
| 2980 | View view) { |
| 2981 | return Collections.EMPTY_LIST; |
| 2982 | } |
| 2983 | |
| 2984 | /** |
| 2985 | * @generated |
| 2986 | */ |
| 2987 | public static List getInfrastructureCall_3053IncomingLinks(View view) { |
| 2988 | return Collections.EMPTY_LIST; |
| 2989 | } |
| 2990 | |
| 2991 | /** |
| 2992 | * @generated |
| 2993 | */ |
| 2994 | public static List getVariableUsage_3054IncomingLinks(View view) { |
| 2995 | return Collections.EMPTY_LIST; |
| 2996 | } |
| 2997 | |
| 2998 | /** |
| 2999 | * @generated |
| 3000 | */ |
| 3001 | public static List getBranchAction_3009IncomingLinks(View view) { |
| 3002 | BranchAction modelElement = (BranchAction) view.getElement(); |
| 3003 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3004 | .getResourceSet().getResources()); |
| 3005 | List result = new LinkedList(); |
| 3006 | result |
| 3007 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3008 | modelElement, crossReferences)); |
| 3009 | return result; |
| 3010 | } |
| 3011 | |
| 3012 | /** |
| 3013 | * @generated |
| 3014 | */ |
| 3015 | public static List getProbabilisticBranchTransition_3010IncomingLinks( |
| 3016 | View view) { |
| 3017 | return Collections.EMPTY_LIST; |
| 3018 | } |
| 3019 | |
| 3020 | /** |
| 3021 | * @generated |
| 3022 | */ |
| 3023 | public static List getResourceDemandingBehaviour_3011IncomingLinks(View view) { |
| 3024 | return Collections.EMPTY_LIST; |
| 3025 | } |
| 3026 | |
| 3027 | /** |
| 3028 | * @generated |
| 3029 | */ |
| 3030 | public static List getExternalCallAction_3012IncomingLinks(View view) { |
| 3031 | ExternalCallAction modelElement = (ExternalCallAction) view |
| 3032 | .getElement(); |
| 3033 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3034 | .getResourceSet().getResources()); |
| 3035 | List result = new LinkedList(); |
| 3036 | result |
| 3037 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3038 | modelElement, crossReferences)); |
| 3039 | return result; |
| 3040 | } |
| 3041 | |
| 3042 | /** |
| 3043 | * @generated |
| 3044 | */ |
| 3045 | public static List getEmitEventAction_3046IncomingLinks(View view) { |
| 3046 | EmitEventAction modelElement = (EmitEventAction) view.getElement(); |
| 3047 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3048 | .getResourceSet().getResources()); |
| 3049 | List result = new LinkedList(); |
| 3050 | result |
| 3051 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3052 | modelElement, crossReferences)); |
| 3053 | return result; |
| 3054 | } |
| 3055 | |
| 3056 | /** |
| 3057 | * @generated |
| 3058 | */ |
| 3059 | public static List getAcquireAction_3026IncomingLinks(View view) { |
| 3060 | AcquireAction modelElement = (AcquireAction) view.getElement(); |
| 3061 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3062 | .getResourceSet().getResources()); |
| 3063 | List result = new LinkedList(); |
| 3064 | result |
| 3065 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3066 | modelElement, crossReferences)); |
| 3067 | return result; |
| 3068 | } |
| 3069 | |
| 3070 | /** |
| 3071 | * @generated |
| 3072 | */ |
| 3073 | public static List getReleaseAction_3020IncomingLinks(View view) { |
| 3074 | ReleaseAction modelElement = (ReleaseAction) view.getElement(); |
| 3075 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3076 | .getResourceSet().getResources()); |
| 3077 | List result = new LinkedList(); |
| 3078 | result |
| 3079 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3080 | modelElement, crossReferences)); |
| 3081 | return result; |
| 3082 | } |
| 3083 | |
| 3084 | /** |
| 3085 | * @generated |
| 3086 | */ |
| 3087 | public static List getForkAction_3023IncomingLinks(View view) { |
| 3088 | ForkAction modelElement = (ForkAction) view.getElement(); |
| 3089 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3090 | .getResourceSet().getResources()); |
| 3091 | List result = new LinkedList(); |
| 3092 | result |
| 3093 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3094 | modelElement, crossReferences)); |
| 3095 | return result; |
| 3096 | } |
| 3097 | |
| 3098 | /** |
| 3099 | * @generated |
| 3100 | */ |
| 3101 | public static List getForkedBehaviour_3027IncomingLinks(View view) { |
| 3102 | return Collections.EMPTY_LIST; |
| 3103 | } |
| 3104 | |
| 3105 | /** |
| 3106 | * @generated |
| 3107 | */ |
| 3108 | public static List getCollectionIteratorAction_3013IncomingLinks(View view) { |
| 3109 | CollectionIteratorAction modelElement = (CollectionIteratorAction) view |
| 3110 | .getElement(); |
| 3111 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3112 | .getResourceSet().getResources()); |
| 3113 | List result = new LinkedList(); |
| 3114 | result |
| 3115 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3116 | modelElement, crossReferences)); |
| 3117 | return result; |
| 3118 | } |
| 3119 | |
| 3120 | /** |
| 3121 | * @generated |
| 3122 | */ |
| 3123 | public static List getResourceDemandingBehaviour_3014IncomingLinks(View view) { |
| 3124 | return Collections.EMPTY_LIST; |
| 3125 | } |
| 3126 | |
| 3127 | /** |
| 3128 | * @generated |
| 3129 | */ |
| 3130 | public static List getRecoveryAction_3057IncomingLinks(View view) { |
| 3131 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction) view |
| 3132 | .getElement(); |
| 3133 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3134 | .getResourceSet().getResources()); |
| 3135 | List result = new LinkedList(); |
| 3136 | result |
| 3137 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3138 | modelElement, crossReferences)); |
| 3139 | return result; |
| 3140 | } |
| 3141 | |
| 3142 | /** |
| 3143 | * @generated |
| 3144 | */ |
| 3145 | public static List getRecoveryActionBehaviour_3058IncomingLinks(View view) { |
| 3146 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour) view |
| 3147 | .getElement(); |
| 3148 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3149 | .getResourceSet().getResources()); |
| 3150 | List result = new LinkedList(); |
| 3151 | result |
| 3152 | .addAll(getIncomingFeatureModelFacetLinks_RecoveryActionBehaviour_FailureHandlingAlternatives__RecoveryActionBehaviour_4004( |
| 3153 | modelElement, crossReferences)); |
| 3154 | return result; |
| 3155 | } |
| 3156 | |
| 3157 | /** |
| 3158 | * @generated |
| 3159 | */ |
| 3160 | public static List getSynchronisationPoint_3038IncomingLinks(View view) { |
| 3161 | return Collections.EMPTY_LIST; |
| 3162 | } |
| 3163 | |
| 3164 | /** |
| 3165 | * @generated |
| 3166 | */ |
| 3167 | public static List getForkedBehaviour_3039IncomingLinks(View view) { |
| 3168 | return Collections.EMPTY_LIST; |
| 3169 | } |
| 3170 | |
| 3171 | /** |
| 3172 | * @generated |
| 3173 | */ |
| 3174 | public static List getSetVariableAction_3024IncomingLinks(View view) { |
| 3175 | SetVariableAction modelElement = (SetVariableAction) view.getElement(); |
| 3176 | Map crossReferences = EcoreUtil.CrossReferencer.find(view.eResource() |
| 3177 | .getResourceSet().getResources()); |
| 3178 | List result = new LinkedList(); |
| 3179 | result |
| 3180 | .addAll(getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3181 | modelElement, crossReferences)); |
| 3182 | return result; |
| 3183 | } |
| 3184 | |
| 3185 | /** |
| 3186 | * @generated |
| 3187 | */ |
| 3188 | public static List getVariableUsage_3036IncomingLinks(View view) { |
| 3189 | return Collections.EMPTY_LIST; |
| 3190 | } |
| 3191 | |
| 3192 | /** |
| 3193 | * @generated |
| 3194 | */ |
| 3195 | public static List getVariableCharacterisation_3055IncomingLinks(View view) { |
| 3196 | return Collections.EMPTY_LIST; |
| 3197 | } |
| 3198 | |
| 3199 | /** |
| 3200 | * @generated |
| 3201 | */ |
| 3202 | public static List getVariableCharacterisation_3048IncomingLinks(View view) { |
| 3203 | return Collections.EMPTY_LIST; |
| 3204 | } |
| 3205 | |
| 3206 | /** |
| 3207 | * @generated |
| 3208 | */ |
| 3209 | public static List getVariableCharacterisation_3037IncomingLinks(View view) { |
| 3210 | return Collections.EMPTY_LIST; |
| 3211 | } |
| 3212 | |
| 3213 | /** |
| 3214 | * @generated |
| 3215 | */ |
| 3216 | public static List getGuardedBranchTransition_3017IncomingLinks(View view) { |
| 3217 | return Collections.EMPTY_LIST; |
| 3218 | } |
| 3219 | |
| 3220 | /** |
| 3221 | * @generated |
| 3222 | */ |
| 3223 | public static List getResourceDemandingBehaviour_3018IncomingLinks(View view) { |
| 3224 | return Collections.EMPTY_LIST; |
| 3225 | } |
| 3226 | |
| 3227 | /** |
| 3228 | * @generated |
| 3229 | */ |
| 3230 | public static List getStartAction_2001OutgoingLinks(View view) { |
| 3231 | StartAction modelElement = (StartAction) view.getElement(); |
| 3232 | List result = new LinkedList(); |
| 3233 | result |
| 3234 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3235 | return result; |
| 3236 | } |
| 3237 | |
| 3238 | /** |
| 3239 | * @generated |
| 3240 | */ |
| 3241 | public static List getStopAction_2002OutgoingLinks(View view) { |
| 3242 | StopAction modelElement = (StopAction) view.getElement(); |
| 3243 | List result = new LinkedList(); |
| 3244 | result |
| 3245 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3246 | return result; |
| 3247 | } |
| 3248 | |
| 3249 | /** |
| 3250 | * @generated |
| 3251 | */ |
| 3252 | public static List getExternalCallAction_2003OutgoingLinks(View view) { |
| 3253 | ExternalCallAction modelElement = (ExternalCallAction) view |
| 3254 | .getElement(); |
| 3255 | List result = new LinkedList(); |
| 3256 | result |
| 3257 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3258 | return result; |
| 3259 | } |
| 3260 | |
| 3261 | /** |
| 3262 | * @generated |
| 3263 | */ |
| 3264 | public static List getEmitEventAction_2013OutgoingLinks(View view) { |
| 3265 | EmitEventAction modelElement = (EmitEventAction) view.getElement(); |
| 3266 | List result = new LinkedList(); |
| 3267 | result |
| 3268 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3269 | return result; |
| 3270 | } |
| 3271 | |
| 3272 | /** |
| 3273 | * @generated |
| 3274 | */ |
| 3275 | public static List getLoopAction_2004OutgoingLinks(View view) { |
| 3276 | LoopAction modelElement = (LoopAction) view.getElement(); |
| 3277 | List result = new LinkedList(); |
| 3278 | result |
| 3279 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3280 | return result; |
| 3281 | } |
| 3282 | |
| 3283 | /** |
| 3284 | * @generated |
| 3285 | */ |
| 3286 | public static List getBranchAction_2005OutgoingLinks(View view) { |
| 3287 | BranchAction modelElement = (BranchAction) view.getElement(); |
| 3288 | List result = new LinkedList(); |
| 3289 | result |
| 3290 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3291 | return result; |
| 3292 | } |
| 3293 | |
| 3294 | /** |
| 3295 | * @generated |
| 3296 | */ |
| 3297 | public static List getInternalAction_2006OutgoingLinks(View view) { |
| 3298 | InternalAction modelElement = (InternalAction) view.getElement(); |
| 3299 | List result = new LinkedList(); |
| 3300 | result |
| 3301 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3302 | return result; |
| 3303 | } |
| 3304 | |
| 3305 | /** |
| 3306 | * @generated |
| 3307 | */ |
| 3308 | public static List getCollectionIteratorAction_2007OutgoingLinks(View view) { |
| 3309 | CollectionIteratorAction modelElement = (CollectionIteratorAction) view |
| 3310 | .getElement(); |
| 3311 | List result = new LinkedList(); |
| 3312 | result |
| 3313 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3314 | return result; |
| 3315 | } |
| 3316 | |
| 3317 | /** |
| 3318 | * @generated |
| 3319 | */ |
| 3320 | public static List getSetVariableAction_2008OutgoingLinks(View view) { |
| 3321 | SetVariableAction modelElement = (SetVariableAction) view.getElement(); |
| 3322 | List result = new LinkedList(); |
| 3323 | result |
| 3324 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3325 | return result; |
| 3326 | } |
| 3327 | |
| 3328 | /** |
| 3329 | * @generated |
| 3330 | */ |
| 3331 | public static List getAcquireAction_2012OutgoingLinks(View view) { |
| 3332 | AcquireAction modelElement = (AcquireAction) view.getElement(); |
| 3333 | List result = new LinkedList(); |
| 3334 | result |
| 3335 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3336 | return result; |
| 3337 | } |
| 3338 | |
| 3339 | /** |
| 3340 | * @generated |
| 3341 | */ |
| 3342 | public static List getReleaseAction_2010OutgoingLinks(View view) { |
| 3343 | ReleaseAction modelElement = (ReleaseAction) view.getElement(); |
| 3344 | List result = new LinkedList(); |
| 3345 | result |
| 3346 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3347 | return result; |
| 3348 | } |
| 3349 | |
| 3350 | /** |
| 3351 | * @generated |
| 3352 | */ |
| 3353 | public static List getForkAction_2011OutgoingLinks(View view) { |
| 3354 | ForkAction modelElement = (ForkAction) view.getElement(); |
| 3355 | List result = new LinkedList(); |
| 3356 | result |
| 3357 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3358 | return result; |
| 3359 | } |
| 3360 | |
| 3361 | /** |
| 3362 | * @generated |
| 3363 | */ |
| 3364 | public static List getRecoveryAction_2016OutgoingLinks(View view) { |
| 3365 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction) view |
| 3366 | .getElement(); |
| 3367 | List result = new LinkedList(); |
| 3368 | result |
| 3369 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3370 | return result; |
| 3371 | } |
| 3372 | |
| 3373 | /** |
| 3374 | * @generated |
| 3375 | */ |
| 3376 | public static List getVariableUsage_3042OutgoingLinks(View view) { |
| 3377 | return Collections.EMPTY_LIST; |
| 3378 | } |
| 3379 | |
| 3380 | /** |
| 3381 | * @generated |
| 3382 | */ |
| 3383 | public static List getVariableCharacterisation_3033OutgoingLinks(View view) { |
| 3384 | return Collections.EMPTY_LIST; |
| 3385 | } |
| 3386 | |
| 3387 | /** |
| 3388 | * @generated |
| 3389 | */ |
| 3390 | public static List getVariableUsage_3049OutgoingLinks(View view) { |
| 3391 | return Collections.EMPTY_LIST; |
| 3392 | } |
| 3393 | |
| 3394 | /** |
| 3395 | * @generated |
| 3396 | */ |
| 3397 | public static List getVariableCharacterisation_3035OutgoingLinks(View view) { |
| 3398 | return Collections.EMPTY_LIST; |
| 3399 | } |
| 3400 | |
| 3401 | /** |
| 3402 | * @generated |
| 3403 | */ |
| 3404 | public static List getVariableUsage_3047OutgoingLinks(View view) { |
| 3405 | return Collections.EMPTY_LIST; |
| 3406 | } |
| 3407 | |
| 3408 | /** |
| 3409 | * @generated |
| 3410 | */ |
| 3411 | public static List getResourceDemandingBehaviour_3003OutgoingLinks(View view) { |
| 3412 | return Collections.EMPTY_LIST; |
| 3413 | } |
| 3414 | |
| 3415 | /** |
| 3416 | * @generated |
| 3417 | */ |
| 3418 | public static List getStartAction_3004OutgoingLinks(View view) { |
| 3419 | StartAction modelElement = (StartAction) view.getElement(); |
| 3420 | List result = new LinkedList(); |
| 3421 | result |
| 3422 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3423 | return result; |
| 3424 | } |
| 3425 | |
| 3426 | /** |
| 3427 | * @generated |
| 3428 | */ |
| 3429 | public static List getStopAction_3005OutgoingLinks(View view) { |
| 3430 | StopAction modelElement = (StopAction) view.getElement(); |
| 3431 | List result = new LinkedList(); |
| 3432 | result |
| 3433 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3434 | return result; |
| 3435 | } |
| 3436 | |
| 3437 | /** |
| 3438 | * @generated |
| 3439 | */ |
| 3440 | public static List getLoopAction_3006OutgoingLinks(View view) { |
| 3441 | LoopAction modelElement = (LoopAction) view.getElement(); |
| 3442 | List result = new LinkedList(); |
| 3443 | result |
| 3444 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3445 | return result; |
| 3446 | } |
| 3447 | |
| 3448 | /** |
| 3449 | * @generated |
| 3450 | */ |
| 3451 | public static List getInternalAction_3007OutgoingLinks(View view) { |
| 3452 | InternalAction modelElement = (InternalAction) view.getElement(); |
| 3453 | List result = new LinkedList(); |
| 3454 | result |
| 3455 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3456 | return result; |
| 3457 | } |
| 3458 | |
| 3459 | /** |
| 3460 | * @generated |
| 3461 | */ |
| 3462 | public static List getParametricResourceDemand_3051OutgoingLinks(View view) { |
| 3463 | return Collections.EMPTY_LIST; |
| 3464 | } |
| 3465 | |
| 3466 | /** |
| 3467 | * @generated |
| 3468 | */ |
| 3469 | public static List getInternalFailureOccurrenceDescription_3050OutgoingLinks( |
| 3470 | View view) { |
| 3471 | return Collections.EMPTY_LIST; |
| 3472 | } |
| 3473 | |
| 3474 | /** |
| 3475 | * @generated |
| 3476 | */ |
| 3477 | public static List getInfrastructureCall_3053OutgoingLinks(View view) { |
| 3478 | return Collections.EMPTY_LIST; |
| 3479 | } |
| 3480 | |
| 3481 | /** |
| 3482 | * @generated |
| 3483 | */ |
| 3484 | public static List getVariableUsage_3054OutgoingLinks(View view) { |
| 3485 | return Collections.EMPTY_LIST; |
| 3486 | } |
| 3487 | |
| 3488 | /** |
| 3489 | * @generated |
| 3490 | */ |
| 3491 | public static List getBranchAction_3009OutgoingLinks(View view) { |
| 3492 | BranchAction modelElement = (BranchAction) view.getElement(); |
| 3493 | List result = new LinkedList(); |
| 3494 | result |
| 3495 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3496 | return result; |
| 3497 | } |
| 3498 | |
| 3499 | /** |
| 3500 | * @generated |
| 3501 | */ |
| 3502 | public static List getProbabilisticBranchTransition_3010OutgoingLinks( |
| 3503 | View view) { |
| 3504 | return Collections.EMPTY_LIST; |
| 3505 | } |
| 3506 | |
| 3507 | /** |
| 3508 | * @generated |
| 3509 | */ |
| 3510 | public static List getResourceDemandingBehaviour_3011OutgoingLinks(View view) { |
| 3511 | return Collections.EMPTY_LIST; |
| 3512 | } |
| 3513 | |
| 3514 | /** |
| 3515 | * @generated |
| 3516 | */ |
| 3517 | public static List getExternalCallAction_3012OutgoingLinks(View view) { |
| 3518 | ExternalCallAction modelElement = (ExternalCallAction) view |
| 3519 | .getElement(); |
| 3520 | List result = new LinkedList(); |
| 3521 | result |
| 3522 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3523 | return result; |
| 3524 | } |
| 3525 | |
| 3526 | /** |
| 3527 | * @generated |
| 3528 | */ |
| 3529 | public static List getEmitEventAction_3046OutgoingLinks(View view) { |
| 3530 | EmitEventAction modelElement = (EmitEventAction) view.getElement(); |
| 3531 | List result = new LinkedList(); |
| 3532 | result |
| 3533 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3534 | return result; |
| 3535 | } |
| 3536 | |
| 3537 | /** |
| 3538 | * @generated |
| 3539 | */ |
| 3540 | public static List getAcquireAction_3026OutgoingLinks(View view) { |
| 3541 | AcquireAction modelElement = (AcquireAction) view.getElement(); |
| 3542 | List result = new LinkedList(); |
| 3543 | result |
| 3544 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3545 | return result; |
| 3546 | } |
| 3547 | |
| 3548 | /** |
| 3549 | * @generated |
| 3550 | */ |
| 3551 | public static List getReleaseAction_3020OutgoingLinks(View view) { |
| 3552 | ReleaseAction modelElement = (ReleaseAction) view.getElement(); |
| 3553 | List result = new LinkedList(); |
| 3554 | result |
| 3555 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3556 | return result; |
| 3557 | } |
| 3558 | |
| 3559 | /** |
| 3560 | * @generated |
| 3561 | */ |
| 3562 | public static List getForkAction_3023OutgoingLinks(View view) { |
| 3563 | ForkAction modelElement = (ForkAction) view.getElement(); |
| 3564 | List result = new LinkedList(); |
| 3565 | result |
| 3566 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3567 | return result; |
| 3568 | } |
| 3569 | |
| 3570 | /** |
| 3571 | * @generated |
| 3572 | */ |
| 3573 | public static List getForkedBehaviour_3027OutgoingLinks(View view) { |
| 3574 | return Collections.EMPTY_LIST; |
| 3575 | } |
| 3576 | |
| 3577 | /** |
| 3578 | * @generated |
| 3579 | */ |
| 3580 | public static List getCollectionIteratorAction_3013OutgoingLinks(View view) { |
| 3581 | CollectionIteratorAction modelElement = (CollectionIteratorAction) view |
| 3582 | .getElement(); |
| 3583 | List result = new LinkedList(); |
| 3584 | result |
| 3585 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3586 | return result; |
| 3587 | } |
| 3588 | |
| 3589 | /** |
| 3590 | * @generated |
| 3591 | */ |
| 3592 | public static List getResourceDemandingBehaviour_3014OutgoingLinks(View view) { |
| 3593 | return Collections.EMPTY_LIST; |
| 3594 | } |
| 3595 | |
| 3596 | /** |
| 3597 | * @generated |
| 3598 | */ |
| 3599 | public static List getRecoveryAction_3057OutgoingLinks(View view) { |
| 3600 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction) view |
| 3601 | .getElement(); |
| 3602 | List result = new LinkedList(); |
| 3603 | result |
| 3604 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3605 | return result; |
| 3606 | } |
| 3607 | |
| 3608 | /** |
| 3609 | * @generated |
| 3610 | */ |
| 3611 | public static List getRecoveryActionBehaviour_3058OutgoingLinks(View view) { |
| 3612 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour modelElement = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour) view |
| 3613 | .getElement(); |
| 3614 | List result = new LinkedList(); |
| 3615 | result |
| 3616 | .addAll(getOutgoingFeatureModelFacetLinks_RecoveryActionBehaviour_FailureHandlingAlternatives__RecoveryActionBehaviour_4004(modelElement)); |
| 3617 | return result; |
| 3618 | } |
| 3619 | |
| 3620 | /** |
| 3621 | * @generated |
| 3622 | */ |
| 3623 | public static List getSynchronisationPoint_3038OutgoingLinks(View view) { |
| 3624 | return Collections.EMPTY_LIST; |
| 3625 | } |
| 3626 | |
| 3627 | /** |
| 3628 | * @generated |
| 3629 | */ |
| 3630 | public static List getForkedBehaviour_3039OutgoingLinks(View view) { |
| 3631 | return Collections.EMPTY_LIST; |
| 3632 | } |
| 3633 | |
| 3634 | /** |
| 3635 | * @generated |
| 3636 | */ |
| 3637 | public static List getSetVariableAction_3024OutgoingLinks(View view) { |
| 3638 | SetVariableAction modelElement = (SetVariableAction) view.getElement(); |
| 3639 | List result = new LinkedList(); |
| 3640 | result |
| 3641 | .addAll(getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001(modelElement)); |
| 3642 | return result; |
| 3643 | } |
| 3644 | |
| 3645 | /** |
| 3646 | * @generated |
| 3647 | */ |
| 3648 | public static List getVariableUsage_3036OutgoingLinks(View view) { |
| 3649 | return Collections.EMPTY_LIST; |
| 3650 | } |
| 3651 | |
| 3652 | /** |
| 3653 | * @generated |
| 3654 | */ |
| 3655 | public static List getVariableCharacterisation_3055OutgoingLinks(View view) { |
| 3656 | return Collections.EMPTY_LIST; |
| 3657 | } |
| 3658 | |
| 3659 | /** |
| 3660 | * @generated |
| 3661 | */ |
| 3662 | public static List getVariableCharacterisation_3048OutgoingLinks(View view) { |
| 3663 | return Collections.EMPTY_LIST; |
| 3664 | } |
| 3665 | |
| 3666 | /** |
| 3667 | * @generated |
| 3668 | */ |
| 3669 | public static List getVariableCharacterisation_3037OutgoingLinks(View view) { |
| 3670 | return Collections.EMPTY_LIST; |
| 3671 | } |
| 3672 | |
| 3673 | /** |
| 3674 | * @generated |
| 3675 | */ |
| 3676 | public static List getGuardedBranchTransition_3017OutgoingLinks(View view) { |
| 3677 | return Collections.EMPTY_LIST; |
| 3678 | } |
| 3679 | |
| 3680 | /** |
| 3681 | * @generated |
| 3682 | */ |
| 3683 | public static List getResourceDemandingBehaviour_3018OutgoingLinks(View view) { |
| 3684 | return Collections.EMPTY_LIST; |
| 3685 | } |
| 3686 | |
| 3687 | /** |
| 3688 | * @generated |
| 3689 | */ |
| 3690 | private static Collection getIncomingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3691 | AbstractAction target, Map crossReferences) { |
| 3692 | Collection result = new LinkedList(); |
| 3693 | Collection settings = (Collection) crossReferences.get(target); |
| 3694 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 3695 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 3696 | .next(); |
| 3697 | if (setting.getEStructuralFeature() == SeffPackage.eINSTANCE |
| 3698 | .getAbstractAction_Successor_AbstractAction()) { |
| 3699 | result |
| 3700 | .add(new PalladioComponentModelLinkDescriptor( |
| 3701 | setting.getEObject(), |
| 3702 | target, |
| 3703 | PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001, |
| 3704 | AbstractActionSuccessor_AbstractActionEditPart.VISUAL_ID)); |
| 3705 | } |
| 3706 | } |
| 3707 | return result; |
| 3708 | } |
| 3709 | |
| 3710 | /** |
| 3711 | * @generated |
| 3712 | */ |
| 3713 | private static Collection getIncomingFeatureModelFacetLinks_RecoveryActionBehaviour_FailureHandlingAlternatives__RecoveryActionBehaviour_4004( |
| 3714 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour target, |
| 3715 | Map crossReferences) { |
| 3716 | Collection result = new LinkedList(); |
| 3717 | Collection settings = (Collection) crossReferences.get(target); |
| 3718 | for (Iterator it = settings.iterator(); it.hasNext();) { |
| 3719 | EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it |
| 3720 | .next(); |
| 3721 | if (setting.getEStructuralFeature() == de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage.eINSTANCE |
| 3722 | .getRecoveryActionBehaviour_FailureHandlingAlternatives__RecoveryActionBehaviour()) { |
| 3723 | result |
| 3724 | .add(new PalladioComponentModelLinkDescriptor( |
| 3725 | setting.getEObject(), |
| 3726 | target, |
| 3727 | PalladioComponentModelElementTypes.RecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviour_4004, |
| 3728 | RecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviourEditPart.VISUAL_ID)); |
| 3729 | } |
| 3730 | } |
| 3731 | return result; |
| 3732 | } |
| 3733 | |
| 3734 | /** |
| 3735 | * @generated |
| 3736 | */ |
| 3737 | private static Collection getOutgoingFeatureModelFacetLinks_AbstractAction_Successor_AbstractAction_4001( |
| 3738 | AbstractAction source) { |
| 3739 | Collection result = new LinkedList(); |
| 3740 | AbstractAction destination = source.getSuccessor_AbstractAction(); |
| 3741 | if (destination == null) { |
| 3742 | return result; |
| 3743 | } |
| 3744 | result |
| 3745 | .add(new PalladioComponentModelLinkDescriptor( |
| 3746 | source, |
| 3747 | destination, |
| 3748 | PalladioComponentModelElementTypes.AbstractActionSuccessor_AbstractAction_4001, |
| 3749 | AbstractActionSuccessor_AbstractActionEditPart.VISUAL_ID)); |
| 3750 | return result; |
| 3751 | } |
| 3752 | |
| 3753 | /** |
| 3754 | * @generated |
| 3755 | */ |
| 3756 | private static Collection getOutgoingFeatureModelFacetLinks_RecoveryActionBehaviour_FailureHandlingAlternatives__RecoveryActionBehaviour_4004( |
| 3757 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour source) { |
| 3758 | Collection result = new LinkedList(); |
| 3759 | for (Iterator destinations = source |
| 3760 | .getFailureHandlingAlternatives__RecoveryActionBehaviour() |
| 3761 | .iterator(); destinations.hasNext();) { |
| 3762 | de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour destination = (de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour) destinations |
| 3763 | .next(); |
| 3764 | result |
| 3765 | .add(new PalladioComponentModelLinkDescriptor( |
| 3766 | source, |
| 3767 | destination, |
| 3768 | PalladioComponentModelElementTypes.RecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviour_4004, |
| 3769 | RecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviourEditPart.VISUAL_ID)); |
| 3770 | } |
| 3771 | return result; |
| 3772 | } |
| 3773 | |
| 3774 | } |