Class NetworkLoadingComponentBuilder
- java.lang.Object
-
- de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.AbstractComponentBuilder
-
- de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.BasicComponentBuilder
-
- de.uka.ipd.sdq.pcm.transformations.builder.resourceconsumer.NetworkLoadingComponentBuilder
-
- All Implemented Interfaces:
IBuilder
,IComponentBuilder
public class NetworkLoadingComponentBuilder extends BasicComponentBuilder
Generates a BasicComponent which determines and loads the underlying network resource with the message's size of the message to transmit. Respects both requesting service and returning from service. Assumes that the message size is contained in the variable stream.BYTESIZE.
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.BasicComponentBuilder
container, seffBuilder
-
Fields inherited from class de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.AbstractComponentBuilder
myAssemblyContext, myComponent, myModels, myOperationProvidedRole, myOperationRequiredRole
-
-
Constructor Summary
Constructors Constructor Description NetworkLoadingComponentBuilder(PCMAndCompletionModelHolder models, org.palladiosimulator.pcm.repository.OperationInterface interf, org.palladiosimulator.pcm.resourceenvironment.LinkingResource linkingRes)
Constructor of the network load simulator component
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build()
Called to perform this builders actionsprotected org.palladiosimulator.pcm.allocation.AllocationContext
createAllocationContext(org.palladiosimulator.pcm.core.composition.AssemblyContext assembly)
protected DelegatorComponentSeffBuilder
getSeffBuilder()
Returns a SEFF builder which adds a network demand depending on the parameters passed-
Methods inherited from class de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.BasicComponentBuilder
createComponent, getBasicComponent
-
Methods inherited from class de.uka.ipd.sdq.pcm.transformations.builder.abstractbuilder.AbstractComponentBuilder
addOperationProvidedRole, addOperationRequiredRole, findResourceType, getAssemblyContext, getComponent, getNextCounter, getOperationProvidedRole, getOperationRequiredRole
-
-
-
-
Constructor Detail
-
NetworkLoadingComponentBuilder
public NetworkLoadingComponentBuilder(PCMAndCompletionModelHolder models, org.palladiosimulator.pcm.repository.OperationInterface interf, org.palladiosimulator.pcm.resourceenvironment.LinkingResource linkingRes)
Constructor of the network load simulator component- Parameters:
models
- Container for the PCM model instance to modifyinterf
- Interface of the component, used to delgate the method calls to its targetlinkingRes
- The linking resource on which the load is created
-
-
Method Detail
-
createAllocationContext
protected org.palladiosimulator.pcm.allocation.AllocationContext createAllocationContext(org.palladiosimulator.pcm.core.composition.AssemblyContext assembly)
- Overrides:
createAllocationContext
in classBasicComponentBuilder
-
getSeffBuilder
protected DelegatorComponentSeffBuilder getSeffBuilder()
Returns a SEFF builder which adds a network demand depending on the parameters passed- Specified by:
getSeffBuilder
in classBasicComponentBuilder
-
build
public void build()
Description copied from interface:IBuilder
Called to perform this builders actions- Specified by:
build
in interfaceIBuilder
- Overrides:
build
in classBasicComponentBuilder
-
-