java.lang.Object
org.palladiosimulator.dataflow.confidentiality.analysis.resource.PCMURIResourceLoader
All Implemented Interfaces:
ResourceLoader

public class PCMURIResourceLoader extends Object implements ResourceLoader
  • 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 model
      allocationModelURI - URI to the allocation model
      nodeCharacteristicsURI - URI to the node characteristics model
  • Method Details

    • loadRequiredResources

      public void loadRequiredResources()
      Description copied from interface: ResourceLoader
      Loads the required resources
      Specified by:
      loadRequiredResources in interface ResourceLoader
    • getUsageModel

      public org.palladiosimulator.pcm.usagemodel.UsageModel getUsageModel()
      Description copied from interface: ResourceLoader
      Returns the usage model that the resource loader has loaded
      Specified by:
      getUsageModel in interface ResourceLoader
      Returns:
      Usage model saved in the resources
    • getAllocation

      public org.palladiosimulator.pcm.allocation.Allocation getAllocation()
      Description copied from interface: ResourceLoader
      Returns the allocation model that the resource loader has loaded
      Specified by:
      getAllocation in interface ResourceLoader
      Returns:
      Allocation model saved in the resources
    • lookupElementOfType

      public <T extends EObject> List<T> lookupElementOfType(EClass targetType)
      Description copied from interface: ResourceLoader
      Looks up an ECore element with the given class type
      Specified by:
      lookupElementOfType in interface ResourceLoader
      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