Class AllocationComponentOperationPairFactory
java.lang.Object
kieker.tools.trace.analysis.systemModel.repository.AbstractSystemSubRepository
kieker.tools.trace.analysis.systemModel.repository.AllocationComponentOperationPairFactory
public class AllocationComponentOperationPairFactory extends AbstractSystemSubRepository
- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
Fields Modifier and Type Field Description static AllocationComponentOperationPair
ROOT_PAIR
Fields inherited from class kieker.tools.trace.analysis.systemModel.repository.AbstractSystemSubRepository
ROOT_ELEMENT_ID
-
Constructor Summary
Constructors Constructor Description AllocationComponentOperationPairFactory(SystemModelRepository systemFactory)
Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description AllocationComponentOperationPair
getPairById(int id)
Returns the instance for the passed ID; null if no instance with this ID is available.AllocationComponentOperationPair
getPairInstanceByPair(AllocationComponent allocationComponent, Operation operation)
Returns a corresponding pair instance (existing or newly created).java.util.Collection<AllocationComponentOperationPair>
getPairs()
Delivers all available allocation-component-operation pairs.Methods inherited from class kieker.tools.trace.analysis.systemModel.repository.AbstractSystemSubRepository
getAndIncrementNextId, getSystemFactory
-
Field Details
-
Constructor Details
-
AllocationComponentOperationPairFactory
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
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
Delivers all available allocation-component-operation pairs.- Returns:
- A collection containing all available pairs.
-