Class NewServiceCutContextMapGenerator

  • All Implemented Interfaces:
    org.eclipse.xtext.generator.IGenerator2

    public class NewServiceCutContextMapGenerator
    extends AbstractContextMapGenerator
    Uses the Service Cutter engine to calculate a new Service Cut. The new cut is translated back into a new Context Map. Use this class to generate new Context Maps on the basis of Service Cutter.
    • Constructor Detail

      • NewServiceCutContextMapGenerator

        public NewServiceCutContextMapGenerator()
    • Method Detail

      • setSolverConfiguration

        public NewServiceCutContextMapGenerator setSolverConfiguration​(ch.hsr.servicecutter.solver.SolverConfiguration solverConfiguration)
        Sets a custom SolverConfiguration. If not called, a default configuration will be created.
        Parameters:
        solverConfiguration - the SolverConfiguration to be used to create the service cut.
      • setUserRepresentationContainer

        public NewServiceCutContextMapGenerator setUserRepresentationContainer​(ch.hsr.servicecutter.api.model.UserRepresentationContainer userRepresentationContainer)
        Sets the user representations for the Service Cutter solver.
        Parameters:
        userRepresentationContainer - the container with the user representations