Class CollectionHelper
java.lang.Object
org.palladiosimulator.pcm.confidentiality.attacker.analysis.common.CollectionHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddService(Collection<CompromisedAssembly> compromisedAssemblies, org.palladiosimulator.pcm.confidentiality.attackerSpecification.AttackerSystemSpecificationContainer container, CredentialChange change) static List<CompromisedService>filterExistingService(List<CompromisedService> services, CredentialChange change) static org.palladiosimulator.pcm.confidentiality.context.system.pcm.structure.ServiceSpecificationfindOrCreateServiceSpecification(org.palladiosimulator.pcm.confidentiality.context.system.pcm.structure.ServiceSpecification service, org.palladiosimulator.pcm.confidentiality.attackerSpecification.AttackerSystemSpecificationContainer attackerSpecification, CredentialChange change) static List<org.palladiosimulator.pcm.core.composition.AssemblyContext>getAssemblyContext(List<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> resources, org.palladiosimulator.pcm.allocation.Allocation allocation) Returns the allocatedAssemblyContexts on the list of hardware ResourceContainersstatic List<org.palladiosimulator.pcm.confidentiality.context.system.pcm.structure.ServiceSpecification>getProvidedRestrictions(List<org.palladiosimulator.pcm.core.composition.AssemblyContext> components) static List<org.palladiosimulator.pcm.confidentiality.context.system.pcm.structure.ServiceSpecification>getProvidedRestrictions(org.palladiosimulator.pcm.core.composition.AssemblyContext component) static booleanisGlobalCommunication(org.palladiosimulator.pcm.core.composition.AssemblyContext component, List<org.palladiosimulator.pcm.confidentiality.attackerSpecification.pcmIntegration.SystemIntegration> list) removeDuplicates(Collection<T> collection)
-
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 allocatedAssemblyContexts on the list of hardware ResourceContainers- Parameters:
resources- list of hardware resourcesallocation- allocation model- Returns:
- list of allocated components as
AssemblyContext
-
getProvidedRestrictions
-
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
-