java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.refinement.RelationTypeRefiner
All Implemented Interfaces:
Refiner

public class RelationTypeRefiner extends Object implements Refiner
The relation type refiner refines all execution results in such a way that only the specified reltion type is used.
  • Field Details

    • relation

      protected CorrespondenceRelation relation
    • includeRelation

      protected boolean includeRelation
      If true, the refined results contains only the provided relation. If false the refine result contain all but not the provided relation.
  • Constructor Details

    • RelationTypeRefiner

      public RelationTypeRefiner(CorrespondenceRelation relation, boolean includeRelation)
      Constructor
      Parameters:
      relation - the relation to filter for
      includeRelation - if true, the refined results contains only the provided relation. If false the refine result contain all but not the provided relation.
    • RelationTypeRefiner

      public RelationTypeRefiner(CorrespondenceRelation relation)
  • Method Details

    • refine

      public ExecutionResult refine(ExecutionResult toBeRefined)
      Description copied from interface: Refiner
      Create a new refined ExecutionResult from an ExecutionResult. Examples are: only class matches, only non trivial matches etc.
      Specified by:
      refine in interface Refiner
      Parameters:
      toBeRefined - ExecutionResult which should be refined
      Returns:
      a new ExecutionResult which is refined
    • refineMapping

      public Alignment refineMapping(Alignment originalAlignment)
    • getRelation

      public CorrespondenceRelation getRelation()
    • isIncludeRelation

      public boolean isIncludeRelation()
      Returns if the relation is included or excluded from the refined result. If true, the refined results contains only the provided relation. If false the refine result contain all but not the provided relation.
      Returns:
      if the relation is included or excluded
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object