Class ResourceFactory


  • public class ResourceFactory
    extends Object
    • Constructor Detail

      • ResourceFactory

        @Inject
        public ResourceFactory​(de.uka.ipd.sdq.scheduler.SchedulerModel model,
                               de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
    • Method Detail

      • createActiveResource

        public SimActiveResource createActiveResource​(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification specification)
        Creates an active resource in accordance with the given resource specification.
        Parameters:
        model - the simulation model
        specification - the resource specification
        Returns:
        the created resource
      • createLinkingResource

        public SimLinkingResource createLinkingResource​(org.palladiosimulator.pcm.resourceenvironment.LinkingResource specification)
        Creates a linking resource in accordance with the given resource specification.
        Parameters:
        model - the simulation model
        specification - the resource specification
        Returns:
        the created resource
      • createPassiveResource

        public SimPassiveResource createPassiveResource​(org.palladiosimulator.pcm.repository.PassiveResource specification,
                                                        org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyCtx)
        Creates a passive resource in accordance with the given resource specification.
        Parameters:
        model - the simulation model
        specification - the resource specification
        operatingSystem - the operating system managing the passive resource
        assemblyCtx - the assembly context in which the passive resource is created
        Returns:
        the created resource