Package org.geotools.graph.path
Interface NodeSequence
public interface NodeSequence
Represents a sequence of nodes in a graph.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
-
Method Summary
Modifier and TypeMethodDescriptiongetFirst()
Returns the first node in the sequence.getLast()
Returns the last node in the sequence.boolean
isValid()
Determines if the node sequence id valid based on the rules of the implementation.iterator()
Returns an iterator over the nodes.int
size()
Returns the number of nodes in the sequence.
-
Method Details
-
getFirst
Node getFirst()Returns the first node in the sequence.- Returns:
- Object of tupe Node.
-
getLast
Node getLast()Returns the last node in the sequence.- Returns:
- Object of type node.
-
size
int size()Returns the number of nodes in the sequence.- Returns:
- an integer representing the number of nodes in the sequence.
-
iterator
Iterator iterator()Returns an iterator over the nodes.- Returns:
- An iterator.
-
isValid
boolean isValid()Determines if the node sequence id valid based on the rules of the implementation.- Returns:
- True if valid, otherwise false.
-