com.googlecode.whatswrong
Class EdgeFilter

java.lang.Object
  extended by com.googlecode.whatswrong.EdgeFilter
All Implemented Interfaces:
NLPInstanceFilter
Direct Known Subclasses:
EdgeLabelFilter, EdgeTypeFilter

public abstract class EdgeFilter
extends java.lang.Object
implements NLPInstanceFilter

An EdgeFilter is a NLPInstanceFilter that only filters out edges.

Author:
Sebastian Riedel

Constructor Summary
EdgeFilter()
           
 
Method Summary
 NLPInstance filter(NLPInstance original)
          Filter the given instance.
abstract  java.util.Collection<Edge> filterEdges(java.util.Collection<Edge> original)
          Take a set of edges and return a subset of them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeFilter

public EdgeFilter()
Method Detail

filterEdges

public abstract java.util.Collection<Edge> filterEdges(java.util.Collection<Edge> original)
Take a set of edges and return a subset of them.

Parameters:
original - the original set of edges.
Returns:
the filtered set of edges.

filter

public NLPInstance filter(NLPInstance original)
Description copied from interface: NLPInstanceFilter
Filter the given instance.

Specified by:
filter in interface NLPInstanceFilter
Parameters:
original - the original instance.
Returns:
the filtered instance.
See Also:
NLPInstanceFilter.filter(NLPInstance)


Copyright © 2010. All Rights Reserved.