net.ggtools.grand.filters
Class ConnectedToNodeFilter

java.lang.Object
  extended by net.ggtools.grand.filters.AbstractGraphFilter
      extended by net.ggtools.grand.filters.GraphWalkFilter
          extended by net.ggtools.grand.filters.ConnectedToNodeFilter
All Implemented Interfaces:
GraphFilter, GraphConsumer, GraphProducer

public class ConnectedToNodeFilter
extends GraphWalkFilter
implements GraphFilter

A graph filter returning all nodes connected to a specific node be it through forward or backward links (or both).

Author:
Christophe Labouisse

Field Summary
 
Fields inherited from class net.ggtools.grand.filters.AbstractGraphFilter
name
 
Constructor Summary
ConnectedToNodeFilter(java.lang.String nodeName)
          Creates a new filter.
 
Method Summary
 LinkFinder getLinkFinder()
          Returns an object finding the links to follow from a specific node.
 
Methods inherited from class net.ggtools.grand.filters.GraphWalkFilter
getFilteredNodes
 
Methods inherited from class net.ggtools.grand.filters.AbstractGraphFilter
getGraph, getGraphProducer, getName, getProducersGraph, setProducer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.ggtools.grand.filters.GraphFilter
getName
 
Methods inherited from interface net.ggtools.grand.graph.GraphProducer
getGraph
 
Methods inherited from interface net.ggtools.grand.graph.GraphConsumer
setProducer
 

Constructor Detail

ConnectedToNodeFilter

public ConnectedToNodeFilter(java.lang.String nodeName)
Creates a new filter.

Parameters:
nodeName - node to search from.
Method Detail

getLinkFinder

public LinkFinder getLinkFinder()
Description copied from class: GraphWalkFilter
Returns an object finding the links to follow from a specific node. This object will be used when walking the graph in GraphWalkFilter.getFilteredNodes() to find the filtered nodes.

Specified by:
getLinkFinder in class GraphWalkFilter
Returns:
the LinkFinder object used for filtering.
See Also:
LinkFinder


Copyright © 2004-2005 ggTools. All Rights Reserved.