Package de.uka.ipd.sdq.dsexplore.gdof
Class GenomeToCandidateModelTransformation
java.lang.Object
de.uka.ipd.sdq.dsexplore.gdof.GenomeToCandidateModelTransformation
see also http://www.eclipse.org/articles/article.php?file=Article-EMF-Codegen-with-OCL/index.html
Cite from there:
This query accesses the derived isManager property and calls the reportsTo(Employee) operation,
both of which we implemented using OCL. It is worth noting here that OCL encourages the
definition of additional properties and operations externally to the model, as conveniences
for the formulation of constraints. The OCL implementation supports these "def:" expressions
via the OCL.parse() and OCLHelper.define() APIs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPCMRootElements
(org.palladiosimulator.solver.models.PCMInstance pcm) static Object
getProperty
(EObject changeableElement, EStructuralFeature property) static void
setProperty
(EObject changeableElement, EStructuralFeature property, Object value) The generic transformation methodPCM specific method to conveniently call the transformationboolean
transformChoice
(List<EObject> rootElements, Choice choice) boolean
transformChoice
(org.palladiosimulator.solver.models.PCMInstance pcm, Choice choice) PCM specific method to conveniently call the transformation for oneChoice
static Object
valueRule
(ChangeableElementDescription ced, EObject changeableElement, List<EObject> rootElements) static Collection<Object>
valueRuleForCollection
(ChangeableElementDescription ced, EObject changeableElement, List<EObject> rootElements)
-
Constructor Details
-
GenomeToCandidateModelTransformation
public GenomeToCandidateModelTransformation()
-
-
Method Details
-
transform
The generic transformation method- Parameters:
rootElements
- The initial architecture model or the architecture model of any other candidate.candidate
- The decision vector to apply.- Returns:
- The choices that have not been transformed, e.g. because no GDoF has been specified from them
-
transformChoice
-
setProperty
public static void setProperty(EObject changeableElement, EStructuralFeature property, Object value) -
getProperty
-
valueRule
public static Object valueRule(ChangeableElementDescription ced, EObject changeableElement, List<EObject> rootElements) -
valueRuleForCollection
public static Collection<Object> valueRuleForCollection(ChangeableElementDescription ced, EObject changeableElement, List<EObject> rootElements) -
transform
public List<Choice> transform(org.palladiosimulator.solver.models.PCMInstance pcm, Candidate candidate) PCM specific method to conveniently call the transformation- Parameters:
pcm
-candidate
-- Returns:
- The choices that have not been transformed, e.g. because no GDoF has been specified from them
-
getPCMRootElements
-
transformChoice
PCM specific method to conveniently call the transformation for oneChoice
- Parameters:
pcm
-candidate
-
-