Class ConcurrentProcessingSystemImplCatia
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.AbstractTactic
-
- de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.impl.ConcurrentProcessingSystemImplCatia
-
- All Implemented Interfaces:
ITactic
public class ConcurrentProcessingSystemImplCatia extends AbstractTactic
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
logger
-
Fields inherited from class de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.AbstractTactic
copy, individualFactory
-
-
Constructor Summary
Constructors Constructor Description ConcurrentProcessingSystemImplCatia(org.opt4j.operator.copy.Copy<org.opt4j.core.Genotype> copy, DSEIndividualFactory individualFactory, DSEWorkflowConfiguration configuration)
-
Method Summary
-
Methods inherited from class de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.AbstractTactic
doesNotImprove, getHeuristicWeight, getNumberOfGeneratedCandidates, improves, increaseCounterOfGeneratedCandidates, setHeuristicWeight
-
-
-
-
Constructor Detail
-
ConcurrentProcessingSystemImplCatia
public ConcurrentProcessingSystemImplCatia(org.opt4j.operator.copy.Copy<org.opt4j.core.Genotype> copy, DSEIndividualFactory individualFactory, DSEWorkflowConfiguration configuration)
-
-
Method Detail
-
getMaxUtilisedCpu
public int getMaxUtilisedCpu(List<ActiveResInfo> list)
-
getMaxUtilisedHdd
public int getMaxUtilisedHdd(List<ActiveResInfo> list)
-
getMaxUtilisedActiveRes
public int getMaxUtilisedActiveRes(List<ActiveResInfo> list)
-
getOverUsedCpu
public List<ActiveResInfo> getOverUsedCpu(List<ActiveResInfo> list)
-
getUnderUsedCpu
public List<ActiveResInfo> getUnderUsedCpu(List<ActiveResInfo> list)
-
getOverUsedHDD
public List<ActiveResInfo> getOverUsedHDD(List<ActiveResInfo> list)
-
getUnderUsedHDD
public List<ActiveResInfo> getUnderUsedHDD(List<ActiveResInfo> list)
-
getCriticalPassiveRes
public List<PassiveResInfo> getCriticalPassiveRes(List<PassiveResInfo> list)
-
compOccurrence
public boolean compOccurrence(List<CompInfoResDemand> list, org.palladiosimulator.pcm.allocation.AllocationContext a)
-
incrementComputation
public void incrementComputation(List<CompInfoResDemand> list, org.palladiosimulator.pcm.allocation.AllocationContext b, double value)
-
incrementStorage
public void incrementStorage(List<CompInfoResDemand> list, org.palladiosimulator.pcm.allocation.AllocationContext b, double value)
-
updateFrequency
public void updateFrequency(List<ServiceInfo> list, String seffName, String compName, double f)
-
unbalancedSeffs
public boolean unbalancedSeffs(List<ServiceInfo> list)
-
cps
public boolean cps(List<ActiveResInfo> list)
-
olb
public boolean olb(List<ServiceInfo> list, PassiveResInfo criticPassiveRes)
-
ep
public boolean ep(ActiveResInfo activeRes, List<ServiceInfo> list)
-
getCompMaxCPUdemand
public int getCompMaxCPUdemand(List<CompInfoResDemand> list)
-
getCompMaxHDDdemand
public int getCompMaxHDDdemand(List<CompInfoResDemand> list)
-
deployedComponents
public List<CompInfoResDemand> deployedComponents(List<CompInfoResDemand> comp, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer node)
-
getSeffsOfComp
public List<ServiceInfo> getSeffsOfComp(List<ServiceInfo> list, String comp)
-
getMaxRT
public double getMaxRT(List<ServiceInfo> list)
-
getMinRT
public double getMinRT(List<ServiceInfo> list)
-
doesMatchPrecondition
public boolean doesMatchPrecondition(DSEIndividual i)
-
getSolution
public List<TacticsResultCandidate> getSolution(DSEIndividual i)
-
getHeuristicCandidates
public List<TacticsResultCandidate> getHeuristicCandidates(DSEIndividual i, UtilisationResultCacheAndHelper resultsCache)
Description copied from interface:ITactic
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- Returns:
- Collection of improved individuals
-
-