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.
  • 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 all ResourceContainers 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 the ProcessingResourceSpecificationResult 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 the ProcessingResourceSpecificationResult 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)