Class HDDResource

  • All Implemented Interfaces:
    de.uka.ipd.sdq.scheduler.sensors.IActiveResourceStateSensor, IResourceDemandModifiable, de.uka.ipd.sdq.simulation.abstractsimengine.IEntity

    public class HDDResource
    extends ScheduledResource
    Active resource representing a HDD resource with separate processing rate for write and read speed in Bytes.
    • Constructor Detail

      • HDDResource

        public HDDResource​(org.palladiosimulator.pcm.resourceenvironment.HDDProcessingResourceSpecification activeResource,
                           SimuComModel myModel,
                           String resourceContainerID,
                           String schedulingStrategyID)
    • Method Detail

      • consumeResource

        public void consumeResource​(SimuComSimProcess process,
                                    int resourceServiceID,
                                    Map<String,​Serializable> parameterMap,
                                    double abstractDemand)
        Description copied from class: AbstractScheduledResource
        Called by client of this resource to make the resource simulate resource processing. This is the queueing network service center part of our simulation. Allows passing of additional parameters.
        Overrides:
        consumeResource in class AbstractScheduledResource
        Parameters:
        process - The thread or job requesting the processing of its demand
        resourceServiceID - The id of the resource service to be called for resource consumption
        parameterMap - Additional parameters which can be used by the resource. Map can be empty.
        abstractDemand - The resource demand the client wishes to be processed by the resource