Package kieker.model.repository
Class AssemblyComponentOperationPairFactory
java.lang.Object
kieker.model.repository.AbstractRepository
kieker.model.repository.AssemblyComponentOperationPairFactory
public class AssemblyComponentOperationPairFactory extends AbstractRepository
- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
Fields Modifier and Type Field Description static AssemblyComponentOperationPair
ROOT_PAIR
-
Constructor Summary
Constructors Constructor Description AssemblyComponentOperationPairFactory(SystemModelRepository systemFactory)
Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description AssemblyComponentOperationPair
getPairById(int id)
AssemblyComponentOperationPair
getPairInstanceByPair(AssemblyComponent assemblyComponent, Operation operation)
Returns a corresponding pair instance (existing or newly created).java.util.Collection<AssemblyComponentOperationPair>
getPairs()
AssemblyComponentOperationPair
getRootPair()
Methods inherited from class kieker.model.repository.AbstractRepository
getAndIncrementNextId, getSystemFactory
-
Field Details
-
Constructor Details
-
AssemblyComponentOperationPairFactory
Creates a new instance of this class using the given parameters.- Parameters:
systemFactory
- The system factory.
-
-
Method Details
-
getPairInstanceByPair
public final AssemblyComponentOperationPair getPairInstanceByPair(AssemblyComponent assemblyComponent, Operation operation)Returns a corresponding pair instance (existing or newly created).- Parameters:
assemblyComponent
- The assemble component for the pair.operation
- The operation for the pair.- Returns:
- The corresponding pair instance if it exists, otherwise a new one.
-
getPairById
- Parameters:
id
- The ID of the instance in question.- Returns:
- The instance for the passed ID; null if no instance with this ID is available.
-
getPairs
-
getRootPair
-