Class CommunicationLink
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.system.staticstructure.CommunicationLink
-
public class CommunicationLink extends Object
A communication link connects two or moreSimulatedResourceContainer
s.
-
-
Constructor Summary
Constructors Constructor Description CommunicationLink(List<SimulatedResourceContainer> connectedContainer, org.palladiosimulator.pcm.resourceenvironment.CommunicationLinkResourceSpecification specification)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
connects(SimulatedResourceContainer c1, SimulatedResourceContainer c2)
Returns whether this link establishes a connection between the specified resource containers.List<SimulatedResourceContainer>
getConnectedContainer()
Returns the list of resource containers connected by this link.org.palladiosimulator.pcm.resourceenvironment.CommunicationLinkResourceSpecification
getSpecification()
Returns the specification of the communication channel represented by this link.String
toString()
-
-
-
Constructor Detail
-
CommunicationLink
public CommunicationLink(List<SimulatedResourceContainer> connectedContainer, org.palladiosimulator.pcm.resourceenvironment.CommunicationLinkResourceSpecification specification)
Default constructor.- Parameters:
connectedContainer
- the containers that are connected by this linkspecification
- the specification of the communication channel connecting the resource containers
-
-
Method Detail
-
connects
public boolean connects(SimulatedResourceContainer c1, SimulatedResourceContainer c2)
Returns whether this link establishes a connection between the specified resource containers.- Parameters:
c1
- first resource containerc2
- second resource container- Returns:
- true if this links connects both resource containers; false else
-
getSpecification
public org.palladiosimulator.pcm.resourceenvironment.CommunicationLinkResourceSpecification getSpecification()
Returns the specification of the communication channel represented by this link.
-
getConnectedContainer
public List<SimulatedResourceContainer> getConnectedContainer()
Returns the list of resource containers connected by this link.
-
-