ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.select
Class OverlapInTree

java.lang.Object
  extended by org.schwiebert.abl4j.select.OverlapInTree
All Implemented Interfaces:
Predicate<IConstituent<?>>

public class OverlapInTree
extends Object
implements Predicate<IConstituent<?>>

Helper class that represents an overlap in a tree. Two constituents a and b overlap, if their boundaries are related as represented here:

 a __|_____________|____________
 b      |              |
       
 a ______|____________|_________
 b  |             |
 

Author:
Menno van Zaanen (menno@ics.mq.edu.au) (original C++ Version), Jeroen Geertzen (j.geertzen@uvt.nl) (modifications in C++ Version), Stephan Schwiebert (sschwieb@spinfo.uni-koeln.de) (Java-Implementation)

Field Summary
private  ITree<?> base
           
 
Constructor Summary
OverlapInTree(ITree<?> c)
           
 
Method Summary
 boolean matches(IConstituent<?> current)
          Returns true if the Predicate is true for Element e, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

base

private ITree<?> base
Constructor Detail

OverlapInTree

public OverlapInTree(ITree<?> c)
Method Detail

matches

public boolean matches(IConstituent<?> current)
Description copied from interface: Predicate
Returns true if the Predicate is true for Element e, false otherwise.

Specified by:
matches in interface Predicate<IConstituent<?>>
Parameters:
current - an Element
Returns:
true or false

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert