Class ResourceFactory
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.resources.ResourceFactory
-
public class ResourceFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description ResourceFactory(de.uka.ipd.sdq.scheduler.SchedulerModel model, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimActiveResource
createActiveResource(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification specification)
Creates an active resource in accordance with the given resource specification.SimLinkingResource
createLinkingResource(org.palladiosimulator.pcm.resourceenvironment.LinkingResource specification)
Creates a linking resource in accordance with the given resource specification.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.
-
-
-
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 modelspecification
- 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 modelspecification
- 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 modelspecification
- the resource specificationoperatingSystem
- the operating system managing the passive resourceassemblyCtx
- the assembly context in which the passive resource is created- Returns:
- the created resource
-
-