Class PCMInstance

java.lang.Object
org.palladiosimulator.solver.models.PCMInstance

public class PCMInstance extends Object
  • Constructor Details

    • PCMInstance

      public PCMInstance(Properties config)
    • PCMInstance

      @Deprecated public PCMInstance(ILaunchConfiguration configuration)
      Deprecated.
    • PCMInstance

      public PCMInstance(org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition pcmModel)
  • Method Details

    • getAllocation

      public org.palladiosimulator.pcm.allocation.Allocation getAllocation()
    • getRepositories

      public List<org.palladiosimulator.pcm.repository.Repository> getRepositories()
    • getResourceEnvironment

      public org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment getResourceEnvironment()
    • getResourceRepository

      public org.palladiosimulator.pcm.resourcetype.ResourceRepository getResourceRepository()
    • getSystem

      public org.palladiosimulator.pcm.system.System getSystem()
    • getUsageModel

      public org.palladiosimulator.pcm.usagemodel.UsageModel getUsageModel()
    • getComputedAllocation

      public ComputedAllocation getComputedAllocation()
    • getComputedUsage

      public ComputedUsage getComputedUsage()
    • saveToFiles

      public void saveToFiles(String fileNamePrefix)
    • saveToXMIFile

      public void saveToXMIFile(EObject modelToSave, String fileName)
    • isValid

      public boolean isValid()
    • getUsedResourceContainer

      public Set<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> getUsedResourceContainer()
      Get the used ResourceContainers. These are all resource containers that are references from ComputedAllocationContexts inside the ComputedAllocation. If the ComputedAllocation has not yet been calculated, this method returns all resource containers.
      Returns:
      A set of all used resource containers. Each container is just contained once.
    • getComputedAggregatedUsage

      public ComputedAggregatedUsage getComputedAggregatedUsage()
      Returns:
      the computedAggregatedUsage
    • setComputedContexts

      public void setComputedContexts(ComputedAllocation computedAllocation, ComputedUsage computedUsage, ComputedAggregatedUsage aggregatedUsage)
    • resetComputedContexts

      public void resetComputedContexts()