Class PassiveResourceRegistry
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.resources.PassiveResourceRegistry
-
public class PassiveResourceRegistry extends Object
-
-
Constructor Summary
Constructors Constructor Description PassiveResourceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceRegistrationListener(Consumer<SimPassiveResource> listener)
SimPassiveResource
findOrCreateResource(org.palladiosimulator.pcm.repository.PassiveResource specification, org.palladiosimulator.pcm.core.composition.AssemblyContext assCtx)
Finds the resource that has been registered for the specified type.
-
-
-
Method Detail
-
addResourceRegistrationListener
public void addResourceRegistrationListener(Consumer<SimPassiveResource> listener)
-
findOrCreateResource
public SimPassiveResource findOrCreateResource(org.palladiosimulator.pcm.repository.PassiveResource specification, org.palladiosimulator.pcm.core.composition.AssemblyContext assCtx)
Finds the resource that has been registered for the specified type. If no resource of the specified type can be found, the search continues with the parent resource container.- Parameters:
type
- the resource type- Returns:
- the resource of the specified type, if there is one; null else
-
-