Class 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 Detail

      • GenomeToCandidateModelTransformation

        public GenomeToCandidateModelTransformation()
    • 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
      • transformChoice

        public boolean transformChoice​(List<EObject> rootElements,
                                       Choice choice)
      • 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)
      • transformChoice

        public boolean transformChoice​(org.palladiosimulator.solver.models.PCMInstance pcm,
                                       Choice choice)
        PCM specific method to conveniently call the transformation for one Choice
        Parameters:
        pcm -
        candidate -