Class AssemblyRepository
java.lang.Object
kieker.tools.trace.analysis.systemModel.repository.AbstractSystemSubRepository
kieker.tools.trace.analysis.systemModel.repository.AssemblyRepository
public class AssemblyRepository extends AbstractSystemSubRepository
- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
Fields Modifier and Type Field Description static AssemblyComponentROOT_ASSEMBLY_COMPONENTThis constant represents the root assembly component.Fields inherited from class kieker.tools.trace.analysis.systemModel.repository.AbstractSystemSubRepository
ROOT_ELEMENT_ID -
Constructor Summary
Constructors Constructor Description AssemblyRepository(SystemModelRepository systemFactory)Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description AssemblyComponentcreateAndRegisterAssemblyComponentInstance(java.lang.String namedIdentifier, ComponentType componentType)Creates a new assembly component instance and registers it as well.java.util.Collection<AssemblyComponent>getAssemblyComponentInstances()Delivers all available assembly component instances.AssemblyComponentlookupAssemblyComponentById(int containerId)Returns the instance for the passed ID; null if no instance with this ID exists.AssemblyComponentlookupAssemblyComponentInstanceByNamedIdentifier(java.lang.String namedIdentifier)Returns the instance for the passed factoryIdentifier; null if no instance with this factoryIdentifier.Methods inherited from class kieker.tools.trace.analysis.systemModel.repository.AbstractSystemSubRepository
getAndIncrementNextId, getSystemFactory
-
Field Details
-
ROOT_ASSEMBLY_COMPONENT
This constant represents the root assembly component.
-
-
Constructor Details
-
AssemblyRepository
Creates a new instance of this class using the given parameters.- Parameters:
systemFactory- The system factory.
-
-
Method Details
-
lookupAssemblyComponentById
Returns the instance for the passed ID; null if no instance with this ID exists.- Parameters:
containerId- The ID to search for.- Returns:
- The component for the given ID if it exists; null otherwise.
-
lookupAssemblyComponentInstanceByNamedIdentifier
public final AssemblyComponent lookupAssemblyComponentInstanceByNamedIdentifier(java.lang.String namedIdentifier)Returns the instance for the passed factoryIdentifier; null if no instance with this factoryIdentifier.- Parameters:
namedIdentifier- The identifier to search for.- Returns:
- The component for the given identifier if it exists; null otherwise.
-
createAndRegisterAssemblyComponentInstance
public final AssemblyComponent createAndRegisterAssemblyComponentInstance(java.lang.String namedIdentifier, ComponentType componentType)Creates a new assembly component instance and registers it as well.- Parameters:
namedIdentifier- The identifier of the new component.componentType- The new component type.- Returns:
- The newly created assembly component.
-
getAssemblyComponentInstances
Delivers all available assembly component instances.- Returns:
- A collection containing all components.
-