Class PCMURIResourceLoader
java.lang.Object
org.palladiosimulator.dataflow.confidentiality.analysis.resource.PCMURIResourceLoader
- All Implemented Interfaces:
ResourceLoader
-
Constructor Summary
ConstructorsConstructorDescriptionPCMURIResourceLoader(URI usageModelURI, URI allocationModelURI, Optional<URI> nodeCharacteristicsURI) Creates a new resource loader with the given model URIs -
Method Summary
Modifier and TypeMethodDescriptionorg.palladiosimulator.pcm.allocation.AllocationReturns the allocation model that the resource loader has loadedorg.palladiosimulator.pcm.usagemodel.UsageModelReturns the usage model that the resource loader has loadedvoidLoads the required resourceslookupElementOfType(EClass targetType) Looks up an ECore element with the given class type
-
Constructor Details
-
PCMURIResourceLoader
public PCMURIResourceLoader(URI usageModelURI, URI allocationModelURI, Optional<URI> nodeCharacteristicsURI) Creates a new resource loader with the given model URIs- Parameters:
usageModelURI- URI to the usage modelallocationModelURI- URI to the allocation modelnodeCharacteristicsURI- URI to the node characteristics model
-
-
Method Details
-
loadRequiredResources
public void loadRequiredResources()Description copied from interface:ResourceLoaderLoads the required resources- Specified by:
loadRequiredResourcesin interfaceResourceLoader
-
getUsageModel
public org.palladiosimulator.pcm.usagemodel.UsageModel getUsageModel()Description copied from interface:ResourceLoaderReturns the usage model that the resource loader has loaded- Specified by:
getUsageModelin interfaceResourceLoader- Returns:
- Usage model saved in the resources
-
getAllocation
public org.palladiosimulator.pcm.allocation.Allocation getAllocation()Description copied from interface:ResourceLoaderReturns the allocation model that the resource loader has loaded- Specified by:
getAllocationin interfaceResourceLoader- Returns:
- Allocation model saved in the resources
-
lookupElementOfType
Description copied from interface:ResourceLoaderLooks up an ECore element with the given class type- Specified by:
lookupElementOfTypein interfaceResourceLoader- Type Parameters:
T- Type of the objects that the lookup should return- Parameters:
targetType- Target type of the lookup- Returns:
- Returns a list of objects that are of the target type
-