Class CollectionHelper
java.lang.Object
org.palladiosimulator.pcm.confidentiality.attacker.analysis.common.CollectionHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addService
(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.ServiceSpecification
findOrCreateServiceSpecification
(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 allocatedAssemblyContext
s 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 boolean
isGlobalCommunication
(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 allocatedAssemblyContext
s 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
-