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,IResourceDemandModifiable,de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
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
canBeUnavailableFields inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
delegateFields inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
NULL -
Constructor Summary
ConstructorsConstructorDescriptionHDDResource(org.palladiosimulator.pcm.resourceenvironment.HDDProcessingResourceSpecification activeResource, SimuComModel myModel, String resourceContainerID, String schedulingStrategyID) -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeResource(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, updateDemandMethods inherited from class de.uka.ipd.sdq.simucomframework.resources.AbstractScheduledResource
addDemandListener, addDemandModifyingBehavior, addOverallUtilizationListener, addStateListener, assertAvailability, demandCompleted, fireDemand, fireOverallUtilization, fireStateEvent, getDescription, getNumberOfInstances, getQueueLength, getResourceTypeId, getSchedulingStrategyID, getUnderlyingResource, isAvailable, isRequiredByContainer, removeDemandModifyingBehavior, setAvailableMethods inherited from class de.uka.ipd.sdq.simucomframework.entities.SimuComEntity
getModelMethods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
getEncapsulatedEntity, isScheduled, rescheduleMethods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
getName
-
Constructor Details
-
HDDResource
public HDDResource(org.palladiosimulator.pcm.resourceenvironment.HDDProcessingResourceSpecification activeResource, SimuComModel myModel, String resourceContainerID, String schedulingStrategyID)
-
-
Method Details
-
consumeResource
public void consumeResource(SimuComSimProcess process, int resourceServiceID, Map<String, Serializable> parameterMap, double abstractDemand) Description copied from class:AbstractScheduledResourceCalled 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:
consumeResourcein classAbstractScheduledResource- 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
-