repast.simphony.query.space.graph
Class NetworkAdjacent<T>
java.lang.Object
repast.simphony.query.space.graph.AbstractNetworkQuery<T>
repast.simphony.query.space.graph.NetworkAdjacent<T>
- All Implemented Interfaces:
- Query<T>
public class NetworkAdjacent<T>
- extends AbstractNetworkQuery<T>
Queries a network(s) for the adjacent nodes to a specified node.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
|
Constructor Summary |
NetworkAdjacent(Context<T> context,
T obj)
Creates a NetworkAdjacent query that will query any networks in the specified
context for the nodes adjacent to the specified object. |
NetworkAdjacent(Network<T> network,
T obj)
Creates a NetworkAdjacent query that will query the specified
network for the nodes adjacent to the specified object. |
|
Method Summary |
protected Iterator<T> |
getNetNghIterable(Network<T> net)
Returns an iterator over nodes in the network that are adjacent to the
node specified in the constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkAdjacent
public NetworkAdjacent(Network<T> network,
T obj)
- Creates a NetworkAdjacent query that will query the specified
network for the nodes adjacent to the specified object.
- Parameters:
network - obj -
NetworkAdjacent
public NetworkAdjacent(Context<T> context,
T obj)
- Creates a NetworkAdjacent query that will query any networks in the specified
context for the nodes adjacent to the specified object.
- Parameters:
context - obj -
getNetNghIterable
protected Iterator<T> getNetNghIterable(Network<T> net)
- Returns an iterator over nodes in the network that are adjacent to the
node specified in the constructor.
- Specified by:
getNetNghIterable in class AbstractNetworkQuery<T>
- Parameters:
net -
- Returns:
- an iterator over nodes in the network that are adjacent to the
node specified in the constructor.