net.walend.digraph.path
Class AbstractDelegateDigraphOfCEPaths.ADDOCEPIndexedEdgeIterator

java.lang.Object
  |
  +--net.walend.digraph.path.AbstractDelegateDigraphOfCEPaths.ADDOCEPIndexedEdgeIterator
All Implemented Interfaces:
EdgeIterator, EdgeNodeIterator, IndexedEdgeIterator, IndexedEdgeNodeIterator
Enclosing class:
AbstractDelegateDigraphOfCEPaths

protected class AbstractDelegateDigraphOfCEPaths.ADDOCEPIndexedEdgeIterator
extends java.lang.Object
implements IndexedEdgeIterator


Field Summary
private  IndexedEdgeIterator delegate
           
private  AbstractDelegateDigraphOfCEPaths owner
           
 
Constructor Summary
AbstractDelegateDigraphOfCEPaths.ADDOCEPIndexedEdgeIterator(AbstractDelegateDigraphOfCEPaths owner)
           
 
Method Summary
 java.lang.Object edge()
          Returns the current edge.
 int fromIndex()
          Returns the index of the node that his edge begins at.
 java.lang.Object fromNode()
          Returns the node that his edge begins at.
 boolean hasNext()
          Returns true if there are more edges in this iterator.
 void next()
          Advances to the next edge in the iterator.
 void remove()
          Removes the current edge from the digraph.
 int toIndex()
          Returns the index of the node that this edge reaches.
 java.lang.Object toNode()
          Returns the node that this edge reaches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

private IndexedEdgeIterator delegate

owner

private AbstractDelegateDigraphOfCEPaths owner
Constructor Detail

AbstractDelegateDigraphOfCEPaths.ADDOCEPIndexedEdgeIterator

public AbstractDelegateDigraphOfCEPaths.ADDOCEPIndexedEdgeIterator(AbstractDelegateDigraphOfCEPaths owner)
Method Detail

next

public void next()
Description copied from interface: EdgeNodeIterator
Advances to the next edge in the iterator.

Specified by:
next in interface EdgeNodeIterator

hasNext

public boolean hasNext()
Description copied from interface: EdgeNodeIterator
Returns true if there are more edges in this iterator.

Specified by:
hasNext in interface EdgeNodeIterator

remove

public void remove()
Description copied from interface: EdgeNodeIterator
Removes the current edge from the digraph.

Specified by:
remove in interface EdgeNodeIterator

fromNode

public java.lang.Object fromNode()
Description copied from interface: EdgeNodeIterator
Returns the node that his edge begins at.

Specified by:
fromNode in interface EdgeNodeIterator

toNode

public java.lang.Object toNode()
Description copied from interface: EdgeNodeIterator
Returns the node that this edge reaches.

Specified by:
toNode in interface EdgeNodeIterator

fromIndex

public int fromIndex()
Description copied from interface: IndexedEdgeNodeIterator
Returns the index of the node that his edge begins at.

Specified by:
fromIndex in interface IndexedEdgeNodeIterator

toIndex

public int toIndex()
Description copied from interface: IndexedEdgeNodeIterator
Returns the index of the node that this edge reaches.

Specified by:
toIndex in interface IndexedEdgeNodeIterator

edge

public java.lang.Object edge()
Description copied from interface: EdgeIterator
Returns the current edge.

Specified by:
edge in interface EdgeIterator


Copyright (c) 2001, 2002, David Walend