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 LinkingResourceCreatoraddLinkedResourceContainer(String name)Adds a resource container to theLinkingResource.LinkingResourceCreatoraddLinkedResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)Adds a resource container to theLinkingResource.org.palladiosimulator.pcm.resourceenvironment.LinkingResourcebuild()Turns the entity in the making into the finished entity.LinkingResourceCreatorwithCommunicationLinkResource(CommunicationLinkResource resource)Defines the communication link resource of theLinkingResource.LinkingResourceCreatorwithFailureProbability(double failureProbability)Defines the failure probability of theLinkingResource.LinkingResourceCreatorwithLatency(String latency)Defines the latency of theLinkingResource.LinkingResourceCreatorwithName(String name)Defines the unique name of this current entity.LinkingResourceCreatorwithThroughput(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. TheResourceEnvironmentis searched for aResourceContainerwith he given name.- Parameters:
name-- Returns:
- this
LinkingResource - Throws:
IllegalArgumentException- Throw if noResourceContainerwith 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:EntityDefines 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.
-
-