Class LinkingResourceCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.resourceenvironment.structure.ResourceEntity
-
- org.palladiosimulator.generator.fluent.resourceenvironment.structure.LinkingResourceCreator
-
public class LinkingResourceCreator extends ResourceEntity
This class constructs aLinkingResource
.- See Also:
LinkingResource
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.resourceenvironment.structure.ResourceEntity
resourceCreator
-
-
Constructor Summary
Constructors Constructor Description LinkingResourceCreator(ResourceEnvironmentCreator resourceEnvironmentCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkingResourceCreator
addLinkedResourceContainer(String name)
Adds a resource container to theLinkingResource
.LinkingResourceCreator
addLinkedResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)
Adds a resource container to theLinkingResource
.org.palladiosimulator.pcm.resourceenvironment.LinkingResource
build()
Turns the entity in the making into the finished entity.LinkingResourceCreator
withCommunicationLinkResource(CommunicationLinkResource resource)
Defines the communication link resource of theLinkingResource
.LinkingResourceCreator
withFailureProbability(double failureProbability)
Defines the failure probability of theLinkingResource
.LinkingResourceCreator
withLatency(String latency)
Defines the latency of theLinkingResource
.LinkingResourceCreator
withName(String name)
Defines the unique name of this current entity.LinkingResourceCreator
withThroughput(String throughput)
Defines the throughput of theLinkingResource
.
-
-
-
Constructor Detail
-
LinkingResourceCreator
public LinkingResourceCreator(ResourceEnvironmentCreator resourceEnvironmentCreator)
-
-
Method Detail
-
withFailureProbability
public LinkingResourceCreator withFailureProbability(double failureProbability)
Defines the failure probability of theLinkingResource
.- Parameters:
failureProbability
-- Returns:
- this
LinkingResource
- See Also:
LinkingResource
-
withCommunicationLinkResource
public LinkingResourceCreator withCommunicationLinkResource(CommunicationLinkResource resource)
Defines the communication link resource of theLinkingResource
.- Parameters:
resource
-- Returns:
- this
LinkingResource
- See Also:
LinkingResource
-
addLinkedResourceContainer
public LinkingResourceCreator addLinkedResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)
Adds a resource container to theLinkingResource
.- Parameters:
container
-- Returns:
- this
LinkingResource
- See Also:
LinkingResource
,ResourceContainer
-
addLinkedResourceContainer
public LinkingResourceCreator addLinkedResourceContainer(String name) throws IllegalArgumentException
Adds a resource container to theLinkingResource
. TheResourceEnvironment
is searched for aResourceContainer
with he given name.- Parameters:
name
-- Returns:
- this
LinkingResource
- Throws:
IllegalArgumentException
- Throw if noResourceContainer
with the given name exists.
-
withLatency
public LinkingResourceCreator withLatency(String latency)
Defines the latency of theLinkingResource
.- Parameters:
latency
-- Returns:
- this
LinkingResource
- See Also:
LinkingResource
-
withThroughput
public LinkingResourceCreator withThroughput(String throughput)
Defines the throughput of theLinkingResource
.- Parameters:
throughput
-- Returns:
- this
LinkingResource
- See Also:
LinkingResource
-
withName
public LinkingResourceCreator withName(String name)
Description copied from class:Entity
Defines the unique name of this current entity. Once created entities are referenced by this name. Only entities with a unique name can be fetched from the model.
-
-