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