Class FluentResourceEnvironmentFactory
java.lang.Object
org.palladiosimulator.generator.fluent.resourceenvironment.factory.FluentResourceEnvironmentFactory
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: //add Resources .createResourceEnvironmentNow();
FluentResourceEnvironmentFactory create = new FluentResourceEnvironmentFactory();
ResourceEnvironment environment = create.newResourceEnvironment()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionStart the creation of aHDDProcessingResourceSpecification
.Start the creation of aLinkingResource
.Start the creation of aProcessingResourceSpecification
.Start the creation of aResourceContainer
.Start the creation of aResourceEnvironment
.
-
Constructor Details
-
FluentResourceEnvironmentFactory
public FluentResourceEnvironmentFactory()
-
-
Method Details
-
newResourceEnvironment
Start the creation of aResourceEnvironment
.- Returns:
- the
ResourceEnvironemt
in the making - See Also:
-
ResourceEnvironment
-
newResourceContainer
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 IllegalStateExceptionStart 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 IllegalStateExceptionStart the creation of aHDDProcessingResourceSpecification
.- Returns:
- the
HDDProcessingResourceSpecification
in the making - Throws:
IllegalStateException
- if newResourceEnvironment() has not been called before- See Also:
-
HDDProcessingResourceSpecification
-
newLinkingResource
Start the creation of aLinkingResource
.- Returns:
- the
LinkingResource
in the making - Throws:
IllegalStateException
- if newResourceEnvironment() has not been called before- See Also:
-
LinkingResource
-