com.topologi.diffx.algorithm
Interface DiffXAlgorithm

All Known Implementing Classes:
DiffXAlgorithmBase, DiffXFitopsy, DiffXFitsy, DiffXFitWesyma, DiffXKumarRangan, GuanoAlgorithm

public interface DiffXAlgorithm

Performs the diff comparison of sequences of events.

Version:
15 December 2004
Author:
Christophe Lauret

Method Summary
 EventSequence getFirstSequence()
          Returns the first sequence used for the diff-x comparison.
 EventSequence getSecondSequence()
          Returns the second sequence used for the diff-x comparison.
 int length()
          Returns the length of the longest common subsequence.
 void process(DiffXFormatter formatter)
          Performs the comparison and writes the results using the specified Diff-X formatter.
 

Method Detail

length

int length()
Returns the length of the longest common subsequence.

Returns:
the length of the longest common subsequence.

process

void process(DiffXFormatter formatter)
             throws IOException
Performs the comparison and writes the results using the specified Diff-X formatter.

Parameters:
formatter - The formatter that will handle the output.
Throws:
IOException - If thrown by the formatter.

getFirstSequence

EventSequence getFirstSequence()
Returns the first sequence used for the diff-x comparison.

Returns:
the first sequence used for the diff-x comparison.

getSecondSequence

EventSequence getSecondSequence()
Returns the second sequence used for the diff-x comparison.

Returns:
the second sequence used for the diff-x comparison.