Class SimActiveResource

  • All Implemented Interfaces:
    de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
    Direct Known Subclasses:
    SimHDDActiveResource

    public class SimActiveResource
    extends AbstractActiveResource
    An active resource can process demands of Requests.
    • Constructor Detail

      • SimActiveResource

        @Inject
        public SimActiveResource​(de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationModel model,
                                 de.uka.ipd.sdq.scheduler.IActiveResource resource,
                                 String processingRate,
                                 int numberOfInstances,
                                 org.palladiosimulator.pcm.resourcetype.SchedulingPolicy schedulingStrategy,
                                 org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification specification)
        Constructs an active resource that wraps the specified resource.
        Parameters:
        model - the simulation model
        resource - the wrapped scheduler resource
        processingRate -
        numberOfInstances -
        specification -
    • Method Detail

      • 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 class EventSimEntity
        Returns:
        the resource's name
        See Also:
        IActiveResource.getName()
      • getResourceContainer

        public org.palladiosimulator.pcm.resourceenvironment.ResourceContainer getResourceContainer()
      • getResourceType

        public org.palladiosimulator.pcm.resourcetype.ProcessingResourceType getResourceType()