org.schwiebert.abl4j.select
Class OverlapInTree
java.lang.Object
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)
|
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 |
base
private ITree<?> base
OverlapInTree
public OverlapInTree(ITree<?> c)
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
© 2007 Stephan Schwiebert