Class UtilisationResultCacheAndHelper
java.lang.Object
de.uka.ipd.sdq.dsexplore.opt4j.optimizer.heuristic.operators.UtilisationResultCacheAndHelper
Cache for one individual.
TODO check individual when passed to this
getUnusedAvailableResourceContainers(DSEIndividual)
to make sure it is still the same one.
XXX also cache min result etc.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Compares two UtilisationResults based on their resourceUtilisation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<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.
-
Constructor Details
-
UtilisationResultCacheAndHelper
public UtilisationResultCacheAndHelper()
-
-
Method Details
-
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)
-