Class HDDResource
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
-
- de.uka.ipd.sdq.simucomframework.entities.SimuComEntity
-
- de.uka.ipd.sdq.simucomframework.resources.AbstractScheduledResource
-
- de.uka.ipd.sdq.simucomframework.resources.ScheduledResource
-
- de.uka.ipd.sdq.simucomframework.resources.HDDResource
-
- All Implemented Interfaces:
de.uka.ipd.sdq.scheduler.sensors.IActiveResourceStateSensor
,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.
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.simucomframework.resources.ScheduledResource
canBeUnavailable
-
-
Constructor Summary
Constructors Constructor Description HDDResource(org.palladiosimulator.pcm.resourceenvironment.HDDProcessingResourceSpecification activeResource, SimuComModel myModel, String resourceContainerID, String schedulingStrategyID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeResource(SimuComSimProcess process, int resourceServiceID, Map<String,Serializable> parameterMap, double abstractDemand)
Called by client of this resource to make the resource simulate resource processing.-
Methods inherited from class de.uka.ipd.sdq.simucomframework.resources.ScheduledResource
activateResource, calculateDemand, createActiveResource, deactivateResource, getActiveResource, getFailureTime, getNextResourceId, getRemainingDemandForProcess, getRepairTime, getScheduledResource, setProcessingRate, update, updateDemand
-
Methods inherited from class de.uka.ipd.sdq.simucomframework.resources.AbstractScheduledResource
addDemandListener, addOverallUtilizationListener, addStateListener, assertAvailability, demandCompleted, fireDemand, fireOverallUtilization, fireStateEvent, getDescription, getNumberOfInstances, getQueueLength, getResourceTypeId, getSchedulingStrategyID, getUnderlyingResource, isAvailable, isRequiredByContainer, setAvailable
-
Methods inherited from class de.uka.ipd.sdq.simucomframework.entities.SimuComEntity
getModel
-
-
-
-
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 classScheduledResource
- Parameters:
process
- The thread or job requesting the processing of its demandresourceServiceID
- The id of the resource service to be called for resource consumptionparameterMap
- 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
-
-