Package tools.descartes.pmx.pcm.builder
Class PCMBuilder
- java.lang.Object
-
- tools.descartes.pmx.builder.ModelBuilder
-
- tools.descartes.pmx.pcm.builder.PCMBuilder
-
- All Implemented Interfaces:
IModelBuilder
public class PCMBuilder extends ModelBuilder implements IModelBuilder
-
-
Field Summary
-
Fields inherited from class tools.descartes.pmx.builder.ModelBuilder
branding, dataTypeMap, outputDir, seperatorChar
-
-
Constructor Summary
Constructors Constructor Description PCMBuilder(String outputDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentToAssembly(String assemblyName, String componentName)
void
addResourceDemand(String service)
void
addUsageScenario(String assemblyName, String interfaceName, String methodName)
void
addUsageScenario(HashMap<String,List<Double>> workload)
EObject
connectAssemblies(String providingAssemblyName, String requiringAssemblyName)
EObject
createAllocation(String assemblyName, String hostName)
EObject
createAssembly(String assemblyName)
EObject
createComponent(String componentName)
EObject
createHost(String hostName, int numCores)
EObject
createInterface(String interfaceName)
EObject
createMethod(kieker.tools.traceAnalysis.systemModel.ComponentType type, kieker.common.util.signature.Signature signature)
void
createNetwork(double averageNetworkDelay, double throughput)
EObject
createProvidedRole(String componentName, String interfaceName)
EObject
createRequiredRole(String requiredComponentName, String interfaceName)
EObject
createSEFF(String componentName, String methodName, List<ExternalCall> externalCalls, String hostName, double meanResourceDemand)
void
saveToFile()
void
saveToFile(String path)
-
Methods inherited from class tools.descartes.pmx.builder.ModelBuilder
addAllocationContext, addAssembly, addComponent, addConnectionToAssemblies, addHost, addInterface, addMethod, addProvidedRole, addRequiredRole, addRole, addSEFF, addSEFF, applyNameFixes, getAssembly, getComponent, getHost, getInterface, getMethod, getOutputDirectory, getRole, getRoles, getSEFF, isRole, isSEFF
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tools.descartes.pmx.builder.IModelBuilder
addAllocationContext, addAssembly, addComponent, addConnectionToAssemblies, addHost, addInterface, addMethod, addProvidedRole, addRequiredRole, addSEFF, addSEFF, getAssembly, getInterface, getMethod, getOutputDirectory, getRole, getSEFF, isSEFF
-
-
-
-
Constructor Detail
-
PCMBuilder
public PCMBuilder(String outputDir)
-
-
Method Detail
-
connectAssemblies
public EObject connectAssemblies(String providingAssemblyName, String requiringAssemblyName)
- Specified by:
connectAssemblies
in interfaceIModelBuilder
-
addUsageScenario
public void addUsageScenario(String assemblyName, String interfaceName, String methodName)
-
createAssembly
public EObject createAssembly(String assemblyName)
- Specified by:
createAssembly
in interfaceIModelBuilder
-
createAllocation
public EObject createAllocation(String assemblyName, String hostName)
- Specified by:
createAllocation
in interfaceIModelBuilder
-
createComponent
public EObject createComponent(String componentName)
- Specified by:
createComponent
in interfaceIModelBuilder
-
saveToFile
public void saveToFile(String path)
- Specified by:
saveToFile
in interfaceIModelBuilder
-
saveToFile
public void saveToFile()
- Specified by:
saveToFile
in interfaceIModelBuilder
-
createRequiredRole
public EObject createRequiredRole(String requiredComponentName, String interfaceName)
- Specified by:
createRequiredRole
in interfaceIModelBuilder
-
createProvidedRole
public EObject createProvidedRole(String componentName, String interfaceName)
- Specified by:
createProvidedRole
in interfaceIModelBuilder
-
createInterface
public EObject createInterface(String interfaceName)
- Specified by:
createInterface
in interfaceIModelBuilder
-
createMethod
public EObject createMethod(kieker.tools.traceAnalysis.systemModel.ComponentType type, kieker.common.util.signature.Signature signature)
- Specified by:
createMethod
in interfaceIModelBuilder
-
createHost
public EObject createHost(String hostName, int numCores)
- Specified by:
createHost
in interfaceIModelBuilder
-
createNetwork
public void createNetwork(double averageNetworkDelay, double throughput)
- Specified by:
createNetwork
in interfaceIModelBuilder
-
addComponentToAssembly
public void addComponentToAssembly(String assemblyName, String componentName)
- Specified by:
addComponentToAssembly
in interfaceIModelBuilder
-
createSEFF
public EObject createSEFF(String componentName, String methodName, List<ExternalCall> externalCalls, String hostName, double meanResourceDemand)
- Specified by:
createSEFF
in interfaceIModelBuilder
-
addResourceDemand
public void addResourceDemand(String service)
- Specified by:
addResourceDemand
in interfaceIModelBuilder
-
addUsageScenario
public void addUsageScenario(HashMap<String,List<Double>> workload)
- Specified by:
addUsageScenario
in interfaceIModelBuilder
-
-