Package net.ggtools.grand.filters
Class NodeRemoverFilter
- java.lang.Object
-
- net.ggtools.grand.filters.AbstractGraphFilter
-
- net.ggtools.grand.filters.NodeRemoverFilter
-
- All Implemented Interfaces:
GraphFilter
,GraphConsumer
,GraphProducer
public class NodeRemoverFilter extends AbstractGraphFilter
A filter to remove one or more node from a graph.- Author:
- Christophe Labouisse
-
-
Field Summary
-
Fields inherited from class net.ggtools.grand.filters.AbstractGraphFilter
name
-
-
Constructor Summary
Constructors Constructor Description NodeRemoverFilter(Collection<String> nodesToRemove)
Creates a new node remover filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<Node>
getFilteredNodes()
Method getFilteredNodes.-
Methods inherited from class net.ggtools.grand.filters.AbstractGraphFilter
getGraph, getGraphProducer, getName, getProducersGraph, setProducer
-
-
-
-
Constructor Detail
-
NodeRemoverFilter
public NodeRemoverFilter(Collection<String> nodesToRemove)
Creates a new node remover filter.- Parameters:
nodesToRemove
- a collection of node names to remove.
-
-
Method Detail
-
getFilteredNodes
protected final Collection<Node> getFilteredNodes() throws GrandException
Method getFilteredNodes.- Specified by:
getFilteredNodes
in classAbstractGraphFilter
- Returns:
- Collection<Node>
- Throws:
GrandException
- if an error occurs in getProducersGraph()- See Also:
AbstractGraphFilter.getFilteredNodes()
-
-