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 Details

  • Constructor Details

    • AssemblyRepository

      public AssemblyRepository​(SystemModelRepository systemFactory)
      Creates a new instance of this class using the given parameters.
      Parameters:
      systemFactory - The system factory.
  • Method Details

    • lookupAssemblyComponentById

      public final AssemblyComponent lookupAssemblyComponentById​(int containerId)
      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

      public final java.util.Collection<AssemblyComponent> getAssemblyComponentInstances()
      Delivers all available assembly component instances.
      Returns:
      A collection containing all components.