org.schwiebert.abl4j.align.methods
Class AbstractAdvancedMethod
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PART_TYPE
private PartType PART_TYPE
EXCLUDE_EMPTY
private boolean EXCLUDE_EMPTY
NO_MERGE
private boolean NO_MERGE
logger
private final Logger logger
AbstractAdvancedMethod
public AbstractAdvancedMethod()
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)
© 2007 Stephan Schwiebert