Class ResourceEnvironmentCreator
java.lang.Object
org.palladiosimulator.generator.fluent.shared.structure.Entity
org.palladiosimulator.generator.fluent.resourceenvironment.structure.ResourceEntity
org.palladiosimulator.generator.fluent.resourceenvironment.structure.ResourceEnvironmentCreator
- All Implemented Interfaces:
IResourceEnvironment
,IResourceEnvironmentAddition
This class constructs a
ResourceEnvironment
.- See Also:
-
ResourceEnvironment
-
Field Summary
Fields inherited from class org.palladiosimulator.generator.fluent.resourceenvironment.structure.ResourceEntity
resourceCreator
-
Constructor Summary
ConstructorDescriptionResourceEnvironmentCreator
(org.palladiosimulator.pcm.resourcetype.ResourceRepository resources, IModelValidator validator) -
Method Summary
Modifier and TypeMethodDescriptionaddToResourceEnvironment
(LinkingResourceCreator linkingResource) Adds aLinkingResource
to the resource environment.addToResourceEnvironment
(ResourceContainerCreator resourceContainer) Adds aResourceContainer
to the resource environment.protected org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment
build()
Turns the entity in the making into the finished entity.org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment
Completes the resource environment creationorg.palladiosimulator.pcm.resourcetype.CommunicationLinkResourceType
Fetches theCommunicationLinkResourceType
matching the given resource.org.palladiosimulator.pcm.resourcetype.ProcessingResourceType
getProcessingResource
(ProcessingResource resource) Fetches theProcessingResourceType
matching the given resource.org.palladiosimulator.pcm.resourceenvironment.ResourceContainer
Fetches theResourceContaienr
with the given name.org.palladiosimulator.pcm.resourcetype.SchedulingPolicy
Fetches theSchedulingPolicy
matching the given policy.Defines the unique name of this current entity.
-
Constructor Details
-
Method Details
-
withName
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.- Specified by:
withName
in interfaceIResourceEnvironment
- Overrides:
withName
in classEntity
- Returns:
- this current entity in the making
-
createResourceEnvironmentNow
public org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment createResourceEnvironmentNow()Description copied from interface:IResourceEnvironmentAddition
Completes the resource environment creation- Specified by:
createResourceEnvironmentNow
in interfaceIResourceEnvironmentAddition
- Returns:
- the created resource environment
- See Also:
-
ResourceEnvironment
-
build
protected org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment build()Description copied from class:Entity
Turns the entity in the making into the finished entity. -
addToResourceEnvironment
public IResourceEnvironmentAddition addToResourceEnvironment(ResourceContainerCreator resourceContainer) Description copied from interface:IResourceEnvironmentAddition
Adds aResourceContainer
to the resource environment. The creator will be turned into the finished container.- Specified by:
addToResourceEnvironment
in interfaceIResourceEnvironmentAddition
- Returns:
- this resource environment
- See Also:
-
ResourceContainer
FluentResourceEnvironmentFactory.newResourceContainer()
-
addToResourceEnvironment
public IResourceEnvironmentAddition addToResourceEnvironment(LinkingResourceCreator linkingResource) Description copied from interface:IResourceEnvironmentAddition
Adds aLinkingResource
to the resource environment. The creator will be turned into the finished resource.- Specified by:
addToResourceEnvironment
in interfaceIResourceEnvironmentAddition
- Returns:
- this resource environment
- See Also:
-
LinkingResource
FluentResourceEnvironmentFactory.newLinkingResource()
-
getResourceContainerByName
public org.palladiosimulator.pcm.resourceenvironment.ResourceContainer getResourceContainerByName(String name) throws IllegalArgumentException Fetches theResourceContaienr
with the given name.- Parameters:
name
-- Returns:
- the
ResourceContainer
- Throws:
IllegalArgumentException
- Thrown if noResourceContainer
has the given name.
-