Class FluentResourceEnvironmentFactory

java.lang.Object
org.palladiosimulator.generator.fluent.resourceenvironment.factory.FluentResourceEnvironmentFactory

public class FluentResourceEnvironmentFactory extends Object
This class provides all the methods to create a ResourceEnvironment and create entities that are added to this ResourceEnvironment. Characteristics of the entities are specified by method chaining.

Start creating a ResourceEnvironment like this:
FluentResourceEnvironmentFactory create = new FluentResourceEnvironmentFactory();
ResourceEnvironment environment = create.newResourceEnvironment()

//add Resources

.createResourceEnvironmentNow();

  • Constructor Details

    • FluentResourceEnvironmentFactory

      public FluentResourceEnvironmentFactory()
  • Method Details

    • newResourceEnvironment

      public IResourceEnvironment newResourceEnvironment()
      Start the creation of a ResourceEnvironment.
      Returns:
      the ResourceEnvironemt in the making
      See Also:
      • ResourceEnvironment
    • newResourceContainer

      public ResourceContainerCreator newResourceContainer() throws IllegalStateException
      Start the creation of a ResourceContainer.
      Returns:
      the ResourceContainer in the making
      Throws:
      IllegalStateException - if newResourceEnvironment() has not been called before
      See Also:
      • ResourceContainer
    • newProcessingResourceSpecification

      public ProcessingResourceSpecificationCreator newProcessingResourceSpecification() throws IllegalStateException
      Start the creation of a ProcessingResourceSpecification.
      Returns:
      the ProcessingResourceSpecification in the making
      Throws:
      IllegalStateException - if newResourceEnvironment() has not been called before
      See Also:
      • ProcessingResourceSpecification
    • newHddProcessingResourceSpecification

      public HddProcessingResourceSpecificationCreator newHddProcessingResourceSpecification() throws IllegalStateException
      Start the creation of a HDDProcessingResourceSpecification.
      Returns:
      the HDDProcessingResourceSpecification in the making
      Throws:
      IllegalStateException - if newResourceEnvironment() has not been called before
      See Also:
      • HDDProcessingResourceSpecification
    • newLinkingResource

      public LinkingResourceCreator newLinkingResource() throws IllegalStateException
      Start the creation of a LinkingResource.
      Returns:
      the LinkingResource in the making
      Throws:
      IllegalStateException - if newResourceEnvironment() has not been called before
      See Also:
      • LinkingResource