ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.align.methods
Class AbstractAdvancedMethod

java.lang.Object
  extended by org.schwiebert.abl4j.align.methods.AbstractAdvancedMethod
All Implemented Interfaces:
AlignmentMethod, IConfigurable
Direct Known Subclasses:
AllAlignmentsMethod, WagnerFisherAlignmentMethod

public abstract class AbstractAdvancedMethod
extends Object
implements AlignmentMethod

Base class of "advanced" alignment methods.

Author:
sschwieb
See Also:
AllAlignmentsMethod, WagnerFisherAlignmentMethod

Field Summary
private  boolean EXCLUDE_EMPTY
           
private  Logger logger
           
private  boolean NO_MERGE
           
private  PartType PART_TYPE
           
 
Constructor Summary
AbstractAdvancedMethod()
           
 
Method Summary
 void configure(PropertiesMap properties)
          The Properties AblProperties.PART_TYPE, AblProperties.EXCLUDE_EMPTY and AblProperties.NO_MERGE are read and will be used within the alignment process.
protected  void handleEditOperationAlignment(ITree t1, ITree t2, Vector<EditOperation> alignments)
           
abstract  void handleEditOperationStructure(ITreeBank tb, ITree current)
          Performs the edit operations
protected  void insertConstituent(ITree t, IConstituent c)
           
protected  void insertConstituents(ITree t1, ITree t2, IConstituent c1, IConstituent c2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PART_TYPE

private PartType PART_TYPE

EXCLUDE_EMPTY

private boolean EXCLUDE_EMPTY

NO_MERGE

private boolean NO_MERGE

logger

private final Logger logger
Constructor Detail

AbstractAdvancedMethod

public AbstractAdvancedMethod()
Method Detail

configure

public void configure(PropertiesMap properties)
The Properties AblProperties.PART_TYPE, AblProperties.EXCLUDE_EMPTY and AblProperties.NO_MERGE are read and will be used within the alignment process. Subclasses check additional properties - see WagnerFisherAlignmentMethod and AllAlignmentsMethod for details.

Specified by:
configure in interface IConfigurable

handleEditOperationStructure

public abstract void handleEditOperationStructure(ITreeBank tb,
                                                  ITree current)
Performs the edit operations

Specified by:
handleEditOperationStructure in interface AlignmentMethod

handleEditOperationAlignment

protected final void handleEditOperationAlignment(ITree t1,
                                                  ITree t2,
                                                  Vector<EditOperation> alignments)

insertConstituents

protected final void insertConstituents(ITree t1,
                                        ITree t2,
                                        IConstituent c1,
                                        IConstituent c2)

insertConstituent

protected final void insertConstituent(ITree t,
                                       IConstituent c)

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert