Class SimulatedResourceContainer


  • public class SimulatedResourceContainer
    extends AbstractSimulatedResourceContainer
    TODO Get rid of heavy argument passing. Model elements are often enough as they contain information like ID and name. [Lehrig] TODO Find original author ;)
    • Method Detail

      • createPassiveResource

        public de.uka.ipd.sdq.scheduler.IPassiveResource createPassiveResource​(org.palladiosimulator.pcm.repository.PassiveResource resource,
                                                                               org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext,
                                                                               long capacity)
      • addNestedResourceContainer

        public void addNestedResourceContainer​(String nestedResourceContainerId)
      • setParentResourceContainer

        public void setParentResourceContainer​(String parentResourceContainerId)
      • addActiveResource

        public void addActiveResource​(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification activeResource,
                                      String[] providedInterfaceIds,
                                      String resourceContainerID,
                                      String schedulingStrategyID)
      • addActiveResourceWithoutCalculators

        public ScheduledResource addActiveResourceWithoutCalculators​(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification activeResource,
                                                                     String[] providedInterfaceIds,
                                                                     String resourceContainerID,
                                                                     String schedulingStrategyID)
      • loadActiveResource

        public void loadActiveResource​(SimuComSimProcess requestingProcess,
                                       String typeID,
                                       double demand)
        Demand processing of a resource demand by a given type of active resources. If the resource container has no own resources, look in parent resource container.
        Overrides:
        loadActiveResource in class AbstractSimulatedResourceContainer
        Parameters:
        requestingProcess - The thread requesting the processing of a resouce demand
        typeID - ID of the resource type to which the demand is directed. Same as the PCM resource type IDs
        demand - The demand in units processable by the resource. The resource is responsible itself for converting this demand into time spans
      • loadActiveResource

        public void loadActiveResource​(SimuComSimProcess requestingProcess,
                                       String providedInterfaceID,
                                       int resourceServiceID,
                                       double demand)
        Demand processing of a resource demand by a given type of active resource and a resource interface operation. If the resource container has no own resources, look in parent resource container.
        Overrides:
        loadActiveResource in class AbstractSimulatedResourceContainer
        Parameters:
        requestingProcess - The thread requesting the processing of a resource demand
        typeID - ID of the resource provided interface to which the demand is directed.
        resourceServiceID - the id of the resource service to be called.
        demand - The demand in units processable by the resource. The resource is responsible itself for converting this demand into time spans
      • loadActiveResource

        public void loadActiveResource​(SimuComSimProcess requestingProcess,
                                       String providedInterfaceID,
                                       int resourceServiceID,
                                       Map<String,​Serializable> parameterMap,
                                       double demand)
        Demand processing of a resource demand by a given type of active resource and a resource interface operation and additional parameters which can be used in an active resource
        Overrides:
        loadActiveResource in class AbstractSimulatedResourceContainer
        Parameters:
        requestingProcess - The thread requesting the processing of a resource demand
        providedInterfaceID - ID of the resource provided interface to which the demand is directed.
        resourceServiceID - the id of the resource service to be called. itself for converting this demand into time spans
        parameterMap - Additional Parameters usable in an active resource. Parameters represented as
        demand - The demand in units processable by the resource. The resource is responsible