Class SimLinkingResource
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
-
- edu.kit.ipd.sdq.eventsim.entities.EventSimEntity
-
- edu.kit.ipd.sdq.eventsim.resources.entities.AbstractActiveResource
-
- edu.kit.ipd.sdq.eventsim.resources.entities.SimLinkingResource
-
- All Implemented Interfaces:
de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
public class SimLinkingResource extends AbstractActiveResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.kit.ipd.sdq.eventsim.entities.EventSimEntity
EventSimEntity.EntityLifecyclePhase
-
-
Field Summary
-
Fields inherited from class edu.kit.ipd.sdq.eventsim.resources.entities.AbstractActiveResource
schedulerResource
-
-
Constructor Summary
Constructors Constructor Description SimLinkingResource(de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationModel model, de.uka.ipd.sdq.scheduler.IActiveResource resource, String latencySpecification, String throughputSpecification, org.palladiosimulator.pcm.resourceenvironment.LinkingResource specification)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
calculateConcreteDemand(double abstractDemand, int resourceServiceId)
String
getId()
Returns the resource ID.String
getName()
Returns the name of the resource.org.palladiosimulator.pcm.resourceenvironment.LinkingResource
getSpecification()
-
Methods inherited from class edu.kit.ipd.sdq.eventsim.resources.entities.AbstractActiveResource
addDemandListener, addStateListener, consumeResource, deactivateResource, fireDemand, fireStateEvent, getNumberOfInstances, getQueueLength, getSchedulingStrategy, setupStateListenerAdapter
-
Methods inherited from class edu.kit.ipd.sdq.eventsim.entities.EventSimEntity
addEntityListener, equals, getEntityId, getLifecyclePhase, hashCode, notifyEnteredSystem, notifyLeftSystem, removeEntityListener, resetIdGenerator, toString
-
-
-
-
Constructor Detail
-
SimLinkingResource
@Inject public SimLinkingResource(de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationModel model, de.uka.ipd.sdq.scheduler.IActiveResource resource, String latencySpecification, String throughputSpecification, org.palladiosimulator.pcm.resourceenvironment.LinkingResource specification)
-
-
Method Detail
-
getSpecification
public org.palladiosimulator.pcm.resourceenvironment.LinkingResource getSpecification()
-
calculateConcreteDemand
protected double calculateConcreteDemand(double abstractDemand, int resourceServiceId)
- Specified by:
calculateConcreteDemand
in classAbstractActiveResource
-
getId
public String getId()
Returns the resource ID.- Returns:
- the resource's ID
- See Also:
IActiveResource.getId()
-
getName
public String getName()
Returns the name of the resource.- Overrides:
getName
in classEventSimEntity
- Returns:
- the resource's name
-
-