Class SpecificOriginRetentionPolicy
java.lang.Object
kieker.tools.trace.analysis.filter.visualization.graph.AbstractOriginRetentionPolicy
kieker.tools.trace.analysis.filter.visualization.graph.SpecificOriginRetentionPolicy
- All Implemented Interfaces:
IOriginRetentionPolicy
public class SpecificOriginRetentionPolicy extends AbstractOriginRetentionPolicy
The specific origin retention policy represents the intention that only specific origins should
be retained and corresponds to the kind
OriginRetentionPolicyKind.SPECIFIC. Two specific
retention policies are united by uniting the underlying sets. Instead of calculating the union set,
however, the two policies are chained together using an implicit union/or operator to provide a
higher flexibility.- Since:
- 1.6
-
Constructor Summary
Constructors Modifier Constructor Description protectedSpecificOriginRetentionPolicy(java.util.Set<?> selectedOrigins) -
Method Summary
Modifier and Type Method Description static SpecificOriginRetentionPolicycreateInstance(java.util.Set<?> selectedOrigins)Factory method for the specific origin retention policy.booleandependsOn(IOriginRetentionPolicy policy)Checks whether this origin retention policy depends on the given policy.<T> voidhandleOrigin(AbstractGraphElement<T> element, T origin)Handles a given origin for the given graph element.IOriginRetentionPolicyuniteWith(IOriginRetentionPolicy other)Unites this retention policy with another one and returns the resulting policy.Methods inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractOriginRetentionPolicy
getKind, isCompatibleWith
-
Constructor Details
-
SpecificOriginRetentionPolicy
protected SpecificOriginRetentionPolicy(java.util.Set<?> selectedOrigins)
-
-
Method Details
-
dependsOn
Description copied from class:AbstractOriginRetentionPolicyChecks whether this origin retention policy depends on the given policy.- Specified by:
dependsOnin interfaceIOriginRetentionPolicy- Overrides:
dependsOnin classAbstractOriginRetentionPolicy- Parameters:
policy- The policy to check for dependencies- Returns:
Trueif the policy depends on the given policy,falseotherwise
-
uniteWith
Description copied from interface:IOriginRetentionPolicyUnites this retention policy with another one and returns the resulting policy. Note that the resulting policy is not necessarily one of the original policies.- Parameters:
other- The retention policy to unite this policy with- Returns:
- The resulting policy, which may be a completely new object
-
handleOrigin
Description copied from interface:IOriginRetentionPolicyHandles a given origin for the given graph element.- Type Parameters:
T- The type of the entity within the graph element.- Parameters:
element- The graph element to handle the origin fororigin- The origin to handle
-
createInstance
Factory method for the specific origin retention policy.- Parameters:
selectedOrigins- The origins to retain- Returns:
- See above
-