Class PCMInstance
java.lang.Object
org.palladiosimulator.solver.models.PCMInstance
-
Constructor Summary
ConstructorDescriptionPCMInstance
(Properties config) PCMInstance
(ILaunchConfiguration configuration) Deprecated.PCMInstance
(org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition pcmModel) -
Method Summary
Modifier and TypeMethodDescriptionorg.palladiosimulator.pcm.allocation.Allocation
List<org.palladiosimulator.pcm.repository.Repository>
org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment
org.palladiosimulator.pcm.resourcetype.ResourceRepository
org.palladiosimulator.pcm.system.System
org.palladiosimulator.pcm.usagemodel.UsageModel
Set<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>
Get the used ResourceContainers.boolean
isValid()
void
void
saveToFiles
(String fileNamePrefix) void
saveToXMIFile
(EObject modelToSave, String fileName) void
setComputedContexts
(ComputedAllocation computedAllocation, ComputedUsage computedUsage, ComputedAggregatedUsage aggregatedUsage)
-
Constructor Details
-
PCMInstance
-
PCMInstance
Deprecated. -
PCMInstance
public PCMInstance(org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition pcmModel)
-
-
Method Details
-
getAllocation
public org.palladiosimulator.pcm.allocation.Allocation getAllocation() -
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
-
getComputedUsage
-
saveToFiles
-
saveToXMIFile
-
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
- Returns:
- the computedAggregatedUsage
-
setComputedContexts
public void setComputedContexts(ComputedAllocation computedAllocation, ComputedUsage computedUsage, ComputedAggregatedUsage aggregatedUsage) -
resetComputedContexts
public void resetComputedContexts()
-