Class SimulatedResourceContainer
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.system.staticstructure.SimulatedResourceContainer
-
public class SimulatedResourceContainer extends Object
A simulated resource container containsSimActiveResource
s for variousResourceType
s.
-
-
Constructor Summary
Constructors Constructor Description SimulatedResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer specification)
Constructs an empty resource container, i.e.SimulatedResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer specification, SimulatedResourceContainer parent)
Constructs an empty resource container as a child (e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNestedContainer(SimulatedResourceContainer container)
CommunicationLink
findCommunicationLink(SimulatedResourceContainer communicationTarget)
Finds the communication link that connects this resource container to the specified target resource container.List<SimulatedResourceContainer>
getNestedContainers()
SimulatedResourceContainer
getParent()
Returns the parent resource container.org.palladiosimulator.pcm.resourceenvironment.ResourceContainer
getSpecification()
void
registerCommunicationLink(CommunicationLink link)
String
toString()
-
-
-
Constructor Detail
-
SimulatedResourceContainer
public SimulatedResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer specification)
Constructs an empty resource container, i.e. the container does not yet contain any resources.- Parameters:
specification
- the resource container specification
-
SimulatedResourceContainer
public SimulatedResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer specification, SimulatedResourceContainer parent)
Constructs an empty resource container as a child (e.g. a virtual machine) of the specified parent container (e.g. the physical host machine).- Parameters:
specification
- the resource container specificationparent
- the parent resource container
-
-
Method Detail
-
findCommunicationLink
public CommunicationLink findCommunicationLink(SimulatedResourceContainer communicationTarget)
Finds the communication link that connects this resource container to the specified target resource container.- Parameters:
communicationTarget
- the target resource container- Returns:
- the communication link between the resource containers, if there is one; null else
-
registerCommunicationLink
public void registerCommunicationLink(CommunicationLink link)
-
getParent
public SimulatedResourceContainer getParent()
Returns the parent resource container. For example, if this resource container represents a virtual machine (VM), the parent resource container could represent the VM's physical host machine.- Returns:
- the parent, if there is a parent; null else
-
addNestedContainer
public void addNestedContainer(SimulatedResourceContainer container)
-
getNestedContainers
public List<SimulatedResourceContainer> getNestedContainers()
-
getSpecification
public org.palladiosimulator.pcm.resourceenvironment.ResourceContainer getSpecification()
-
-