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 aResourceEnvironment
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 Summary
Constructors Constructor Description FluentResourceEnvironmentFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HddProcessingResourceSpecificationCreator
newHddProcessingResourceSpecification()
Start the creation of aHDDProcessingResourceSpecification
.LinkingResourceCreator
newLinkingResource()
Start the creation of aLinkingResource
.ProcessingResourceSpecificationCreator
newProcessingResourceSpecification()
Start the creation of aProcessingResourceSpecification
.ResourceContainerCreator
newResourceContainer()
Start the creation of aResourceContainer
.IResourceEnvironment
newResourceEnvironment()
Start the creation of aResourceEnvironment
.
-
-
-
Method Detail
-
newResourceEnvironment
public IResourceEnvironment newResourceEnvironment()
Start the creation of aResourceEnvironment
.- Returns:
- the
ResourceEnvironemt
in the making - See Also:
ResourceEnvironment
-
newResourceContainer
public ResourceContainerCreator newResourceContainer() throws IllegalStateException
Start the creation of aResourceContainer
.- 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 aProcessingResourceSpecification
.- 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 aHDDProcessingResourceSpecification
.- 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 aLinkingResource
.- Returns:
- the
LinkingResource
in the making - Throws:
IllegalStateException
- if newResourceEnvironment() has not been called before- See Also:
LinkingResource
-
-