Class ComposedStructureValidationUtil

java.lang.Object
org.palladiosimulator.pcm.core.composition.impl.ComposedStructureValidationUtil

public final class ComposedStructureValidationUtil extends Object
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 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.