public class LinkingResourceCreator extends ResourceEntity
This class constructs a LinkingResource.
See Also:
  • LinkingResource
  • Constructor Details

  • Method Details

    • withFailureProbability

      public LinkingResourceCreator withFailureProbability(double failureProbability)
      Defines the failure probability of the LinkingResource.
      Parameters:
      failureProbability -
      Returns:
      this LinkingResource
      See Also:
      • LinkingResource
    • withCommunicationLinkResource

      public LinkingResourceCreator withCommunicationLinkResource(CommunicationLinkResource resource)
      Defines the communication link resource of the LinkingResource.
      Parameters:
      resource -
      Returns:
      this LinkingResource
      See Also:
      • LinkingResource
    • addLinkedResourceContainer

      public LinkingResourceCreator addLinkedResourceContainer(org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container)
      Adds a resource container to the LinkingResource.
      Parameters:
      container -
      Returns:
      this LinkingResource
      See Also:
      • LinkingResource
      • ResourceContainer
    • addLinkedResourceContainer

      public LinkingResourceCreator addLinkedResourceContainer(String name) throws IllegalArgumentException
      Adds a resource container to the LinkingResource. The ResourceEnvironment is searched for a ResourceContainer with he given name.
      Parameters:
      name -
      Returns:
      this LinkingResource
      Throws:
      IllegalArgumentException - Throw if no ResourceContainer with the given name exists.
    • withLatency

      public LinkingResourceCreator withLatency(String latency)
      Defines the latency of the LinkingResource.
      Parameters:
      latency -
      Returns:
      this LinkingResource
      See Also:
      • LinkingResource
    • withThroughput

      public LinkingResourceCreator withThroughput(String throughput)
      Defines the throughput of the LinkingResource.
      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.
      Overrides:
      withName in class Entity
      Returns:
      this current entity in the making
    • build

      public org.palladiosimulator.pcm.resourceenvironment.LinkingResource build()
      Description copied from class: Entity
      Turns the entity in the making into the finished entity.
      Specified by:
      build in class Entity
      Returns:
      the finished entity