Class PCMInstance
- java.lang.Object
-
- org.palladiosimulator.solver.models.PCMInstance
-
public class PCMInstance extends Object
-
-
Constructor Summary
Constructors Constructor Description PCMInstance(Properties config)
PCMInstance(ILaunchConfiguration configuration)
Deprecated.PCMInstance(org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition pcmModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.allocation.Allocation
getAllocation()
ComputedAggregatedUsage
getComputedAggregatedUsage()
ComputedAllocation
getComputedAllocation()
ComputedUsage
getComputedUsage()
List<org.palladiosimulator.pcm.repository.Repository>
getRepositories()
org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment
getResourceEnvironment()
org.palladiosimulator.pcm.resourcetype.ResourceRepository
getResourceRepository()
org.palladiosimulator.pcm.system.System
getSystem()
org.palladiosimulator.pcm.usagemodel.UsageModel
getUsageModel()
Set<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>
getUsedResourceContainer()
Get the used ResourceContainers.boolean
isValid()
void
resetComputedContexts()
void
saveToFiles(String fileNamePrefix)
void
saveToXMIFile(EObject modelToSave, String fileName)
void
setComputedContexts(ComputedAllocation computedAllocation, ComputedUsage computedUsage, ComputedAggregatedUsage aggregatedUsage)
-
-
-
Constructor Detail
-
PCMInstance
public PCMInstance(Properties config)
-
PCMInstance
@Deprecated public PCMInstance(ILaunchConfiguration configuration)
Deprecated.
-
PCMInstance
public PCMInstance(org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition pcmModel)
-
-
Method Detail
-
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)
-
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()
-
-