public class SimulatedResourceContainer extends AbstractSimulatedResourceContainer
Constructor and Description |
---|
SimulatedResourceContainer(SimuComModel myModel,
String containerID) |
Modifier and Type | Method and Description |
---|---|
void |
addActiveResource(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification activeResource,
String[] providedInterfaceIds,
String resourceContainerID,
String schedulingStrategyID) |
ScheduledResource |
addActiveResourceWithoutCalculators(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification activeResource,
String[] providedInterfaceIds,
String resourceContainerID,
String schedulingStrategyID) |
void |
addNestedResourceContainer(String nestedResourceContainerId) |
IPassiveResource |
createPassiveResource(org.palladiosimulator.pcm.repository.PassiveResource resource,
org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext,
long capacity) |
List<SimulatedResourceContainer> |
getNestedResourceContainers() |
SimulatedResourceContainer |
getParentResourceContainer() |
void |
loadActiveResource(SimuComSimProcess requestingProcess,
String typeID,
double demand)
Demand processing of a resource demand by a given type of active resources.
|
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.
|
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
|
void |
setParentResourceContainer(String parentResourceContainerId) |
getActiveResources, getAllActiveResources, getFailedResources, getResourceContainerID
public SimulatedResourceContainer(SimuComModel myModel, String containerID)
public IPassiveResource createPassiveResource(org.palladiosimulator.pcm.repository.PassiveResource resource, org.palladiosimulator.pcm.core.composition.AssemblyContext assemblyContext, long capacity)
public List<SimulatedResourceContainer> getNestedResourceContainers()
public SimulatedResourceContainer getParentResourceContainer()
public void addNestedResourceContainer(String nestedResourceContainerId)
public void setParentResourceContainer(String parentResourceContainerId)
public void addActiveResource(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification activeResource, String[] providedInterfaceIds, String resourceContainerID, String schedulingStrategyID)
public ScheduledResource addActiveResourceWithoutCalculators(org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification activeResource, String[] providedInterfaceIds, String resourceContainerID, String schedulingStrategyID)
public void loadActiveResource(SimuComSimProcess requestingProcess, String typeID, double demand)
loadActiveResource
in class AbstractSimulatedResourceContainer
requestingProcess
- The thread requesting the processing of a resouce demandtypeID
- ID of the resource type to which the demand is directed. Same as the PCM resource
type IDsdemand
- The demand in units processable by the resource. The resource is responsible
itself for converting this demand into time spanspublic void loadActiveResource(SimuComSimProcess requestingProcess, String providedInterfaceID, int resourceServiceID, double demand)
loadActiveResource
in class AbstractSimulatedResourceContainer
requestingProcess
- The thread requesting the processing of a resource demandtypeID
- 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 spanspublic void loadActiveResource(SimuComSimProcess requestingProcess, String providedInterfaceID, int resourceServiceID, Map<String,Serializable> parameterMap, double demand)
loadActiveResource
in class AbstractSimulatedResourceContainer
requestingProcess
- The thread requesting the processing of a resource demandprovidedInterfaceID
- 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 spansparameterMap
- Additional Parameters usable in an active resource. Parameters represented as
demand
- The demand in units processable by the resource. The resource is responsible