ndiff.phases
Class DeltaDerive

java.lang.Object
  extended by ndiff.phases.Phase
      extended by ndiff.phases.DeltaDerive

public class DeltaDerive
extends Phase

Author:
schirinz Deriva dalle informazioni rilevate nell fasi precedenti, un set di operazioni che rappresentano i cambiamenti da effetuare sul documento originale per ottenere il documento modificato

Constructor Summary
DeltaDerive(NxN SearchField, Relation Rel, Dtree Ta, Dtree Tb, Nconfig cfg)
          Costruttore
 
Method Summary
 void compute()
          Esegue le operazioni della fase
 METAdelta derive()
          Calcola il METAdelta e lo restituisce
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeltaDerive

public DeltaDerive(NxN SearchField,
                   Relation Rel,
                   Dtree Ta,
                   Dtree Tb,
                   Nconfig cfg)
Costruttore

Parameters:
SearchField - Campi di ricerca rimasti in NxN
Rel - Relazioni che sono state rilevate tra i nodi dei documenti
Ta - Dtree relativo al documento originale
Tb - Dtree relativo al documento modificato
cfg - Nconfig relativo alla configurazione del Diff
Method Detail

derive

public METAdelta derive()
                 throws ComputePhaseException
Calcola il METAdelta e lo restituisce

Returns:
METAdelta calcolato
Throws:
ComputePhaseException - Solleva l'eccezione nel caso in cui si hanno problemi durante la trasformazione

compute

public void compute()
             throws ComputePhaseException
Description copied from class: Phase
Esegue le operazioni della fase

Throws:
ComputePhaseException - Solleva l'eccezione nel caso si abbia un'errore durante la fase