Package edu.kit.ipd.sdq.eventsim.api
Interface IPassiveResource
-
- All Known Implementing Classes:
EventSimPassiveResourceModel
public interface IPassiveResource
The passive resource simulation module allows to acquire and release passive resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
acquire(IRequest request, org.palladiosimulator.pcm.core.composition.AssemblyContext ctx, org.palladiosimulator.pcm.repository.PassiveResource passiveResouce, int num, Procedure onGrantedCallback)
Acquires the specified number of instance of a passive resource.void
release(IRequest request, org.palladiosimulator.pcm.core.composition.AssemblyContext ctx, org.palladiosimulator.pcm.repository.PassiveResource passiveResouce, int num)
Releases a specific amount of a passive resource.
-
-
-
Method Detail
-
acquire
void acquire(IRequest request, org.palladiosimulator.pcm.core.composition.AssemblyContext ctx, org.palladiosimulator.pcm.repository.PassiveResource passiveResouce, int num, Procedure onGrantedCallback)
Acquires the specified number of instance of a passive resource.- Parameters:
request
- the request acquiring the passive resourcectx
- the passive resource's assembly context is required to uniquely identify the passive resourcepassiveResouce
- the passive resource to be acquirednum
- the number of instancesonGrantedCallback
- the callback to be invoked once the demanded number of instances have been granted to the request
-
release
void release(IRequest request, org.palladiosimulator.pcm.core.composition.AssemblyContext ctx, org.palladiosimulator.pcm.repository.PassiveResource passiveResouce, int num)
Releases a specific amount of a passive resource.- Parameters:
request
- the request releasing the passive resourcectx
- the passive resource's assembly context is required to uniquely identify the passive resourcepassiveResouce
- the passive resource to be releasednum
- the number of instances
-
-