Interface ITactic
- All Known Implementing Classes:
AbstractProcessingRateTactic
,AbstractTactic
,ConcurrentProcessingSystemImplCatia
,DecreaseProcessingRateImpl
,IncreaseProcessingRateImpl
,ReallocateForReduceLinkUsage
,ReallocationImpl
,ServerConsolidationImpl
,ServerExpansionImpl
public interface ITactic
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doesNotImprove
(Dimension dimension, EvaluationAspect aspect) Checks if a certain aspect of a dimension is not improved, if the heuristic is applied.getHeuristicCandidates
(DSEIndividual i, UtilisationResultCacheAndHelper resultsCache) Generates improved individuals based on heuristic and given individual.double
Weight of heuristic determines the probability of its candidates being selectedint
Returns the number of generated candidates of this instanceboolean
improves
(Dimension dimension, EvaluationAspect aspect) Checks if a certain aspect of a dimension is improved, if the heuristic is applied.
-
Method Details
-
improves
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 checkaspect
- The evaluation aspect of the dimension to check- Returns:
true
, if theEvaluationAspect
of thedimension
, i.e. quality attribute, of a individual improves after applying the heuristicfalse
, otherwise
-
doesNotImprove
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 checkaspect
- The evaluation aspect of the dimension to check- Returns:
true
, if theEvaluationAspect
of thedimension
, i.e. quality attribute, of a individual does not improve after applying the heuristicfalse
, otherwise- See Also:
-
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 improvedresultsCache
-- 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:
-