Class NetworkSuccessor<T>

java.lang.Object
repast.simphony.query.space.graph.AbstractNetworkQuery<T>
repast.simphony.query.space.graph.NetworkSuccessor<T>
All Implemented Interfaces:
Query<T>

public class NetworkSuccessor<T> extends AbstractNetworkQuery<T>
Queries a network(s) for the successor nodes of a specified node.
Version:
$Revision$ $Date$
Author:
Nick Collier
  • Constructor Details

    • NetworkSuccessor

      public NetworkSuccessor(Network<T> network, T obj)
      Creates a NetworkAdjacent query that will query the specified network for the successor nodes of the specified object.
      Parameters:
      network -
      obj -
    • NetworkSuccessor

      public NetworkSuccessor(Context<T> context, T obj)
      Creates a NetworkAdjacent query that will query any networks in the specified context for the successor nodes of the specified object.
      Parameters:
      context -
      obj -
  • Method Details

    • getNetNghIterable

      protected Iterator<T> getNetNghIterable(Network<T> net)
      Returns an iterator over nodes in the network that are successors of the node specified in the constructor. A successor node is a node on the "to" side of a directed link.
      Specified by:
      getNetNghIterable in class AbstractNetworkQuery<T>
      Parameters:
      net -
      Returns:
      an iterator over nodes in the network that are successors of the node specified in the constructor.