Class ComposedProvidingRequiringEntityServices
- java.lang.Object
-
- org.palladiosimulator.editors.sirius.services.PCMServices
-
- org.palladiosimulator.editors.sirius.services.ComposedProvidingRequiringEntityServices
-
public class ComposedProvidingRequiringEntityServices extends PCMServices
-
-
Constructor Summary
Constructors Constructor Description ComposedProvidingRequiringEntityServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EObject
copyToAssemblyContext(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext)
Copies theVariableUsage
to theAssemblyContext
, i.e.Collection<org.palladiosimulator.pcm.qosannotations.qos_performance.SystemSpecifiedExecutionTime>
getSystemSpecifiedExecutionTimesWithDistinctRoles(org.palladiosimulator.pcm.system.System system)
filters the givenSystemSpecifiedExecutionTime
s to produce a collection with the first occurrences of SystemSpecifiedExecutionTime having distinctRole
sCollection<EObject>
getVariableUsages(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext)
Returns a list containing allVariableUsage
s associated with theAssemblyContext
.boolean
isOverridden(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext)
Computes whether or not the givenAssemblyContext
has aVariableUsage
associated that overrides, i.e.-
Methods inherited from class org.palladiosimulator.editors.sirius.services.PCMServices
copyEObject, copyIdentifier, editPCMRandomVariable, getATProfileImports, getATStereotypeApplications, getParameters, getRoleApplications, getSemanticDiagram, getStereotypeApplications, getStereotypeApplicationsWithoutRoles, hasRoles, isRole, isSystemRole, queryAndSetParameterValue, setParameterValue
-
-
-
-
Method Detail
-
getVariableUsages
public Collection<EObject> getVariableUsages(org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext)
Returns a list containing allVariableUsage
s associated with theAssemblyContext
. This means all usages that are defined on the context itself and those of its encapsulated component which are not overwritten.- Parameters:
assemblyContext
- AssemblyContext- Returns:
- associated VariableUsages
- See Also:
isOverridden(VariableUsage, AssemblyContext)
-
isOverridden
public boolean isOverridden(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext)
Computes whether or not the givenAssemblyContext
has aVariableUsage
associated that overrides, i.e. hides the givenVariableUsage
- Parameters:
variableUsage
- VariableUsageassemblyContext
- AssemblyContext- Returns:
-
copyToAssemblyContext
public EObject copyToAssemblyContext(org.palladiosimulator.pcm.parameter.VariableUsage variableUsage, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext)
Copies theVariableUsage
to theAssemblyContext
, i.e. 'instantiates' it. This method will return the original VariableUsage.- Parameters:
variableUsage
- the VariableUsage to be copiedassemblyContext
- the target AssemblyContext- Returns:
- the original VariableUsage
-
getSystemSpecifiedExecutionTimesWithDistinctRoles
public Collection<org.palladiosimulator.pcm.qosannotations.qos_performance.SystemSpecifiedExecutionTime> getSystemSpecifiedExecutionTimesWithDistinctRoles(org.palladiosimulator.pcm.system.System system)
filters the givenSystemSpecifiedExecutionTime
s to produce a collection with the first occurrences of SystemSpecifiedExecutionTime having distinctRole
s- Parameters:
ssets
-- Returns:
-
-