Class NetworkPredecessor<T>
- java.lang.Object
-
- repast.simphony.query.space.graph.AbstractNetworkQuery<T>
-
- repast.simphony.query.space.graph.NetworkPredecessor<T>
-
- All Implemented Interfaces:
Query<T>
public class NetworkPredecessor<T> extends AbstractNetworkQuery<T>
Queries a network(s) for the predecessor nodes of a specified node.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Field Summary
-
Fields inherited from class repast.simphony.query.space.graph.AbstractNetworkQuery
target
-
-
Constructor Summary
Constructors Constructor Description NetworkPredecessor(Context<T> context, T obj)
Creates a NetworkAdjacent query that will query any networks in the specified context for the predecessor nodes of the specified object.NetworkPredecessor(Network<T> network, T obj)
Creates a NetworkAdjacent query that will query the specified network for the predecessor nodes of the specified object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterator<T>
getNetNghIterable(Network<T> net)
Returns an iterator over nodes in the network that are predecessor of the node specified in the constructor.-
Methods inherited from class repast.simphony.query.space.graph.AbstractNetworkQuery
query, query
-
-
-
-
Method Detail
-
getNetNghIterable
protected Iterator<T> getNetNghIterable(Network<T> net)
Returns an iterator over nodes in the network that are predecessor of the node specified in the constructor. A predecessor node is a node on the "from" side of a directed link.- Specified by:
getNetNghIterable
in classAbstractNetworkQuery<T>
- Parameters:
net
-- Returns:
- an iterator over nodes in the network that are predecessors of the node specified in the constructor.
-
-