Package tools.descartes.pmx.builder
Class ModelBuilder
- java.lang.Object
-
- tools.descartes.pmx.builder.ModelBuilder
-
- All Implemented Interfaces:
IModelBuilder
- Direct Known Subclasses:
PCMBuilder
public abstract class ModelBuilder extends Object implements IModelBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static String
branding
Map<String,EObject>
dataTypeMap
String
outputDir
static String
seperatorChar
-
Constructor Summary
Constructors Constructor Description ModelBuilder(String outputDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EObject
addAllocationContext(String componentName, String hostName)
EObject
addAssembly(String name)
void
addComponent(String componentName)
void
addConnectionToAssemblies(String requiringAssemblyName, String providingAssemblyName)
void
addHost(String hostName, int numCores)
void
addInterface(String interfaceName)
void
addMethod(kieker.tools.traceAnalysis.systemModel.ComponentType type, kieker.common.util.signature.Signature signature)
void
addProvidedRole(String providedComponentName, String interfaceName)
void
addRequiredRole(String requiredComponentName, String interfaceName)
void
addRole(String roleName, EObject role)
void
addSEFF(String componentName, String methodName, List<ExternalCall> externalCalls, String hostName, double meanResourceDemand)
void
addSEFF(String componentName, String methodName, EObject seff)
static String
applyNameFixes(String componentName)
EObject
getAssembly(String assemblyName)
EObject
getComponent(String componentName)
EObject
getHost(String hostName)
EObject
getInterface(String interfaceName)
EObject
getMethod(String methodName)
String
getOutputDirectory()
EObject
getRole(String roleName)
Set<String>
getRoles()
EObject
getSEFF(String componentName, String methodName)
boolean
isRole(String roleName)
boolean
isSEFF(String componentName, String methodName)
-
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
addComponentToAssembly, addResourceDemand, addUsageScenario, connectAssemblies, createAllocation, createAssembly, createComponent, createHost, createInterface, createMethod, createNetwork, createProvidedRole, createRequiredRole, createSEFF, saveToFile, saveToFile
-
-
-
-
Constructor Detail
-
ModelBuilder
public ModelBuilder(String outputDir)
-
-
Method Detail
-
getOutputDirectory
public String getOutputDirectory()
- Specified by:
getOutputDirectory
in interfaceIModelBuilder
-
addAllocationContext
public EObject addAllocationContext(String componentName, String hostName)
- Specified by:
addAllocationContext
in interfaceIModelBuilder
-
addInterface
public void addInterface(String interfaceName)
- Specified by:
addInterface
in interfaceIModelBuilder
-
addAssembly
public EObject addAssembly(String name)
- Specified by:
addAssembly
in interfaceIModelBuilder
-
getAssembly
public EObject getAssembly(String assemblyName)
- Specified by:
getAssembly
in interfaceIModelBuilder
-
addConnectionToAssemblies
public void addConnectionToAssemblies(String requiringAssemblyName, String providingAssemblyName)
- Specified by:
addConnectionToAssemblies
in interfaceIModelBuilder
-
addHost
public void addHost(String hostName, int numCores)
- Specified by:
addHost
in interfaceIModelBuilder
-
addComponent
public void addComponent(String componentName)
- Specified by:
addComponent
in interfaceIModelBuilder
-
addRequiredRole
public void addRequiredRole(String requiredComponentName, String interfaceName)
- Specified by:
addRequiredRole
in interfaceIModelBuilder
-
addProvidedRole
public void addProvidedRole(String providedComponentName, String interfaceName)
- Specified by:
addProvidedRole
in interfaceIModelBuilder
-
getInterface
public EObject getInterface(String interfaceName)
- Specified by:
getInterface
in interfaceIModelBuilder
-
addMethod
public void addMethod(kieker.tools.traceAnalysis.systemModel.ComponentType type, kieker.common.util.signature.Signature signature)
- Specified by:
addMethod
in interfaceIModelBuilder
-
getMethod
public EObject getMethod(String methodName)
- Specified by:
getMethod
in interfaceIModelBuilder
-
getRole
public EObject getRole(String roleName)
- Specified by:
getRole
in interfaceIModelBuilder
-
isRole
public boolean isRole(String roleName)
-
isSEFF
public boolean isSEFF(String componentName, String methodName)
- Specified by:
isSEFF
in interfaceIModelBuilder
-
addSEFF
public void addSEFF(String componentName, String methodName, EObject seff)
- Specified by:
addSEFF
in interfaceIModelBuilder
-
addSEFF
public void addSEFF(String componentName, String methodName, List<ExternalCall> externalCalls, String hostName, double meanResourceDemand)
- Specified by:
addSEFF
in interfaceIModelBuilder
-
getSEFF
public EObject getSEFF(String componentName, String methodName)
- Specified by:
getSEFF
in interfaceIModelBuilder
-
-