Package kieker.model.repository
Class AssemblyRepository
java.lang.Object
kieker.model.repository.AbstractRepository
kieker.model.repository.AssemblyRepository
public class AssemblyRepository extends AbstractRepository
- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
Fields Modifier and Type Field Description static AssemblyComponent
ROOT_ASSEMBLY_COMPONENT
This constant represents the root assembly component. -
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 AssemblyComponent
createAndRegisterAssemblyComponentInstance(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.AssemblyComponent
lookupAssemblyComponentById(int containerId)
Returns the instance for the passed ID; null if no instance with this ID exists.AssemblyComponent
lookupAssemblyComponentInstanceByNamedIdentifier(java.lang.String namedIdentifier)
Returns the instance for the passed factoryIdentifier; null if no instance with this factoryIdentifier.Methods inherited from class kieker.model.repository.AbstractRepository
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.
-