@Override protected void preprocessEvaluation(final TransformationSolution solution) { EGraph _execute = solution.execute(); final ModularizationModel root = MomotUtil.<ModularizationModel>getRoot(_execute, ModularizationModel.class); solution.setAttribute("root", root); ModularizationCalculator _modularizationCalculator = new ModularizationCalculator(root); solution.setAttribute(ModularizationJSEP_RuntimeSearch.attribute, _modularizationCalculator); }
protected double _createObjectiveHelper_0( final TransformationSolution solution, final EGraph graph, final EObject root) { double _xblockexpression = (double) 0; { final ModularizationCalculator calculator = solution.<ModularizationCalculator>getAttribute( ModularizationJSEP_RuntimeSearch.attribute, ModularizationCalculator.class); ModelMetrics _metrics = calculator.getMetrics(); _xblockexpression = _metrics.coupling; } return _xblockexpression; }