giden.GRDS
Class NodeListIter
java.lang.Object
|
+--giden.GRDS.ListIter
|
+--giden.GRDS.NodeListIter
- public class NodeListIter
- extends ListIter
Copyright (c) 1993-2004 C. R. Coullard, D. S. Dilworth, J. H. Owen,
All Rights Reserved.
We make no representations or warranties about the suitability of
the software, either express or implied, including but not limited
to the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. We shall not be liable for
any damages suffered by user as a result of using, modifying or
distributing this software or its derivatives.
NodeListIter is derived from ListIter and provides
all of its methods. In addition NodeListIter provides
methods to iterate with Node objects.
A newly created NodeListIter is initialized to null.
At some point prior to using a newly created ListIter to access the list,
GetFirstNode() or GetLastNode() must be called.
Copyright (c) 1993-2003 C. R. Coullard, D. S. Dilworth, J. H. Owen,
All Rights Reserved.
- Version:
- 4.0a 2004 08 27
- Author:
- D. S. Dilworth
- See Also:
Graph
,
ListIter
,
LinkList
,
Network
,
Node
Constructor Summary |
NodeListIter(LinkList list)
Creates a NodeListIter for the given LinkList and initializes
it to null. |
Method Summary |
Node |
GetFirstNode()
Moves this NodeListIter to the ListEntry at the head of the
list and gets that ListEntry's Node. |
Node |
GetNextNode()
Moves this NodeListIter to the next ListEntry of the
list and gets that ListEntry's Node. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeListIter
public NodeListIter(LinkList list)
- Creates a NodeListIter for the given LinkList and initializes
it to null. In order to use this NodeListIter to access Nodes in
the list, GetFirstNode() or GetNodeEdge must initially be called.
GetFirstNode
public Node GetFirstNode()
- Moves this NodeListIter to the ListEntry at the head of the
list and gets that ListEntry's Node.
- Returns:
- The first node in the list
GetNextNode
public Node GetNextNode()
- Moves this NodeListIter to the next ListEntry of the
list and gets that ListEntry's Node.
- Returns:
- The next node in the list