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 aResourceEnvironmentand 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 HddProcessingResourceSpecificationCreatornewHddProcessingResourceSpecification()Start the creation of aHDDProcessingResourceSpecification.LinkingResourceCreatornewLinkingResource()Start the creation of aLinkingResource.ProcessingResourceSpecificationCreatornewProcessingResourceSpecification()Start the creation of aProcessingResourceSpecification.ResourceContainerCreatornewResourceContainer()Start the creation of aResourceContainer.IResourceEnvironmentnewResourceEnvironment()Start the creation of aResourceEnvironment.
-
-
-
Method Detail
-
newResourceEnvironment
public IResourceEnvironment newResourceEnvironment()
Start the creation of aResourceEnvironment.- Returns:
- the
ResourceEnvironemtin the making - See Also:
ResourceEnvironment
-
newResourceContainer
public ResourceContainerCreator newResourceContainer() throws IllegalStateException
Start the creation of aResourceContainer.- Returns:
- the
ResourceContainerin 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
ProcessingResourceSpecificationin 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
HDDProcessingResourceSpecificationin 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
LinkingResourcein the making - Throws:
IllegalStateException- if newResourceEnvironment() has not been called before- See Also:
LinkingResource
-
-