org.geotools.graph.path
Interface NodeSequence

All Known Implementing Classes:
Walk

public interface NodeSequence

Represents a sequence of nodes in a graph.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net

Method Summary
 Node getFirst()
          Returns the first node in the sequence.
 Node getLast()
          Returns the last node in the sequence.
 boolean isValid()
          Determines if the node sequence id valid based on the rules of the implementation.
 java.util.Iterator iterator()
          Returns an iterator over the nodes.
 int size()
          Returns the number of nodes in the sequence.
 

Method Detail

getFirst

public Node getFirst()
Returns the first node in the sequence.

Returns:
Object of tupe Node.

getLast

public Node getLast()
Returns the last node in the sequence.

Returns:
Object of type node.

size

public int size()
Returns the number of nodes in the sequence.

Returns:
an integer representing the number of nodes in the sequence.

iterator

public java.util.Iterator iterator()
Returns an iterator over the nodes.

Returns:
An iterator.

isValid

public boolean isValid()
Determines if the node sequence id valid based on the rules of the implementation.

Returns:
True if valid, otherwise false.


Copyright © GeoTools. All Rights Reserved.