Class ComposedStructureValidationUtil
java.lang.Object
org.palladiosimulator.pcm.core.composition.impl.ComposedStructureValidationUtil
Utility class for validating invariants implemented in Java for the composition package.
The reason for this class is to reduce the amount of code that has to be placed within GenModel
annotations as much as possible.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
validateSameSubsystemMustNotBeInstantiatedMoreThanOnce
(ComposedStructure composedStructure) Validates the constraint "sameSubsystemMustNotBeInstantiatedMoreThanOnce" on the given composed structure.
-
Method Details
-
validateSameSubsystemMustNotBeInstantiatedMoreThanOnce
public static boolean validateSameSubsystemMustNotBeInstantiatedMoreThanOnce(ComposedStructure composedStructure) Validates the constraint "sameSubsystemMustNotBeInstantiatedMoreThanOnce" on the given composed structure.- Parameters:
composedStructure
- The entity to execute the validation on.- Returns:
- True if no violation could be detected, false otherwise.
-