org.simbrain.network.filters
Class AbstractFilter

java.lang.Object
  extended by org.simbrain.network.filters.AbstractFilter
All Implemented Interfaces:
PNodeFilter, org.apache.commons.collections.Predicate

public abstract class AbstractFilter
extends Object
implements PNodeFilter, org.apache.commons.collections.Predicate

Abstract filter, implements both PNodeFilter and Predicate interfaces.


Constructor Summary
AbstractFilter()
           
 
Method Summary
abstract  boolean accept(PNode node)
           
 boolean acceptChildrenOf(PNode node)
           
 boolean evaluate(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFilter

public AbstractFilter()
Method Detail

evaluate

public boolean evaluate(Object object)
Specified by:
evaluate in interface org.apache.commons.collections.Predicate
See Also:
Predicate

accept

public abstract boolean accept(PNode node)
Specified by:
accept in interface PNodeFilter
See Also:
PNodeFilter

acceptChildrenOf

public boolean acceptChildrenOf(PNode node)
Specified by:
acceptChildrenOf in interface PNodeFilter
See Also:
PNodeFilter