Class BasicComponentBuilder
java.lang.Object
de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.AbstractComponentBuilder
de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.BasicComponentBuilder
- All Implemented Interfaces:
IBuilder
,IComponentBuilder
- Direct Known Subclasses:
BasicMiddlewareComponentBuilder
,LocalCommunicationComponentBuilder
,NetworkLoadingComponentBuilder
A builder for creating basic components and their assembly and allocation context. The component
has a single provided and required interface which can be optionally the same (usefull if used
with a delegating seff builder).
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.palladiosimulator.pcm.resourceenvironment.ResourceContainer
protected DelegatorComponentSeffBuilder
Fields inherited from class de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.AbstractComponentBuilder
myAssemblyContext, myComponent, myModels, myOperationProvidedRole, myOperationRequiredRole
-
Constructor Summary
ConstructorDescriptionBasicComponentBuilder
(PCMAndCompletionModelHolder models, org.palladiosimulator.pcm.repository.OperationInterface providedIf, org.palladiosimulator.pcm.repository.OperationInterface requiredIf, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container, String componentName) BasicComponentBuilder
(PCMAndCompletionModelHolder models, org.palladiosimulator.pcm.repository.OperationInterface interf, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container, String componentName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
build()
Called to perform this builders actionsprotected org.palladiosimulator.pcm.allocation.AllocationContext
createAllocationContext
(org.palladiosimulator.pcm.core.composition.AssemblyContext assembly) protected org.palladiosimulator.pcm.repository.RepositoryComponent
createComponent
(String componentName) protected org.palladiosimulator.pcm.repository.BasicComponent
protected abstract ISeffBuilder
Methods inherited from class de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.AbstractComponentBuilder
addOperationProvidedRole, addOperationRequiredRole, findResourceType, getAssemblyContext, getComponent, getNextCounter, getOperationProvidedRole, getOperationRequiredRole
-
Field Details
-
seffBuilder
-
container
protected org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container
-
-
Constructor Details
-
BasicComponentBuilder
public BasicComponentBuilder(PCMAndCompletionModelHolder models, org.palladiosimulator.pcm.repository.OperationInterface interf, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container, String componentName) -
BasicComponentBuilder
public BasicComponentBuilder(PCMAndCompletionModelHolder models, org.palladiosimulator.pcm.repository.OperationInterface providedIf, org.palladiosimulator.pcm.repository.OperationInterface requiredIf, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer container, String componentName)
-
-
Method Details
-
getSeffBuilder
-
build
public void build()Description copied from interface:IBuilder
Called to perform this builders actions- Specified by:
build
in interfaceIBuilder
- Overrides:
build
in classAbstractComponentBuilder
-
createAllocationContext
protected org.palladiosimulator.pcm.allocation.AllocationContext createAllocationContext(org.palladiosimulator.pcm.core.composition.AssemblyContext assembly) -
getBasicComponent
protected org.palladiosimulator.pcm.repository.BasicComponent getBasicComponent() -
createComponent
protected org.palladiosimulator.pcm.repository.RepositoryComponent createComponent(String componentName) - Specified by:
createComponent
in classAbstractComponentBuilder
-