Class EventSimActiveResourceModel

    • Constructor Detail

      • EventSimActiveResourceModel

        @Inject
        public EventSimActiveResourceModel​(ISimulationMiddleware middleware)
    • Method Detail

      • init

        public void init()
      • consume

        public void consume​(IRequest request,
                            org.palladiosimulator.pcm.resourceenvironment.ResourceContainer resourceContainer,
                            org.palladiosimulator.pcm.resourcetype.ResourceType resourceType,
                            double absoluteDemand,
                            int resourceServiceID,
                            Procedure onServedCallback)
        Description copied from interface: IActiveResource
        Simulates a resource demand by the specified request.
        Specified by:
        consume in interface IActiveResource
        Parameters:
        request - the demanding request
        resourceContainer - the resource container of the requested resource
        resourceType - the type of the requested resource
        absoluteDemand - the resource demand
        onServedCallback - the callback to be invoked once the requested demand has been served
      • finalise

        public void finalise()
      • findResourceType

        public org.palladiosimulator.pcm.resourcetype.ResourceType findResourceType​(org.palladiosimulator.pcm.resourcetype.ResourceInterface resourceInterface)
        Description copied from interface: IActiveResource
        Finds and returns the resource type providing the specified resource interface. If multiple resource types provide the specified interface, the result of this method is unspecified, so far.
        Specified by:
        findResourceType in interface IActiveResource
        Parameters:
        resourceInterface - the resource interface
        Returns:
        the resource type that provides the specified resource interface; null, if no such resource type could be found