Class UtilisationResultCacheAndHelper
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.UtilisationResultCacheAndHelper
-
public class UtilisationResultCacheAndHelper extends Object
Cache for one individual. TODO check individual when passed to thisgetUnusedAvailableResourceContainers(DSEIndividual)
to make sure it is still the same one. XXX also cache min result etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UtilisationResultCacheAndHelper.UtilisationComparator
Compares two UtilisationResults based on their resourceUtilisation.
-
Constructor Summary
Constructors Constructor Description UtilisationResultCacheAndHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>
getAvailableResourceContainers(DSEIndividual individual)
Return allResourceContainer
s available in the design decisions.org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.LinkingResourceResults
getMaxLinkUtilisationResult(DSEIndividual individual)
Link Resource types are not distinguished.org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult
getMaxProcUtilisationResult(DSEIndividual individual)
org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult
getMaxProcUtilisationResult(DSEIndividual individual, org.palladiosimulator.pcm.resourcetype.ResourceType resourceType)
Returns theProcessingResourceSpecificationResult
with the highest utilisation.org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult
getMinProcUtilisationResult(DSEIndividual individual)
org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult
getMinProcUtilisationResult(DSEIndividual individual, org.palladiosimulator.pcm.resourcetype.ResourceType resourceType)
Returns theProcessingResourceSpecificationResult
with the lowest utilisation.static List<org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult>
getProcessingResourceUtilisationResults(DSEIndividual individual)
Set<org.palladiosimulator.pcm.resourcetype.ResourceType>
getResourceTypes(DSEIndividual individual)
Collection<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>
getUnusedAvailableResourceContainers(DSEIndividual individual)
Get all resource containers that are available in the design decisions but that have no components.
-
-
-
Method Detail
-
getUnusedAvailableResourceContainers
public Collection<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> getUnusedAvailableResourceContainers(DSEIndividual individual)
Get all resource containers that are available in the design decisions but that have no components. Determines unused containers based on the allocation degrees of freedom.- Parameters:
individual
-- Returns:
-
getAvailableResourceContainers
public Collection<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> getAvailableResourceContainers(DSEIndividual individual)
Return allResourceContainer
s available in the design decisions.- Parameters:
individual
-- Returns:
-
getMinProcUtilisationResult
public org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult getMinProcUtilisationResult(DSEIndividual individual)
-
getMinProcUtilisationResult
public org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult getMinProcUtilisationResult(DSEIndividual individual, org.palladiosimulator.pcm.resourcetype.ResourceType resourceType)
Returns theProcessingResourceSpecificationResult
with the lowest utilisation. Only of used resource containers.- Parameters:
individual
-resourceType
- may be null if any resource type is fine- Returns:
-
getMaxLinkUtilisationResult
public org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.LinkingResourceResults getMaxLinkUtilisationResult(DSEIndividual individual)
Link Resource types are not distinguished.- Parameters:
individual
-- Returns:
-
getMaxProcUtilisationResult
public org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult getMaxProcUtilisationResult(DSEIndividual individual)
-
getMaxProcUtilisationResult
public org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult getMaxProcUtilisationResult(DSEIndividual individual, org.palladiosimulator.pcm.resourcetype.ResourceType resourceType)
Returns theProcessingResourceSpecificationResult
with the highest utilisation. Only of used resource containers.- Parameters:
individual
-resourceType
- may be null if any resource type is fine- Returns:
-
getProcessingResourceUtilisationResults
public static List<org.palladiosimulator.analyzer.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult> getProcessingResourceUtilisationResults(DSEIndividual individual)
-
getResourceTypes
public Set<org.palladiosimulator.pcm.resourcetype.ResourceType> getResourceTypes(DSEIndividual individual)
-
-