Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

JLibDiff
Class JRCSMyersAlgorithm  view JRCSMyersAlgorithm download JRCSMyersAlgorithm.java

java.lang.Object
  extended byJLibDiff.JRCSMyersAlgorithm
All Implemented Interfaces:
DiffAlgorithm

public class JRCSMyersAlgorithm
extends java.lang.Object
implements DiffAlgorithm


Constructor Summary
JRCSMyersAlgorithm()
           
 
Method Summary
 JRCSMyersPathNode buildPath(java.lang.Object[] orig, java.lang.Object[] rev)
          Computes the minimum diffpath that expresses de differences between the original and revised sequences, according to Gene Myers differencing algorithm.
 java.util.Vector buildRevision(JRCSMyersPathNode path, java.lang.Object[] orig, java.lang.Object[] rev)
          Constructs a Revision from a difference path.
 java.util.Vector makeDiff(java.lang.String[] A, java.lang.String[] B)
           
 void setEol(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRCSMyersAlgorithm

public JRCSMyersAlgorithm()
Method Detail

setEol

public void setEol(java.lang.String s)
Specified by:
setEol in interface DiffAlgorithm

makeDiff

public java.util.Vector makeDiff(java.lang.String[] A,
                                 java.lang.String[] B)
Specified by:
makeDiff in interface DiffAlgorithm

buildPath

public JRCSMyersPathNode buildPath(java.lang.Object[] orig,
                                   java.lang.Object[] rev)
Computes the minimum diffpath that expresses de differences between the original and revised sequences, according to Gene Myers differencing algorithm.


buildRevision

public java.util.Vector buildRevision(JRCSMyersPathNode path,
                                      java.lang.Object[] orig,
                                      java.lang.Object[] rev)
Constructs a Revision from a difference path.