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
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
ConstructorDescriptionNetworkLoadingComponentBuilder
(PCMAndCompletionModelHolder models, org.palladiosimulator.pcm.repository.OperationInterface interf, org.palladiosimulator.pcm.resourceenvironment.LinkingResource linkingRes) Constructor of the network load simulator component -
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 DelegatorComponentSeffBuilder
Returns a SEFF builder which adds a network demand depending on the parameters passedMethods 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 Details
-
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 Details
-
createAllocationContext
protected org.palladiosimulator.pcm.allocation.AllocationContext createAllocationContext(org.palladiosimulator.pcm.core.composition.AssemblyContext assembly) - Overrides:
createAllocationContext
in classBasicComponentBuilder
-
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
-