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
This class constructs a
LinkingResource
.- See Also:
-
LinkingResource
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.resourceenvironment.structure.ResourceEntity
resourceCreator
-
Constructor Summary
ConstructorDescriptionLinkingResourceCreator
(ResourceEnvironmentCreator resourceEnvironmentCreator) -
Method Summary
Modifier and TypeMethodDescriptionAdds a resource container to theLinkingResource
.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.Defines the communication link resource of theLinkingResource
.withFailureProbability
(double failureProbability) Defines the failure probability of theLinkingResource
.withLatency
(String latency) Defines the latency of theLinkingResource
.Defines the unique name of this current entity.withThroughput
(String throughput) Defines the throughput of theLinkingResource
.
-
Constructor Details
-
LinkingResourceCreator
-
-
Method Details
-
withFailureProbability
Defines the failure probability of theLinkingResource
.- Parameters:
failureProbability
-- 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
Defines the latency of theLinkingResource
.- Parameters:
latency
-- Returns:
- this
LinkingResource
- See Also:
-
LinkingResource
-
withThroughput
Defines the throughput of theLinkingResource
.- Parameters:
throughput
-- Returns:
- this
LinkingResource
- See Also:
-
LinkingResource
-
withName
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. -
build
public org.palladiosimulator.pcm.resourceenvironment.LinkingResource build()Description copied from class:Entity
Turns the entity in the making into the finished entity.
-