| 1 | /** |
| 2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.pcm.seff.util; |
| 7 | |
| 8 | import java.util.Map; |
| 9 | |
| 10 | import org.eclipse.emf.common.util.DiagnosticChain; |
| 11 | import org.eclipse.emf.common.util.ResourceLocator; |
| 12 | import org.eclipse.emf.ecore.EPackage; |
| 13 | import org.eclipse.emf.ecore.util.EObjectValidator; |
| 14 | |
| 15 | import de.uka.ipd.sdq.identifier.util.IdentifierValidator; |
| 16 | import de.uka.ipd.sdq.pcm.seff.*; |
| 17 | import de.uka.ipd.sdq.pcm.seff.AbstractAction; |
| 18 | import de.uka.ipd.sdq.pcm.seff.AbstractBranchTransition; |
| 19 | import de.uka.ipd.sdq.pcm.seff.AbstractInternalControlFlowAction; |
| 20 | import de.uka.ipd.sdq.pcm.seff.AbstractLoopAction; |
| 21 | import de.uka.ipd.sdq.pcm.seff.AcquireAction; |
| 22 | import de.uka.ipd.sdq.pcm.seff.BranchAction; |
| 23 | import de.uka.ipd.sdq.pcm.seff.CallAction; |
| 24 | import de.uka.ipd.sdq.pcm.seff.CallReturnAction; |
| 25 | import de.uka.ipd.sdq.pcm.seff.CollectionIteratorAction; |
| 26 | import de.uka.ipd.sdq.pcm.seff.EmitEventAction; |
| 27 | import de.uka.ipd.sdq.pcm.seff.ExternalCallAction; |
| 28 | import de.uka.ipd.sdq.pcm.seff.ForkAction; |
| 29 | import de.uka.ipd.sdq.pcm.seff.ForkedBehaviour; |
| 30 | import de.uka.ipd.sdq.pcm.seff.GuardedBranchTransition; |
| 31 | import de.uka.ipd.sdq.pcm.seff.InternalAction; |
| 32 | import de.uka.ipd.sdq.pcm.seff.InternalCallAction; |
| 33 | import de.uka.ipd.sdq.pcm.seff.LoopAction; |
| 34 | import de.uka.ipd.sdq.pcm.seff.ProbabilisticBranchTransition; |
| 35 | import de.uka.ipd.sdq.pcm.seff.ReleaseAction; |
| 36 | import de.uka.ipd.sdq.pcm.seff.ResourceDemandingBehaviour; |
| 37 | import de.uka.ipd.sdq.pcm.seff.ResourceDemandingInternalBehaviour; |
| 38 | import de.uka.ipd.sdq.pcm.seff.ResourceDemandingSEFF; |
| 39 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
| 40 | import de.uka.ipd.sdq.pcm.seff.ServiceEffectSpecification; |
| 41 | import de.uka.ipd.sdq.pcm.seff.SetVariableAction; |
| 42 | import de.uka.ipd.sdq.pcm.seff.StartAction; |
| 43 | import de.uka.ipd.sdq.pcm.seff.StopAction; |
| 44 | import de.uka.ipd.sdq.pcm.seff.SynchronisationPoint; |
| 45 | |
| 46 | /** |
| 47 | * <!-- begin-user-doc --> |
| 48 | * The <b>Validator</b> for the model. |
| 49 | * <!-- end-user-doc --> |
| 50 | * @see de.uka.ipd.sdq.pcm.seff.SeffPackage |
| 51 | * @generated |
| 52 | */ |
| 53 | public class SeffValidator extends EObjectValidator { |
| 54 | /** |
| 55 | * <!-- begin-user-doc --> |
| 56 | * <!-- end-user-doc --> |
| 57 | * @generated |
| 58 | */ |
| 59 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 60 | |
| 61 | /** |
| 62 | * The cached model package |
| 63 | * <!-- begin-user-doc --> |
| 64 | * <!-- end-user-doc --> |
| 65 | * @generated |
| 66 | */ |
| 67 | public static final SeffValidator INSTANCE = new SeffValidator(); |
| 68 | |
| 69 | /** |
| 70 | * A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package. |
| 71 | * <!-- begin-user-doc --> |
| 72 | * <!-- end-user-doc --> |
| 73 | * @see org.eclipse.emf.common.util.Diagnostic#getSource() |
| 74 | * @see org.eclipse.emf.common.util.Diagnostic#getCode() |
| 75 | * @generated |
| 76 | */ |
| 77 | public static final String DIAGNOSTIC_SOURCE = "de.uka.ipd.sdq.pcm.seff"; |
| 78 | |
| 79 | /** |
| 80 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Stop Action Successor Must Not Be Defined' of 'Stop Action'. |
| 81 | * <!-- begin-user-doc --> |
| 82 | * <!-- end-user-doc --> |
| 83 | * @generated |
| 84 | */ |
| 85 | public static final int STOP_ACTION__STOP_ACTION_SUCCESSOR_MUST_NOT_BE_DEFINED = 1; |
| 86 | |
| 87 | /** |
| 88 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Exactly One Stop Action' of 'Resource Demanding Behaviour'. |
| 89 | * <!-- begin-user-doc --> |
| 90 | * <!-- end-user-doc --> |
| 91 | * @generated |
| 92 | */ |
| 93 | public static final int RESOURCE_DEMANDING_BEHAVIOUR__EXACTLY_ONE_STOP_ACTION = 2; |
| 94 | |
| 95 | /** |
| 96 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Exactly One Start Action' of 'Resource Demanding Behaviour'. |
| 97 | * <!-- begin-user-doc --> |
| 98 | * <!-- end-user-doc --> |
| 99 | * @generated |
| 100 | */ |
| 101 | public static final int RESOURCE_DEMANDING_BEHAVIOUR__EXACTLY_ONE_START_ACTION = 3; |
| 102 | |
| 103 | /** |
| 104 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Each Action Except Start Actionand Stop Action Must Hhave APredecessor And Successor' of 'Resource Demanding Behaviour'. |
| 105 | * <!-- begin-user-doc --> |
| 106 | * <!-- end-user-doc --> |
| 107 | * @generated |
| 108 | */ |
| 109 | public static final int RESOURCE_DEMANDING_BEHAVIOUR__EACH_ACTION_EXCEPT_START_ACTIONAND_STOP_ACTION_MUST_HHAVE_APREDECESSOR_AND_SUCCESSOR = 4; |
| 110 | |
| 111 | /** |
| 112 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Either Guarded Branches Or Probabilisitic Branch Transitions' of 'Branch Action'. |
| 113 | * <!-- begin-user-doc --> |
| 114 | * <!-- end-user-doc --> |
| 115 | * @generated |
| 116 | */ |
| 117 | public static final int BRANCH_ACTION__EITHER_GUARDED_BRANCHES_OR_PROBABILISITIC_BRANCH_TRANSITIONS = 5; |
| 118 | |
| 119 | /** |
| 120 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'All Probabilistic Branch Probabilities Must Sum Up To1' of 'Branch Action'. |
| 121 | * <!-- begin-user-doc --> |
| 122 | * <!-- end-user-doc --> |
| 123 | * @generated |
| 124 | */ |
| 125 | public static final int BRANCH_ACTION__ALL_PROBABILISTIC_BRANCH_PROBABILITIES_MUST_SUM_UP_TO1 = 6; |
| 126 | |
| 127 | /** |
| 128 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Start Action Predecessor Must Not Be Defined' of 'Start Action'. |
| 129 | * <!-- begin-user-doc --> |
| 130 | * <!-- end-user-doc --> |
| 131 | * @generated |
| 132 | */ |
| 133 | public static final int START_ACTION__START_ACTION_PREDECESSOR_MUST_NOT_BE_DEFINED = 7; |
| 134 | |
| 135 | /** |
| 136 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Referenced Signature Must Belong To Interface Referenced By Provided Role' of 'Service Effect Specification'. |
| 137 | * <!-- begin-user-doc --> |
| 138 | * <!-- end-user-doc --> |
| 139 | * @generated |
| 140 | */ |
| 141 | public static final int SERVICE_EFFECT_SPECIFICATION__REFERENCED_SIGNATURE_MUST_BELONG_TO_INTERFACE_REFERENCED_BY_PROVIDED_ROLE = 8; |
| 142 | |
| 143 | /** |
| 144 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Multiple Internal Occurrence Descriptions Per Failure Type Not Allowed' of 'Internal Action'. |
| 145 | * <!-- begin-user-doc --> |
| 146 | * <!-- end-user-doc --> |
| 147 | * @generated |
| 148 | */ |
| 149 | public static final int INTERNAL_ACTION__MULTIPLE_INTERNAL_OCCURRENCE_DESCRIPTIONS_PER_FAILURE_TYPE_NOT_ALLOWED = 11; |
| 150 | |
| 151 | /** |
| 152 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Sum Of Internal Action Failure Probabilities Must Not Exceed1' of 'Internal Action'. |
| 153 | * <!-- begin-user-doc --> |
| 154 | * <!-- end-user-doc --> |
| 155 | * @generated |
| 156 | */ |
| 157 | public static final int INTERNAL_ACTION__SUM_OF_INTERNAL_ACTION_FAILURE_PROBABILITIES_MUST_NOT_EXCEED1 = 12; |
| 158 | |
| 159 | /** |
| 160 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Signature Belongs To Role' of 'External Call Action'. |
| 161 | * <!-- begin-user-doc --> |
| 162 | * <!-- end-user-doc --> |
| 163 | * @generated |
| 164 | */ |
| 165 | public static final int EXTERNAL_CALL_ACTION__SIGNATURE_BELONGS_TO_ROLE = 9; |
| 166 | |
| 167 | /** |
| 168 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Timeout Value Of Acquire Action Must Not Be Negative' of 'Acquire Action'. |
| 169 | * <!-- begin-user-doc --> |
| 170 | * <!-- end-user-doc --> |
| 171 | * @generated |
| 172 | */ |
| 173 | public static final int ACQUIRE_ACTION__TIMEOUT_VALUE_OF_ACQUIRE_ACTION_MUST_NOT_BE_NEGATIVE = 10; |
| 174 | |
| 175 | /** |
| 176 | * A constant with a fixed name that can be used as the base value for additional hand written constants. |
| 177 | * <!-- begin-user-doc --> |
| 178 | * <!-- end-user-doc --> |
| 179 | * @generated |
| 180 | */ |
| 181 | private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 12; |
| 182 | |
| 183 | /** |
| 184 | * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. |
| 185 | * <!-- begin-user-doc --> |
| 186 | * <!-- end-user-doc --> |
| 187 | * @generated |
| 188 | */ |
| 189 | protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; |
| 190 | |
| 191 | /** |
| 192 | * The cached base package validator. |
| 193 | * <!-- begin-user-doc --> |
| 194 | * <!-- end-user-doc --> |
| 195 | * @generated |
| 196 | */ |
| 197 | protected IdentifierValidator identifierValidator; |
| 198 | |
| 199 | /** |
| 200 | * Creates an instance of the switch. |
| 201 | * <!-- begin-user-doc --> |
| 202 | * <!-- end-user-doc --> |
| 203 | * @generated |
| 204 | */ |
| 205 | public SeffValidator() { |
| 206 | super(); |
| 207 | identifierValidator = IdentifierValidator.INSTANCE; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Returns the package of this validator switch. |
| 212 | * <!-- begin-user-doc --> |
| 213 | * <!-- end-user-doc --> |
| 214 | * @generated |
| 215 | */ |
| 216 | @Override |
| 217 | protected EPackage getEPackage() { |
| 218 | return SeffPackage.eINSTANCE; |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * Calls <code>validateXXX</code> for the corresponding classifier of the model. |
| 223 | * <!-- begin-user-doc --> |
| 224 | * <!-- end-user-doc --> |
| 225 | * @generated |
| 226 | */ |
| 227 | @Override |
| 228 | protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 229 | switch (classifierID) { |
| 230 | case SeffPackage.STOP_ACTION: |
| 231 | return validateStopAction((StopAction)value, diagnostics, context); |
| 232 | case SeffPackage.ABSTRACT_INTERNAL_CONTROL_FLOW_ACTION: |
| 233 | return validateAbstractInternalControlFlowAction((AbstractInternalControlFlowAction)value, diagnostics, context); |
| 234 | case SeffPackage.ABSTRACT_ACTION: |
| 235 | return validateAbstractAction((AbstractAction)value, diagnostics, context); |
| 236 | case SeffPackage.RESOURCE_DEMANDING_BEHAVIOUR: |
| 237 | return validateResourceDemandingBehaviour((ResourceDemandingBehaviour)value, diagnostics, context); |
| 238 | case SeffPackage.ABSTRACT_LOOP_ACTION: |
| 239 | return validateAbstractLoopAction((AbstractLoopAction)value, diagnostics, context); |
| 240 | case SeffPackage.ABSTRACT_BRANCH_TRANSITION: |
| 241 | return validateAbstractBranchTransition((AbstractBranchTransition)value, diagnostics, context); |
| 242 | case SeffPackage.BRANCH_ACTION: |
| 243 | return validateBranchAction((BranchAction)value, diagnostics, context); |
| 244 | case SeffPackage.CALL_ACTION: |
| 245 | return validateCallAction((CallAction)value, diagnostics, context); |
| 246 | case SeffPackage.START_ACTION: |
| 247 | return validateStartAction((StartAction)value, diagnostics, context); |
| 248 | case SeffPackage.SERVICE_EFFECT_SPECIFICATION: |
| 249 | return validateServiceEffectSpecification((ServiceEffectSpecification)value, diagnostics, context); |
| 250 | case SeffPackage.RESOURCE_DEMANDING_SEFF: |
| 251 | return validateResourceDemandingSEFF((ResourceDemandingSEFF)value, diagnostics, context); |
| 252 | case SeffPackage.RESOURCE_DEMANDING_INTERNAL_BEHAVIOUR: |
| 253 | return validateResourceDemandingInternalBehaviour((ResourceDemandingInternalBehaviour)value, diagnostics, context); |
| 254 | case SeffPackage.RELEASE_ACTION: |
| 255 | return validateReleaseAction((ReleaseAction)value, diagnostics, context); |
| 256 | case SeffPackage.LOOP_ACTION: |
| 257 | return validateLoopAction((LoopAction)value, diagnostics, context); |
| 258 | case SeffPackage.FORK_ACTION: |
| 259 | return validateForkAction((ForkAction)value, diagnostics, context); |
| 260 | case SeffPackage.FORKED_BEHAVIOUR: |
| 261 | return validateForkedBehaviour((ForkedBehaviour)value, diagnostics, context); |
| 262 | case SeffPackage.SYNCHRONISATION_POINT: |
| 263 | return validateSynchronisationPoint((SynchronisationPoint)value, diagnostics, context); |
| 264 | case SeffPackage.EXTERNAL_CALL_ACTION: |
| 265 | return validateExternalCallAction((ExternalCallAction)value, diagnostics, context); |
| 266 | case SeffPackage.CALL_RETURN_ACTION: |
| 267 | return validateCallReturnAction((CallReturnAction)value, diagnostics, context); |
| 268 | case SeffPackage.PROBABILISTIC_BRANCH_TRANSITION: |
| 269 | return validateProbabilisticBranchTransition((ProbabilisticBranchTransition)value, diagnostics, context); |
| 270 | case SeffPackage.ACQUIRE_ACTION: |
| 271 | return validateAcquireAction((AcquireAction)value, diagnostics, context); |
| 272 | case SeffPackage.COLLECTION_ITERATOR_ACTION: |
| 273 | return validateCollectionIteratorAction((CollectionIteratorAction)value, diagnostics, context); |
| 274 | case SeffPackage.GUARDED_BRANCH_TRANSITION: |
| 275 | return validateGuardedBranchTransition((GuardedBranchTransition)value, diagnostics, context); |
| 276 | case SeffPackage.SET_VARIABLE_ACTION: |
| 277 | return validateSetVariableAction((SetVariableAction)value, diagnostics, context); |
| 278 | case SeffPackage.INTERNAL_CALL_ACTION: |
| 279 | return validateInternalCallAction((InternalCallAction)value, diagnostics, context); |
| 280 | case SeffPackage.EMIT_EVENT_ACTION: |
| 281 | return validateEmitEventAction((EmitEventAction)value, diagnostics, context); |
| 282 | case SeffPackage.INTERNAL_ACTION: |
| 283 | return validateInternalAction((InternalAction)value, diagnostics, context); |
| 284 | default: |
| 285 | return true; |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * <!-- begin-user-doc --> |
| 291 | * <!-- end-user-doc --> |
| 292 | * @generated |
| 293 | */ |
| 294 | public boolean validateStopAction(StopAction stopAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 295 | boolean result = validate_EveryMultiplicityConforms(stopAction, diagnostics, context); |
| 296 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(stopAction, diagnostics, context); |
| 297 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(stopAction, diagnostics, context); |
| 298 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(stopAction, diagnostics, context); |
| 299 | if (result || diagnostics != null) result &= validate_UniqueID(stopAction, diagnostics, context); |
| 300 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(stopAction, diagnostics, context); |
| 301 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(stopAction, diagnostics, context); |
| 302 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(stopAction, diagnostics, context); |
| 303 | if (result || diagnostics != null) result &= validateStopAction_StopActionSuccessorMustNotBeDefined(stopAction, diagnostics, context); |
| 304 | return result; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Validates the StopActionSuccessorMustNotBeDefined constraint of '<em>Stop Action</em>'. |
| 309 | * <!-- begin-user-doc --> |
| 310 | * <!-- end-user-doc --> |
| 311 | * @generated |
| 312 | */ |
| 313 | public boolean validateStopAction_StopActionSuccessorMustNotBeDefined(StopAction stopAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 314 | return stopAction.StopActionSuccessorMustNotBeDefined(diagnostics, context); |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * <!-- begin-user-doc --> |
| 319 | * <!-- end-user-doc --> |
| 320 | * @generated |
| 321 | */ |
| 322 | public boolean validateAbstractInternalControlFlowAction(AbstractInternalControlFlowAction abstractInternalControlFlowAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 323 | boolean result = validate_EveryMultiplicityConforms(abstractInternalControlFlowAction, diagnostics, context); |
| 324 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(abstractInternalControlFlowAction, diagnostics, context); |
| 325 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(abstractInternalControlFlowAction, diagnostics, context); |
| 326 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(abstractInternalControlFlowAction, diagnostics, context); |
| 327 | if (result || diagnostics != null) result &= validate_UniqueID(abstractInternalControlFlowAction, diagnostics, context); |
| 328 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(abstractInternalControlFlowAction, diagnostics, context); |
| 329 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(abstractInternalControlFlowAction, diagnostics, context); |
| 330 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(abstractInternalControlFlowAction, diagnostics, context); |
| 331 | return result; |
| 332 | } |
| 333 | |
| 334 | /** |
| 335 | * <!-- begin-user-doc --> |
| 336 | * <!-- end-user-doc --> |
| 337 | * @generated |
| 338 | */ |
| 339 | public boolean validateAbstractAction(AbstractAction abstractAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 340 | boolean result = validate_EveryMultiplicityConforms(abstractAction, diagnostics, context); |
| 341 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(abstractAction, diagnostics, context); |
| 342 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(abstractAction, diagnostics, context); |
| 343 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(abstractAction, diagnostics, context); |
| 344 | if (result || diagnostics != null) result &= validate_UniqueID(abstractAction, diagnostics, context); |
| 345 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(abstractAction, diagnostics, context); |
| 346 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(abstractAction, diagnostics, context); |
| 347 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(abstractAction, diagnostics, context); |
| 348 | return result; |
| 349 | } |
| 350 | |
| 351 | /** |
| 352 | * <!-- begin-user-doc --> |
| 353 | * <!-- end-user-doc --> |
| 354 | * @generated |
| 355 | */ |
| 356 | public boolean validateResourceDemandingBehaviour(ResourceDemandingBehaviour resourceDemandingBehaviour, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 357 | boolean result = validate_EveryMultiplicityConforms(resourceDemandingBehaviour, diagnostics, context); |
| 358 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(resourceDemandingBehaviour, diagnostics, context); |
| 359 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(resourceDemandingBehaviour, diagnostics, context); |
| 360 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(resourceDemandingBehaviour, diagnostics, context); |
| 361 | if (result || diagnostics != null) result &= validate_UniqueID(resourceDemandingBehaviour, diagnostics, context); |
| 362 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(resourceDemandingBehaviour, diagnostics, context); |
| 363 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(resourceDemandingBehaviour, diagnostics, context); |
| 364 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(resourceDemandingBehaviour, diagnostics, context); |
| 365 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_ExactlyOneStopAction(resourceDemandingBehaviour, diagnostics, context); |
| 366 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_ExactlyOneStartAction(resourceDemandingBehaviour, diagnostics, context); |
| 367 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_EachActionExceptStartActionandStopActionMustHhaveAPredecessorAndSuccessor(resourceDemandingBehaviour, diagnostics, context); |
| 368 | return result; |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Validates the ExactlyOneStopAction constraint of '<em>Resource Demanding Behaviour</em>'. |
| 373 | * <!-- begin-user-doc --> |
| 374 | * <!-- end-user-doc --> |
| 375 | * @generated |
| 376 | */ |
| 377 | public boolean validateResourceDemandingBehaviour_ExactlyOneStopAction(ResourceDemandingBehaviour resourceDemandingBehaviour, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 378 | return resourceDemandingBehaviour.ExactlyOneStopAction(diagnostics, context); |
| 379 | } |
| 380 | |
| 381 | /** |
| 382 | * Validates the ExactlyOneStartAction constraint of '<em>Resource Demanding Behaviour</em>'. |
| 383 | * <!-- begin-user-doc --> |
| 384 | * <!-- end-user-doc --> |
| 385 | * @generated |
| 386 | */ |
| 387 | public boolean validateResourceDemandingBehaviour_ExactlyOneStartAction(ResourceDemandingBehaviour resourceDemandingBehaviour, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 388 | return resourceDemandingBehaviour.ExactlyOneStartAction(diagnostics, context); |
| 389 | } |
| 390 | |
| 391 | /** |
| 392 | * Validates the EachActionExceptStartActionandStopActionMustHhaveAPredecessorAndSuccessor constraint of '<em>Resource Demanding Behaviour</em>'. |
| 393 | * <!-- begin-user-doc --> |
| 394 | * <!-- end-user-doc --> |
| 395 | * @generated |
| 396 | */ |
| 397 | public boolean validateResourceDemandingBehaviour_EachActionExceptStartActionandStopActionMustHhaveAPredecessorAndSuccessor(ResourceDemandingBehaviour resourceDemandingBehaviour, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 398 | return resourceDemandingBehaviour.EachActionExceptStartActionandStopActionMustHhaveAPredecessorAndSuccessor(diagnostics, context); |
| 399 | } |
| 400 | |
| 401 | /** |
| 402 | * <!-- begin-user-doc --> |
| 403 | * <!-- end-user-doc --> |
| 404 | * @generated |
| 405 | */ |
| 406 | public boolean validateAbstractLoopAction(AbstractLoopAction abstractLoopAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 407 | boolean result = validate_EveryMultiplicityConforms(abstractLoopAction, diagnostics, context); |
| 408 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(abstractLoopAction, diagnostics, context); |
| 409 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(abstractLoopAction, diagnostics, context); |
| 410 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(abstractLoopAction, diagnostics, context); |
| 411 | if (result || diagnostics != null) result &= validate_UniqueID(abstractLoopAction, diagnostics, context); |
| 412 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(abstractLoopAction, diagnostics, context); |
| 413 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(abstractLoopAction, diagnostics, context); |
| 414 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(abstractLoopAction, diagnostics, context); |
| 415 | return result; |
| 416 | } |
| 417 | |
| 418 | /** |
| 419 | * <!-- begin-user-doc --> |
| 420 | * <!-- end-user-doc --> |
| 421 | * @generated |
| 422 | */ |
| 423 | public boolean validateAbstractBranchTransition(AbstractBranchTransition abstractBranchTransition, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 424 | boolean result = validate_EveryMultiplicityConforms(abstractBranchTransition, diagnostics, context); |
| 425 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(abstractBranchTransition, diagnostics, context); |
| 426 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(abstractBranchTransition, diagnostics, context); |
| 427 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(abstractBranchTransition, diagnostics, context); |
| 428 | if (result || diagnostics != null) result &= validate_UniqueID(abstractBranchTransition, diagnostics, context); |
| 429 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(abstractBranchTransition, diagnostics, context); |
| 430 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(abstractBranchTransition, diagnostics, context); |
| 431 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(abstractBranchTransition, diagnostics, context); |
| 432 | return result; |
| 433 | } |
| 434 | |
| 435 | /** |
| 436 | * <!-- begin-user-doc --> |
| 437 | * <!-- end-user-doc --> |
| 438 | * @generated |
| 439 | */ |
| 440 | public boolean validateBranchAction(BranchAction branchAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 441 | boolean result = validate_EveryMultiplicityConforms(branchAction, diagnostics, context); |
| 442 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(branchAction, diagnostics, context); |
| 443 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(branchAction, diagnostics, context); |
| 444 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(branchAction, diagnostics, context); |
| 445 | if (result || diagnostics != null) result &= validate_UniqueID(branchAction, diagnostics, context); |
| 446 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(branchAction, diagnostics, context); |
| 447 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(branchAction, diagnostics, context); |
| 448 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(branchAction, diagnostics, context); |
| 449 | if (result || diagnostics != null) result &= validateBranchAction_EitherGuardedBranchesOrProbabilisiticBranchTransitions(branchAction, diagnostics, context); |
| 450 | if (result || diagnostics != null) result &= validateBranchAction_AllProbabilisticBranchProbabilitiesMustSumUpTo1(branchAction, diagnostics, context); |
| 451 | return result; |
| 452 | } |
| 453 | |
| 454 | /** |
| 455 | * Validates the EitherGuardedBranchesOrProbabilisiticBranchTransitions constraint of '<em>Branch Action</em>'. |
| 456 | * <!-- begin-user-doc --> |
| 457 | * <!-- end-user-doc --> |
| 458 | * @generated |
| 459 | */ |
| 460 | public boolean validateBranchAction_EitherGuardedBranchesOrProbabilisiticBranchTransitions(BranchAction branchAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 461 | return branchAction.EitherGuardedBranchesOrProbabilisiticBranchTransitions(diagnostics, context); |
| 462 | } |
| 463 | |
| 464 | /** |
| 465 | * Validates the AllProbabilisticBranchProbabilitiesMustSumUpTo1 constraint of '<em>Branch Action</em>'. |
| 466 | * <!-- begin-user-doc --> |
| 467 | * <!-- end-user-doc --> |
| 468 | * @generated |
| 469 | */ |
| 470 | public boolean validateBranchAction_AllProbabilisticBranchProbabilitiesMustSumUpTo1(BranchAction branchAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 471 | return branchAction.AllProbabilisticBranchProbabilitiesMustSumUpTo1(diagnostics, context); |
| 472 | } |
| 473 | |
| 474 | /** |
| 475 | * <!-- begin-user-doc --> |
| 476 | * <!-- end-user-doc --> |
| 477 | * @generated |
| 478 | */ |
| 479 | public boolean validateStartAction(StartAction startAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 480 | boolean result = validate_EveryMultiplicityConforms(startAction, diagnostics, context); |
| 481 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(startAction, diagnostics, context); |
| 482 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(startAction, diagnostics, context); |
| 483 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(startAction, diagnostics, context); |
| 484 | if (result || diagnostics != null) result &= validate_UniqueID(startAction, diagnostics, context); |
| 485 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(startAction, diagnostics, context); |
| 486 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(startAction, diagnostics, context); |
| 487 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(startAction, diagnostics, context); |
| 488 | if (result || diagnostics != null) result &= validateStartAction_StartActionPredecessorMustNotBeDefined(startAction, diagnostics, context); |
| 489 | return result; |
| 490 | } |
| 491 | |
| 492 | /** |
| 493 | * Validates the StartActionPredecessorMustNotBeDefined constraint of '<em>Start Action</em>'. |
| 494 | * <!-- begin-user-doc --> |
| 495 | * <!-- end-user-doc --> |
| 496 | * @generated |
| 497 | */ |
| 498 | public boolean validateStartAction_StartActionPredecessorMustNotBeDefined(StartAction startAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 499 | return startAction.StartActionPredecessorMustNotBeDefined(diagnostics, context); |
| 500 | } |
| 501 | |
| 502 | /** |
| 503 | * <!-- begin-user-doc --> |
| 504 | * <!-- end-user-doc --> |
| 505 | * @generated |
| 506 | */ |
| 507 | public boolean validateResourceDemandingSEFF(ResourceDemandingSEFF resourceDemandingSEFF, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 508 | boolean result = validate_EveryMultiplicityConforms(resourceDemandingSEFF, diagnostics, context); |
| 509 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(resourceDemandingSEFF, diagnostics, context); |
| 510 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(resourceDemandingSEFF, diagnostics, context); |
| 511 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(resourceDemandingSEFF, diagnostics, context); |
| 512 | if (result || diagnostics != null) result &= validate_UniqueID(resourceDemandingSEFF, diagnostics, context); |
| 513 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(resourceDemandingSEFF, diagnostics, context); |
| 514 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(resourceDemandingSEFF, diagnostics, context); |
| 515 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(resourceDemandingSEFF, diagnostics, context); |
| 516 | if (result || diagnostics != null) result &= validateServiceEffectSpecification_ReferencedSignatureMustBelongToInterfaceReferencedByProvidedRole(resourceDemandingSEFF, diagnostics, context); |
| 517 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_ExactlyOneStopAction(resourceDemandingSEFF, diagnostics, context); |
| 518 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_ExactlyOneStartAction(resourceDemandingSEFF, diagnostics, context); |
| 519 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_EachActionExceptStartActionandStopActionMustHhaveAPredecessorAndSuccessor(resourceDemandingSEFF, diagnostics, context); |
| 520 | return result; |
| 521 | } |
| 522 | |
| 523 | /** |
| 524 | * <!-- begin-user-doc --> |
| 525 | * <!-- end-user-doc --> |
| 526 | * @generated |
| 527 | */ |
| 528 | public boolean validateResourceDemandingInternalBehaviour(ResourceDemandingInternalBehaviour resourceDemandingInternalBehaviour, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 529 | boolean result = validate_EveryMultiplicityConforms(resourceDemandingInternalBehaviour, diagnostics, context); |
| 530 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(resourceDemandingInternalBehaviour, diagnostics, context); |
| 531 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(resourceDemandingInternalBehaviour, diagnostics, context); |
| 532 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(resourceDemandingInternalBehaviour, diagnostics, context); |
| 533 | if (result || diagnostics != null) result &= validate_UniqueID(resourceDemandingInternalBehaviour, diagnostics, context); |
| 534 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(resourceDemandingInternalBehaviour, diagnostics, context); |
| 535 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(resourceDemandingInternalBehaviour, diagnostics, context); |
| 536 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(resourceDemandingInternalBehaviour, diagnostics, context); |
| 537 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_ExactlyOneStopAction(resourceDemandingInternalBehaviour, diagnostics, context); |
| 538 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_ExactlyOneStartAction(resourceDemandingInternalBehaviour, diagnostics, context); |
| 539 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_EachActionExceptStartActionandStopActionMustHhaveAPredecessorAndSuccessor(resourceDemandingInternalBehaviour, diagnostics, context); |
| 540 | return result; |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * <!-- begin-user-doc --> |
| 545 | * <!-- end-user-doc --> |
| 546 | * @generated |
| 547 | */ |
| 548 | public boolean validateReleaseAction(ReleaseAction releaseAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 549 | boolean result = validate_EveryMultiplicityConforms(releaseAction, diagnostics, context); |
| 550 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(releaseAction, diagnostics, context); |
| 551 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(releaseAction, diagnostics, context); |
| 552 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(releaseAction, diagnostics, context); |
| 553 | if (result || diagnostics != null) result &= validate_UniqueID(releaseAction, diagnostics, context); |
| 554 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(releaseAction, diagnostics, context); |
| 555 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(releaseAction, diagnostics, context); |
| 556 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(releaseAction, diagnostics, context); |
| 557 | return result; |
| 558 | } |
| 559 | |
| 560 | /** |
| 561 | * <!-- begin-user-doc --> |
| 562 | * <!-- end-user-doc --> |
| 563 | * @generated |
| 564 | */ |
| 565 | public boolean validateLoopAction(LoopAction loopAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 566 | boolean result = validate_EveryMultiplicityConforms(loopAction, diagnostics, context); |
| 567 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(loopAction, diagnostics, context); |
| 568 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(loopAction, diagnostics, context); |
| 569 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(loopAction, diagnostics, context); |
| 570 | if (result || diagnostics != null) result &= validate_UniqueID(loopAction, diagnostics, context); |
| 571 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(loopAction, diagnostics, context); |
| 572 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(loopAction, diagnostics, context); |
| 573 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(loopAction, diagnostics, context); |
| 574 | return result; |
| 575 | } |
| 576 | |
| 577 | /** |
| 578 | * <!-- begin-user-doc --> |
| 579 | * <!-- end-user-doc --> |
| 580 | * @generated |
| 581 | */ |
| 582 | public boolean validateInternalAction(InternalAction internalAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 583 | boolean result = validate_EveryMultiplicityConforms(internalAction, diagnostics, context); |
| 584 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(internalAction, diagnostics, context); |
| 585 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(internalAction, diagnostics, context); |
| 586 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(internalAction, diagnostics, context); |
| 587 | if (result || diagnostics != null) result &= validate_UniqueID(internalAction, diagnostics, context); |
| 588 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(internalAction, diagnostics, context); |
| 589 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(internalAction, diagnostics, context); |
| 590 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(internalAction, diagnostics, context); |
| 591 | if (result || diagnostics != null) result &= validateInternalAction_MultipleInternalOccurrenceDescriptionsPerFailureTypeNotAllowed(internalAction, diagnostics, context); |
| 592 | if (result || diagnostics != null) result &= validateInternalAction_SumOfInternalActionFailureProbabilitiesMustNotExceed1(internalAction, diagnostics, context); |
| 593 | return result; |
| 594 | } |
| 595 | |
| 596 | /** |
| 597 | * Validates the MultipleInternalOccurrenceDescriptionsPerFailureTypeNotAllowed constraint of '<em>Internal Action</em>'. |
| 598 | * <!-- begin-user-doc --> |
| 599 | * <!-- end-user-doc --> |
| 600 | * @generated |
| 601 | */ |
| 602 | public boolean validateInternalAction_MultipleInternalOccurrenceDescriptionsPerFailureTypeNotAllowed(InternalAction internalAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 603 | return internalAction.MultipleInternalOccurrenceDescriptionsPerFailureTypeNotAllowed(diagnostics, context); |
| 604 | } |
| 605 | |
| 606 | /** |
| 607 | * Validates the SumOfInternalActionFailureProbabilitiesMustNotExceed1 constraint of '<em>Internal Action</em>'. |
| 608 | * <!-- begin-user-doc --> |
| 609 | * <!-- end-user-doc --> |
| 610 | * @generated |
| 611 | */ |
| 612 | public boolean validateInternalAction_SumOfInternalActionFailureProbabilitiesMustNotExceed1(InternalAction internalAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 613 | return internalAction.SumOfInternalActionFailureProbabilitiesMustNotExceed1(diagnostics, context); |
| 614 | } |
| 615 | |
| 616 | /** |
| 617 | * Returns the resource locator that will be used to fetch messages for this validator's diagnostics. |
| 618 | * <!-- begin-user-doc --> |
| 619 | * <!-- end-user-doc --> |
| 620 | * @generated |
| 621 | */ |
| 622 | @Override |
| 623 | public ResourceLocator getResourceLocator() { |
| 624 | // TODO |
| 625 | // Specialize this to return a resource locator for messages specific to this validator. |
| 626 | // Ensure that you remove @generated or mark it @generated NOT |
| 627 | return super.getResourceLocator(); |
| 628 | } |
| 629 | |
| 630 | /** |
| 631 | * <!-- begin-user-doc --> |
| 632 | * <!-- end-user-doc --> |
| 633 | * @generated |
| 634 | */ |
| 635 | public boolean validateForkAction(ForkAction forkAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 636 | boolean result = validate_EveryMultiplicityConforms(forkAction, diagnostics, context); |
| 637 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(forkAction, diagnostics, context); |
| 638 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(forkAction, diagnostics, context); |
| 639 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(forkAction, diagnostics, context); |
| 640 | if (result || diagnostics != null) result &= validate_UniqueID(forkAction, diagnostics, context); |
| 641 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(forkAction, diagnostics, context); |
| 642 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(forkAction, diagnostics, context); |
| 643 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(forkAction, diagnostics, context); |
| 644 | return result; |
| 645 | } |
| 646 | |
| 647 | /** |
| 648 | * <!-- begin-user-doc --> |
| 649 | * <!-- end-user-doc --> |
| 650 | * @generated |
| 651 | */ |
| 652 | public boolean validateForkedBehaviour(ForkedBehaviour forkedBehaviour, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 653 | boolean result = validate_EveryMultiplicityConforms(forkedBehaviour, diagnostics, context); |
| 654 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(forkedBehaviour, diagnostics, context); |
| 655 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(forkedBehaviour, diagnostics, context); |
| 656 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(forkedBehaviour, diagnostics, context); |
| 657 | if (result || diagnostics != null) result &= validate_UniqueID(forkedBehaviour, diagnostics, context); |
| 658 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(forkedBehaviour, diagnostics, context); |
| 659 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(forkedBehaviour, diagnostics, context); |
| 660 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(forkedBehaviour, diagnostics, context); |
| 661 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_ExactlyOneStopAction(forkedBehaviour, diagnostics, context); |
| 662 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_ExactlyOneStartAction(forkedBehaviour, diagnostics, context); |
| 663 | if (result || diagnostics != null) result &= validateResourceDemandingBehaviour_EachActionExceptStartActionandStopActionMustHhaveAPredecessorAndSuccessor(forkedBehaviour, diagnostics, context); |
| 664 | return result; |
| 665 | } |
| 666 | |
| 667 | /** |
| 668 | * <!-- begin-user-doc --> |
| 669 | * <!-- end-user-doc --> |
| 670 | * @generated |
| 671 | */ |
| 672 | public boolean validateSynchronisationPoint(SynchronisationPoint synchronisationPoint, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 673 | return validate_EveryDefaultConstraint(synchronisationPoint, diagnostics, context); |
| 674 | } |
| 675 | |
| 676 | /** |
| 677 | * <!-- begin-user-doc --> |
| 678 | * <!-- end-user-doc --> |
| 679 | * @generated |
| 680 | */ |
| 681 | public boolean validateExternalCallAction(ExternalCallAction externalCallAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 682 | boolean result = validate_EveryMultiplicityConforms(externalCallAction, diagnostics, context); |
| 683 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(externalCallAction, diagnostics, context); |
| 684 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(externalCallAction, diagnostics, context); |
| 685 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(externalCallAction, diagnostics, context); |
| 686 | if (result || diagnostics != null) result &= validate_UniqueID(externalCallAction, diagnostics, context); |
| 687 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(externalCallAction, diagnostics, context); |
| 688 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(externalCallAction, diagnostics, context); |
| 689 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(externalCallAction, diagnostics, context); |
| 690 | if (result || diagnostics != null) result &= validateExternalCallAction_SignatureBelongsToRole(externalCallAction, diagnostics, context); |
| 691 | return result; |
| 692 | } |
| 693 | |
| 694 | /** |
| 695 | * Validates the SignatureBelongsToRole constraint of '<em>External Call Action</em>'. |
| 696 | * <!-- begin-user-doc --> |
| 697 | * <!-- end-user-doc --> |
| 698 | * @generated |
| 699 | */ |
| 700 | public boolean validateExternalCallAction_SignatureBelongsToRole(ExternalCallAction externalCallAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 701 | return externalCallAction.SignatureBelongsToRole(diagnostics, context); |
| 702 | } |
| 703 | |
| 704 | /** |
| 705 | * <!-- begin-user-doc --> |
| 706 | * <!-- end-user-doc --> |
| 707 | * @generated |
| 708 | */ |
| 709 | public boolean validateCallReturnAction(CallReturnAction callReturnAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 710 | return validate_EveryDefaultConstraint(callReturnAction, diagnostics, context); |
| 711 | } |
| 712 | |
| 713 | /** |
| 714 | * <!-- begin-user-doc --> |
| 715 | * <!-- end-user-doc --> |
| 716 | * @generated |
| 717 | */ |
| 718 | public boolean validateCallAction(CallAction callAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 719 | return validate_EveryDefaultConstraint(callAction, diagnostics, context); |
| 720 | } |
| 721 | |
| 722 | /** |
| 723 | * <!-- begin-user-doc --> |
| 724 | * <!-- end-user-doc --> |
| 725 | * @generated |
| 726 | */ |
| 727 | public boolean validateProbabilisticBranchTransition(ProbabilisticBranchTransition probabilisticBranchTransition, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 728 | boolean result = validate_EveryMultiplicityConforms(probabilisticBranchTransition, diagnostics, context); |
| 729 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(probabilisticBranchTransition, diagnostics, context); |
| 730 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(probabilisticBranchTransition, diagnostics, context); |
| 731 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(probabilisticBranchTransition, diagnostics, context); |
| 732 | if (result || diagnostics != null) result &= validate_UniqueID(probabilisticBranchTransition, diagnostics, context); |
| 733 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(probabilisticBranchTransition, diagnostics, context); |
| 734 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(probabilisticBranchTransition, diagnostics, context); |
| 735 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(probabilisticBranchTransition, diagnostics, context); |
| 736 | return result; |
| 737 | } |
| 738 | |
| 739 | /** |
| 740 | * <!-- begin-user-doc --> |
| 741 | * <!-- end-user-doc --> |
| 742 | * @generated |
| 743 | */ |
| 744 | public boolean validateAcquireAction(AcquireAction acquireAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 745 | boolean result = validate_EveryMultiplicityConforms(acquireAction, diagnostics, context); |
| 746 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(acquireAction, diagnostics, context); |
| 747 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(acquireAction, diagnostics, context); |
| 748 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(acquireAction, diagnostics, context); |
| 749 | if (result || diagnostics != null) result &= validate_UniqueID(acquireAction, diagnostics, context); |
| 750 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(acquireAction, diagnostics, context); |
| 751 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(acquireAction, diagnostics, context); |
| 752 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(acquireAction, diagnostics, context); |
| 753 | if (result || diagnostics != null) result &= validateAcquireAction_TimeoutValueOfAcquireActionMustNotBeNegative(acquireAction, diagnostics, context); |
| 754 | return result; |
| 755 | } |
| 756 | |
| 757 | /** |
| 758 | * Validates the TimeoutValueOfAcquireActionMustNotBeNegative constraint of '<em>Acquire Action</em>'. |
| 759 | * <!-- begin-user-doc --> |
| 760 | * <!-- end-user-doc --> |
| 761 | * @generated |
| 762 | */ |
| 763 | public boolean validateAcquireAction_TimeoutValueOfAcquireActionMustNotBeNegative(AcquireAction acquireAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 764 | return acquireAction.TimeoutValueOfAcquireActionMustNotBeNegative(diagnostics, context); |
| 765 | } |
| 766 | |
| 767 | /** |
| 768 | * <!-- begin-user-doc --> |
| 769 | * <!-- end-user-doc --> |
| 770 | * @generated |
| 771 | */ |
| 772 | public boolean validateCollectionIteratorAction(CollectionIteratorAction collectionIteratorAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 773 | boolean result = validate_EveryMultiplicityConforms(collectionIteratorAction, diagnostics, context); |
| 774 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(collectionIteratorAction, diagnostics, context); |
| 775 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(collectionIteratorAction, diagnostics, context); |
| 776 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(collectionIteratorAction, diagnostics, context); |
| 777 | if (result || diagnostics != null) result &= validate_UniqueID(collectionIteratorAction, diagnostics, context); |
| 778 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(collectionIteratorAction, diagnostics, context); |
| 779 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(collectionIteratorAction, diagnostics, context); |
| 780 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(collectionIteratorAction, diagnostics, context); |
| 781 | return result; |
| 782 | } |
| 783 | |
| 784 | /** |
| 785 | * <!-- begin-user-doc --> |
| 786 | * <!-- end-user-doc --> |
| 787 | * @generated |
| 788 | */ |
| 789 | public boolean validateGuardedBranchTransition(GuardedBranchTransition guardedBranchTransition, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 790 | boolean result = validate_EveryMultiplicityConforms(guardedBranchTransition, diagnostics, context); |
| 791 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(guardedBranchTransition, diagnostics, context); |
| 792 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(guardedBranchTransition, diagnostics, context); |
| 793 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(guardedBranchTransition, diagnostics, context); |
| 794 | if (result || diagnostics != null) result &= validate_UniqueID(guardedBranchTransition, diagnostics, context); |
| 795 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(guardedBranchTransition, diagnostics, context); |
| 796 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(guardedBranchTransition, diagnostics, context); |
| 797 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(guardedBranchTransition, diagnostics, context); |
| 798 | return result; |
| 799 | } |
| 800 | |
| 801 | /** |
| 802 | * <!-- begin-user-doc --> |
| 803 | * <!-- end-user-doc --> |
| 804 | * @generated |
| 805 | */ |
| 806 | public boolean validateSetVariableAction(SetVariableAction setVariableAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 807 | boolean result = validate_EveryMultiplicityConforms(setVariableAction, diagnostics, context); |
| 808 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(setVariableAction, diagnostics, context); |
| 809 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(setVariableAction, diagnostics, context); |
| 810 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(setVariableAction, diagnostics, context); |
| 811 | if (result || diagnostics != null) result &= validate_UniqueID(setVariableAction, diagnostics, context); |
| 812 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(setVariableAction, diagnostics, context); |
| 813 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(setVariableAction, diagnostics, context); |
| 814 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(setVariableAction, diagnostics, context); |
| 815 | return result; |
| 816 | } |
| 817 | |
| 818 | /** |
| 819 | * <!-- begin-user-doc --> |
| 820 | * <!-- end-user-doc --> |
| 821 | * @generated |
| 822 | */ |
| 823 | public boolean validateInternalCallAction(InternalCallAction internalCallAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 824 | boolean result = validate_EveryMultiplicityConforms(internalCallAction, diagnostics, context); |
| 825 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(internalCallAction, diagnostics, context); |
| 826 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(internalCallAction, diagnostics, context); |
| 827 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(internalCallAction, diagnostics, context); |
| 828 | if (result || diagnostics != null) result &= validate_UniqueID(internalCallAction, diagnostics, context); |
| 829 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(internalCallAction, diagnostics, context); |
| 830 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(internalCallAction, diagnostics, context); |
| 831 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(internalCallAction, diagnostics, context); |
| 832 | return result; |
| 833 | } |
| 834 | |
| 835 | /** |
| 836 | * <!-- begin-user-doc --> |
| 837 | * <!-- end-user-doc --> |
| 838 | * @generated |
| 839 | */ |
| 840 | public boolean validateEmitEventAction(EmitEventAction emitEventAction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 841 | boolean result = validate_EveryMultiplicityConforms(emitEventAction, diagnostics, context); |
| 842 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(emitEventAction, diagnostics, context); |
| 843 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(emitEventAction, diagnostics, context); |
| 844 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(emitEventAction, diagnostics, context); |
| 845 | if (result || diagnostics != null) result &= validate_UniqueID(emitEventAction, diagnostics, context); |
| 846 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(emitEventAction, diagnostics, context); |
| 847 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(emitEventAction, diagnostics, context); |
| 848 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(emitEventAction, diagnostics, context); |
| 849 | return result; |
| 850 | } |
| 851 | |
| 852 | /** |
| 853 | * <!-- begin-user-doc --> |
| 854 | * <!-- end-user-doc --> |
| 855 | * @generated |
| 856 | */ |
| 857 | public boolean validateServiceEffectSpecification(ServiceEffectSpecification serviceEffectSpecification, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 858 | boolean result = validate_EveryMultiplicityConforms(serviceEffectSpecification, diagnostics, context); |
| 859 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(serviceEffectSpecification, diagnostics, context); |
| 860 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(serviceEffectSpecification, diagnostics, context); |
| 861 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(serviceEffectSpecification, diagnostics, context); |
| 862 | if (result || diagnostics != null) result &= validate_UniqueID(serviceEffectSpecification, diagnostics, context); |
| 863 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(serviceEffectSpecification, diagnostics, context); |
| 864 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(serviceEffectSpecification, diagnostics, context); |
| 865 | if (result || diagnostics != null) result &= validateServiceEffectSpecification_ReferencedSignatureMustBelongToInterfaceReferencedByProvidedRole(serviceEffectSpecification, diagnostics, context); |
| 866 | return result; |
| 867 | } |
| 868 | |
| 869 | /** |
| 870 | * Validates the ReferencedSignatureMustBelongToInterfaceReferencedByProvidedRole constraint of '<em>Service Effect Specification</em>'. |
| 871 | * <!-- begin-user-doc --> |
| 872 | * <!-- end-user-doc --> |
| 873 | * @generated |
| 874 | */ |
| 875 | public boolean validateServiceEffectSpecification_ReferencedSignatureMustBelongToInterfaceReferencedByProvidedRole(ServiceEffectSpecification serviceEffectSpecification, DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 876 | return serviceEffectSpecification.ReferencedSignatureMustBelongToInterfaceReferencedByProvidedRole(diagnostics, context); |
| 877 | } |
| 878 | |
| 879 | } //SeffValidator |