Class SimulatedResourceEnvironment
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.system.staticstructure.SimulatedResourceEnvironment
-
public class SimulatedResourceEnvironment extends Object
This class serves a registry forSimulatedResourceContainer
s by mapping resource container specifications to resource container instances. In this way, it represents the resource environment of a PCM model.Notice the distinction between container specifications and container instances:
- specification:
ResourceContainer
- instance:
SimulatedResourceContainer
- See Also:
BuildSimulatedResourceEnvironment
- specification:
-
-
Constructor Summary
Constructors Constructor Description SimulatedResourceEnvironment()
Constructs a new registry forSimulatedResourceContainer
s which represents the resource environment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimulatedResourceContainer
getResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer specification)
Returns the resource container instance for the given resource container specificationList<SimulatedResourceContainer>
getResourceContainers()
Returns all resource container instances, which has been added before.void
registerResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer specification, SimulatedResourceContainer instance)
Registers aSimulatedResourceContainer
by mapping the given resource container specification to the specified resource container instance.
-
-
-
Constructor Detail
-
SimulatedResourceEnvironment
public SimulatedResourceEnvironment()
Constructs a new registry forSimulatedResourceContainer
s which represents the resource environment.
-
-
Method Detail
-
registerResourceContainer
public void registerResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer specification, SimulatedResourceContainer instance)
Registers aSimulatedResourceContainer
by mapping the given resource container specification to the specified resource container instance.- Parameters:
specification
- the resource container specificationinstance
- the resource container instance
-
getResourceContainer
public SimulatedResourceContainer getResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer specification)
Returns the resource container instance for the given resource container specification- Parameters:
specification
- the resource container specification- Returns:
- the resource container instance for the passed specification
-
getResourceContainers
public List<SimulatedResourceContainer> getResourceContainers()
Returns all resource container instances, which has been added before.- Returns:
- a list of all resource container instances
-
-