Package de.uka.ipd.sdq.dsexplore.gdof
Class GenomeToCandidateModelTransformation
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.gdof.GenomeToCandidateModelTransformation
-
public class GenomeToCandidateModelTransformation extends Object
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
Constructors Constructor Description GenomeToCandidateModelTransformation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<EObject>
getPCMRootElements(org.palladiosimulator.solver.models.PCMInstance pcm)
static Object
getProperty(EObject changeableElement, EStructuralFeature property)
static void
setProperty(EObject changeableElement, EStructuralFeature property, Object value)
List<Choice>
transform(List<EObject> rootElements, Candidate candidate)
The generic transformation methodList<Choice>
transform(org.palladiosimulator.solver.models.PCMInstance pcm, Candidate candidate)
PCM 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)
-
-
-
Method Detail
-
transform
public List<Choice> transform(List<EObject> rootElements, Candidate candidate)
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
-
setProperty
public static void setProperty(EObject changeableElement, EStructuralFeature property, Object value)
-
getProperty
public static Object getProperty(EObject changeableElement, EStructuralFeature property)
-
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
public static List<EObject> getPCMRootElements(org.palladiosimulator.solver.models.PCMInstance pcm)
-
-