Class DiffXAlgorithmBase

java.lang.Object
com.topologi.diffx.algorithm.DiffXAlgorithmBase
All Implemented Interfaces:
DiffXAlgorithm
Direct Known Subclasses:
DiffXFitopsy, DiffXFitsy, DiffXFitWesyma, DiffXKumarRangan

public abstract class DiffXAlgorithmBase extends Object implements DiffXAlgorithm
A base class for Diff-X algorithms.
Version:
15 December 2004
  • Field Details

    • sequence1

      protected final EventSequence sequence1
      The first sequence of events to test.
    • sequence2

      protected final EventSequence sequence2
      The second sequence of events to test.
    • length1

      protected final int length1
      Length of the first sequence to compare.
    • length2

      protected final int length2
      Length of the second sequence to compare.
    • length

      protected int length
      The length of the LCS.
  • Constructor Details

    • DiffXAlgorithmBase

      public DiffXAlgorithmBase(EventSequence seq0, EventSequence seq1)
      Creates a new DiffX algorithm base class.
      Parameters:
      seq0 - The first sequence to compare.
      seq1 - The second sequence to compare.
  • Method Details

    • getFirstSequence

      public final EventSequence getFirstSequence()
      Returns the first sequence used for the diff-x comparison.
      Specified by:
      getFirstSequence in interface DiffXAlgorithm
      Returns:
      the first sequence used for the diff-x comparison.
    • getSecondSequence

      public final EventSequence getSecondSequence()
      Returns the second sequence used for the diff-x comparison.
      Specified by:
      getSecondSequence in interface DiffXAlgorithm
      Returns:
      the second sequence used for the diff-x comparison.