Class ActiveResourceRegistry


  • public class ActiveResourceRegistry
    extends Object
    • Constructor Detail

      • ActiveResourceRegistry

        public ActiveResourceRegistry()
    • Method Detail

      • finalise

        public void finalise()
      • findOrCreateResource

        public SimActiveResource findOrCreateResource​(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer resourceContainer,
                                                      org.palladiosimulator.pcm.resourcetype.ResourceType resourceType)
        Finds the resource registered for the specified type and resource container, or creates the resource if none is registered. Created resources are added to the registry.
        Parameters:
        resourceContainer - the resource container
        type - the resource type
        Returns:
        the resource of the specified type
        Throws:
        UnexpectedModelStructureException - if the modeled resource container does not contain a resource specification of the requested type