Class PCMServices
java.lang.Object
org.palladiosimulator.editors.sirius.services.PCMServices
- Direct Known Subclasses:
ComposedProvidingRequiringEntityServices,ResourceEnvironmentServices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyEObject(EObject eObject) Copies an EObjectde.uka.ipd.sdq.identifier.IdentifiercopyIdentifier(de.uka.ipd.sdq.identifier.Identifier eObject) Copies an Identifier and generates new IDs for it and all its contentseditPCMRandomVariable(EObject pcmRandomVariable, String expressionString) Sets the given string as a specification on thePCMRandomVariable.Collection<org.modelversioning.emfprofileapplication.ProfileImport>getATProfileImports(EObject eObject) Returns theProfiles on the givenEObjectthat are associated with architectural templates.Collection<org.modelversioning.emfprofileapplication.StereotypeApplication>getATStereotypeApplications(EObject eObject) getParameters(org.modelversioning.emfprofile.Stereotype stereotype) Returns theEStructuralFeatures that define theStereotype`s parameters.Collection<org.modelversioning.emfprofileapplication.StereotypeApplication>getRoleApplications(EObject eObject) org.eclipse.sirius.diagram.DSemanticDiagramgetSemanticDiagram(EObject containerView) Retrieves the top-most container view (i.e.Collection<org.modelversioning.emfprofileapplication.StereotypeApplication>getStereotypeApplications(EObject eObject) Collection<org.modelversioning.emfprofileapplication.StereotypeApplication>booleanReturns, whether the givenStereotypableElementhas roles applied.booleanisRole(org.modelversioning.emfprofileapplication.StereotypeApplication stereotypeApplication) booleanisSystemRole(org.modelversioning.emfprofileapplication.StereotypeApplication stereotypeApplication) voidqueryAndSetParameterValue(EStructuralFeature parameter, EObject owningEObject) Queries anStringliteral from the user and usessetParameterValue(EStructuralFeature, EObject, String)to set the value.voidsetParameterValue(EStructuralFeature parameter, EObject owningEObject, String valueLiteral) Sets the value of theEStructuralFeatureon the givenEObjectto the parsed value literal.
-
Constructor Details
-
PCMServices
public PCMServices()
-
-
Method Details
-
getStereotypeApplications
public Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> getStereotypeApplications(EObject eObject) - See Also:
-
StereotypeAPI.getStereotypeApplications(EObject)
-
getATStereotypeApplications
public Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> getATStereotypeApplications(EObject eObject) - See Also:
-
StereotypeAPI.getStereotypeApplications(EObject)ArchitecturalTemplateAPI.isArchitecturalTemplateStereotypeApplication(StereotypeApplication)
-
isRole
public boolean isRole(org.modelversioning.emfprofileapplication.StereotypeApplication stereotypeApplication) - See Also:
-
ArchitecturalTemplateAPI.isRole(Stereotype)
-
isSystemRole
public boolean isSystemRole(org.modelversioning.emfprofileapplication.StereotypeApplication stereotypeApplication) - See Also:
-
ArchitecturalTemplateAPI.isSystemRole(Stereotype)
-
queryAndSetParameterValue
Queries anStringliteral from the user and usessetParameterValue(EStructuralFeature, EObject, String)to set the value.- Parameters:
parameter- the parameter to setowningEObject- the object for which the feature will be set
-
setParameterValue
public void setParameterValue(EStructuralFeature parameter, EObject owningEObject, String valueLiteral) Sets the value of theEStructuralFeatureon the givenEObjectto the parsed value literal.- Parameters:
parameter- the feature to setowningEObject- the object for which the feature will be setvalueLiteral- the literal representing the new value
-
getParameters
public Collection<EStructuralFeature> getParameters(org.modelversioning.emfprofile.Stereotype stereotype) Returns theEStructuralFeatures that define theStereotype`s parameters.- Parameters:
stereotype- theStereotype- Returns:
- the parameters` features
-
getRoleApplications
public Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> getRoleApplications(EObject eObject) - Parameters:
eObject- object to get roles for- Returns:
- collection of role-StereotypeApplications
- See Also:
-
ArchitecturalTemplateAPI.getRoleApplications(EObject)
-
getStereotypeApplicationsWithoutRoles
public Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> getStereotypeApplicationsWithoutRoles(EObject eObject) -
getATProfileImports
public Collection<org.modelversioning.emfprofileapplication.ProfileImport> getATProfileImports(EObject eObject) Returns theProfiles on the givenEObjectthat are associated with architectural templates.- Parameters:
eObject- object to get profiles for- Returns:
- collection of Profiles
- See Also:
-
ArchitecturalTemplateAPI#getProfiles(EObject)
-
hasRoles
Returns, whether the givenStereotypableElementhas roles applied.- Parameters:
object- object to test- Returns:
- indicator for applied roles
-
editPCMRandomVariable
Sets the given string as a specification on thePCMRandomVariable. It is assumed that the given string is a valid value (Validation is performed in theRandomVariableXtextStyledTextCellEditorEx.- Parameters:
pcmRandomVariable- the random variableexpression- the expression- Returns:
- the random variable
-
getSemanticDiagram
Retrieves the top-most container view (i.e. the diagram element) from the specified container view. It does the job of getting the element referenced by the variable "diagram". This function should in fact be used when the variable "diagram" is not available.- Parameters:
containerView- the container view from which the top-most container is going to be retrieved- Returns:
- the diagram element
-
copyEObject
Copies an EObject- Parameters:
eObject- the EObject to be copied- Returns:
- The copy
-
copyIdentifier
public de.uka.ipd.sdq.identifier.Identifier copyIdentifier(de.uka.ipd.sdq.identifier.Identifier eObject) Copies an Identifier and generates new IDs for it and all its contents- Parameters:
eObject- Identifier to be copied- Returns:
- The copy
-