Class PCMInstanceHelper
java.lang.Object
org.palladiosimulator.pcm.confidentiality.attacker.analysis.common.PCMInstanceHelper
This class was copied from Palladio-Analyzer-Solver and the bundle org.palladiosimulator.solver
https://github.com/PalladioSimulator/Palladio-Analyzer-Solver/tree/master/bundles/org.palladiosimulator.solver/src/org/palladiosimulator/solver/transformations
This was done to avoid a dependency on the solver package
This class provides auxiliary functionality factored out from the ContextWrapper for examining
PCM instances.
TODO: continue the outsourcing to separate context-independent tasks from the ContextWrapper
class!
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.palladiosimulator.pcm.core.composition.AssemblyContext>
getHandlingAssemblyContexts
(org.palladiosimulator.pcm.seff.ExternalCallAction call, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> encapsulatingContexts) Searches for the providing AssemblyContexts that handle the given ExternalCallAction.static List<org.palladiosimulator.pcm.core.composition.AssemblyContext>
getHandlingAssemblyContexts
(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call, org.palladiosimulator.pcm.system.System system) Retrieves the list of nested handling AssemblyContexts for the given EntryLevelSystemCall.
-
Constructor Details
-
PCMInstanceHelper
public PCMInstanceHelper()
-
-
Method Details
-
getHandlingAssemblyContexts
public static List<org.palladiosimulator.pcm.core.composition.AssemblyContext> getHandlingAssemblyContexts(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall call, org.palladiosimulator.pcm.system.System system) Retrieves the list of nested handling AssemblyContexts for the given EntryLevelSystemCall. A handling AssemblyContext is one that includes the executing behavior triggered by the call.- Parameters:
call
- the EntryLevelSystemCallsystem
- the involved System instance- Returns:
- the list of nested handling AssemblyContexts
-
getHandlingAssemblyContexts
public static List<org.palladiosimulator.pcm.core.composition.AssemblyContext> getHandlingAssemblyContexts(org.palladiosimulator.pcm.seff.ExternalCallAction call, List<org.palladiosimulator.pcm.core.composition.AssemblyContext> encapsulatingContexts) Searches for the providing AssemblyContexts that handle the given ExternalCallAction. If the ExternalCallAction is a system external call, the method returns an empty list. If the providing side is a nested structure of AssemblyContexts, all providing AssemblyContexts are returned in a list, with the actual handling context as the last element.- Parameters:
call
- the ExternallCallActionencapsulatingContexts
- the list of encapsulating AssemblyContexts of the ExternalCallAction (required for its unique identification)- Returns:
- the list of nested handling AssemblyContexts
-