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 resource
        ctx - the passive resource's assembly context is required to uniquely identify the passive resource
        passiveResouce - the passive resource to be acquired
        num - the number of instances
        onGrantedCallback - 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 resource
        ctx - the passive resource's assembly context is required to uniquely identify the passive resource
        passiveResouce - the passive resource to be released
        num - the number of instances