java.lang.Object
org.palladiosimulator.pcm.confidentiality.attacker.analysis.common.CollectionHelper

public class CollectionHelper extends Object
  • Method Details

    • getAssemblyContext

      public static List<org.palladiosimulator.pcm.core.composition.AssemblyContext> getAssemblyContext(List<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> resources, org.palladiosimulator.pcm.allocation.Allocation allocation)
      Returns the allocated AssemblyContexts on the list of hardware ResourceContainers
      Parameters:
      resources - list of hardware resources
      allocation - allocation model
      Returns:
      list of allocated components as AssemblyContext
    • getProvidedRestrictions

      public static List<org.palladiosimulator.pcm.confidentiality.context.system.pcm.structure.ServiceSpecification> getProvidedRestrictions(List<org.palladiosimulator.pcm.core.composition.AssemblyContext> components)
    • getProvidedRestrictions

      public static List<org.palladiosimulator.pcm.confidentiality.context.system.pcm.structure.ServiceSpecification> getProvidedRestrictions(org.palladiosimulator.pcm.core.composition.AssemblyContext component)
    • filterExistingService

      public static List<CompromisedService> filterExistingService(List<CompromisedService> services, CredentialChange change)
    • findOrCreateServiceSpecification

      public static org.palladiosimulator.pcm.confidentiality.context.system.pcm.structure.ServiceSpecification findOrCreateServiceSpecification(org.palladiosimulator.pcm.confidentiality.context.system.pcm.structure.ServiceSpecification service, org.palladiosimulator.pcm.confidentiality.attackerSpecification.AttackerSystemSpecificationContainer attackerSpecification, CredentialChange change)
    • addService

      public static void addService(Collection<CompromisedAssembly> compromisedAssemblies, org.palladiosimulator.pcm.confidentiality.attackerSpecification.AttackerSystemSpecificationContainer container, CredentialChange change)
    • isGlobalCommunication

      public static boolean isGlobalCommunication(org.palladiosimulator.pcm.core.composition.AssemblyContext component, List<org.palladiosimulator.pcm.confidentiality.attackerSpecification.pcmIntegration.SystemIntegration> list)
    • removeDuplicates

      public static <T extends EObject> List<T> removeDuplicates(Collection<T> collection)