Class NetPathWithin<T>
java.lang.Object
repast.simphony.query.space.graph.NetPathWithin<T>
- All Implemented Interfaces:
Query<T>
A Query that returns all nodes within some given path length of a specified node.
"Within" includes the upper limit.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionNetPathWithin
(Context<T> context, T obj, double distance) Creates a NetPathWithin query that returns all nodes within the specified path length of the specified node in all the networks in the specified context.NetPathWithin
(Network<T> network, T obj, double distance) Creates a NetPathWithin query that returns all nodes within the specified path length of the specified node in the specified network. -
Method Summary
Modifier and TypeMethodDescriptionquery()
Gets an iterable over all the nodes within the path length of the target node as specified in the constructor.Gets an iterable over all the nodes within the path length of the target node as specified in the constructor AND where those nodes are members of the iterable parameter.
-
Constructor Details
-
NetPathWithin
Creates a NetPathWithin query that returns all nodes within the specified path length of the specified node in all the networks in the specified context.- Parameters:
context
-obj
-distance
-
-
NetPathWithin
Creates a NetPathWithin query that returns all nodes within the specified path length of the specified node in the specified network.- Parameters:
network
-obj
-distance
-
-
-
Method Details
-
query
Gets an iterable over all the nodes within the path length of the target node as specified in the constructor. -
query
Gets an iterable over all the nodes within the path length of the target node as specified in the constructor AND where those nodes are members of the iterable parameter.
-