Class AllocationComponentOperationPairFactory

java.lang.Object
kieker.model.repository.AbstractRepository
kieker.model.repository.AllocationComponentOperationPairFactory

public class AllocationComponentOperationPairFactory extends AbstractRepository
Since:
1.1
Author:
Andre van Hoorn
  • Field Details

  • Constructor Details

    • AllocationComponentOperationPairFactory

      public AllocationComponentOperationPairFactory(SystemModelRepository systemFactory)
      Creates a new instance of this class using the given parameters.
      Parameters:
      systemFactory - The repository for this component.
  • Method Details

    • getPairInstanceByPair

      public final AllocationComponentOperationPair getPairInstanceByPair(AllocationComponent allocationComponent, Operation operation)
      Returns a corresponding pair instance (existing or newly created).
      Parameters:
      allocationComponent - The first element of the pair (the allocation component).
      operation - The second element of the pair (the operation).
      Returns:
      A (possible new) pair containing both elements.
    • getPairById

      public final AllocationComponentOperationPair getPairById(int id)
      Returns the instance for the passed ID; null if no instance with this ID is available.
      Parameters:
      id - The ID of the instance in question.
      Returns:
      The corresponding pair to the given ID if it exists, null otherwise.
    • getPairs

      public final Collection<AllocationComponentOperationPair> getPairs()
      Delivers all available allocation-component-operation pairs.
      Returns:
      A collection containing all available pairs.