Package com.topologi.diffx.algorithm
Class DiffXAlgorithmBase
java.lang.Object
com.topologi.diffx.algorithm.DiffXAlgorithmBase
- All Implemented Interfaces:
DiffXAlgorithm
- Direct Known Subclasses:
DiffXFitopsy,DiffXFitsy,DiffXFitWesyma,DiffXKumarRangan
A base class for Diff-X algorithms.
- Version:
- 15 December 2004
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe length of the LCS.protected final intLength of the first sequence to compare.protected final intLength of the second sequence to compare.protected final EventSequenceThe first sequence of events to test.protected final EventSequenceThe second sequence of events to test. -
Constructor Summary
ConstructorsConstructorDescriptionDiffXAlgorithmBase(EventSequence seq0, EventSequence seq1) Creates a new DiffX algorithm base class. -
Method Summary
Modifier and TypeMethodDescriptionfinal EventSequenceReturns the first sequence used for the diff-x comparison.final EventSequenceReturns the second sequence used for the diff-x comparison.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.topologi.diffx.algorithm.DiffXAlgorithm
length, process
-
Field Details
-
sequence1
The first sequence of events to test. -
sequence2
The second sequence of events to test. -
length1
protected final int length1Length of the first sequence to compare. -
length2
protected final int length2Length of the second sequence to compare. -
length
protected int lengthThe length of the LCS.
-
-
Constructor Details
-
DiffXAlgorithmBase
Creates a new DiffX algorithm base class.- Parameters:
seq0- The first sequence to compare.seq1- The second sequence to compare.
-
-
Method Details
-
getFirstSequence
Returns the first sequence used for the diff-x comparison.- Specified by:
getFirstSequencein interfaceDiffXAlgorithm- Returns:
- the first sequence used for the diff-x comparison.
-
getSecondSequence
Returns the second sequence used for the diff-x comparison.- Specified by:
getSecondSequencein interfaceDiffXAlgorithm- Returns:
- the second sequence used for the diff-x comparison.
-