Interface ITactic

    • Method Detail

      • improves

        boolean improves​(Dimension dimension,
                         EvaluationAspect aspect)
        Checks if a certain aspect of a dimension is improved, if the heuristic is applied. The specification is necessary, if the heuristics are applied based on their bound violations.
        Parameters:
        dimension - The dimension to check
        aspect - The evaluation aspect of the dimension to check
        Returns:
        true, if the EvaluationAspect of the dimension, i.e. quality attribute, of a individual improves after applying the heuristic
        false, otherwise
      • doesNotImprove

        boolean doesNotImprove​(Dimension dimension,
                               EvaluationAspect aspect)
        Checks if a certain aspect of a dimension is not improved, if the heuristic is applied. The specification is necessary, if the heuristics are applied based on their bound violations.
        Parameters:
        dimension - The dimension to check
        aspect - The evaluation aspect of the dimension to check
        Returns:
        true, if the EvaluationAspect of the dimension, i.e. quality attribute, of a individual does not improve after applying the heuristic
        false, otherwise
        See Also:
        improves(Dimension, EvaluationAspect)
      • getHeuristicCandidates

        List<TacticsResultCandidate> getHeuristicCandidates​(DSEIndividual i,
                                                            UtilisationResultCacheAndHelper resultsCache)
        Generates improved individuals based on heuristic and given individual. Candidates must only use model objects from the design decision model, they must not refer to model elements from the PCM model (as these may not be identical Java objects even if they represent the same EMF object).
        Parameters:
        i - The individual that should be improved
        resultsCache -
        Returns:
        Collection of improved individuals
      • getNumberOfGeneratedCandidates

        int getNumberOfGeneratedCandidates()
        Returns the number of generated candidates of this instance
        Returns:
        Number of generated candidates
      • getHeuristicWeight

        double getHeuristicWeight()
        Weight of heuristic determines the probability of its candidates being selected
        Returns: