java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDPImpl
All Implemented Interfaces:
SMListDP, SimilarityMeasure
Direct Known Subclasses:
SMListDTWImpl, SMListSWAImpl

public abstract class SMListDPImpl extends SimilarityMeasureImpl implements SMListDP
  • Field Details

    • forceAlignmentEndsWithQuery

      protected boolean forceAlignmentEndsWithQuery
      Whether the alignments shall end with the query.
    • normScore

      protected boolean normScore
      Whether or not to return the normalized score.
    • ignoreDifferentBeginnings

      protected SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES ignoreDifferentBeginnings
    • returnLocalSimilarities

      protected boolean returnLocalSimilarities
    • halvingDistancePercentage

      protected double halvingDistancePercentage
      Percentage of the query length as position, where temporal factor shall equal one half.
    • dataSimilarityToUse

      protected String dataSimilarityToUse
      Name of the data similarity measure to be used for comparing data nodes.
    • localSimilarityToUse

      protected String localSimilarityToUse
      Name of the task similarity measure to be used.
  • Constructor Details

    • SMListDPImpl

      public SMListDPImpl()
  • Method Details

    • getHalvingDistancePercentage

      public double getHalvingDistancePercentage()
      Specified by:
      getHalvingDistancePercentage in interface SMListDP
    • setHalvingDistancePercentage

      public void setHalvingDistancePercentage(double halvingDistancePercentage)
      Description copied from interface: SMListDP
      Set the percentage of the query length, at which the temporal factor shall equal one half.
      Specified by:
      setHalvingDistancePercentage in interface SMListDP
      Parameters:
      halvingDistancePercentage - Distance as percentage between 0 and 1.
    • getDataSimilarityToUse

      public String getDataSimilarityToUse()
      Specified by:
      getDataSimilarityToUse in interface SMListDP
    • setDataSimilarityToUse

      public void setDataSimilarityToUse(String name)
      Description copied from interface: SMListDP
      Set the data similarity to be used during local node similarity calculation.
      Specified by:
      setDataSimilarityToUse in interface SMListDP
      Parameters:
      name - Name of the sim measure
    • getLocalSimilarityToUse

      public String getLocalSimilarityToUse()
      Specified by:
      getLocalSimilarityToUse in interface SMListDP
    • setLocalSimilarityToUse

      public void setLocalSimilarityToUse(String name)
      Description copied from interface: SMListDP
      Set the task similarity to be used during local node similarity calculation.
      Specified by:
      setLocalSimilarityToUse in interface SMListDP
      Parameters:
      name - Name of the sim measure
    • setNormScore

      public void setNormScore(boolean normScore)
      Specified by:
      setNormScore in interface SMListDP
    • getForceAlignmentEndsWithQuery

      public boolean getForceAlignmentEndsWithQuery()
      Description copied from interface: SMListDP
      Return property of similarity measure to find an alignment that ends with the query or not.
      Specified by:
      getForceAlignmentEndsWithQuery in interface SMListDP
      Returns:
    • setForceAlignmentEndsWithQuery

      public void setForceAlignmentEndsWithQuery(boolean endWithQuery)
      Description copied from interface: SMListDP
      Set property of similarity measures to find an alignment that ends with the query.
      Specified by:
      setForceAlignmentEndsWithQuery in interface SMListDP
      Parameters:
      endWithQuery - Whether the alignment shall end with the query. Defaults to true.
    • setIgnoreDifferentBeginnings

      public void setIgnoreDifferentBeginnings(SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES strategy)
      Description copied from interface: SMListDP
      Sets a bool whether different beginnings are considered in the similarity calculation or not.
      Specified by:
      setIgnoreDifferentBeginnings in interface SMListDP
      Parameters:
      strategy - NONE, IGNORE_DIFFERENT_BEGINNINGS_CASE or IGNORE_DIFFERENT_BEGINNINGS_CASE_AND_QUERY
      See Also:
    • getIgnoreDifferentBeginnings

      public SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES getIgnoreDifferentBeginnings()
      Description copied from interface: SMListDP
      Returns a bool whether different beginnings are considered in the similarity calculation or not.
      Specified by:
      getIgnoreDifferentBeginnings in interface SMListDP
      Returns:
      true or false
    • setReturnLocalSimilarities

      public void setReturnLocalSimilarities(boolean returnLocalSimilarities)
      Description copied from interface: SMListDP
      Sets a parameter weather a mapping of similarities of each query and case object should be calculated.
      Specified by:
      setReturnLocalSimilarities in interface SMListDP
      Parameters:
      returnLocalSimilarities - true or false.
    • getReturnLocalSimilarities

      public boolean getReturnLocalSimilarities()
      Description copied from interface: SMListDP
      Returns a bool weather the local similarities should be calculated or not.
      Specified by:
      getReturnLocalSimilarities in interface SMListDP
      Returns:
      true or false