All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class aioli.vtp.OperatorIterator
java.lang.Object
   |
   +----aioli.vtp.OperatorIterator
  -  public class OperatorIterator
  -  extends Object
  -  implements Iterator
A class that implements an Operator iterator over a formalism.
 Example of use of the Iterator:
 
     Formalism forma;
     ...
     for ( OperatorIterator i = forma.beginOperator();
 !i.atEnd(); i.advance() )
       System.out.println( i.get());
 
   
  -   advance() advance()
-   Advance by one.
  
-   advance(int) advance(int)
-   Advances by n.
  
-   atEnd() atEnd()
-   Returns true if I'm positioned after the last item.
  
-   clone() clone()
-   Return a copy of the iterator with the current position.
  
-   get() get()
-   Returns The object at the current position.
  
-   isLastElement() isLastElement()
-   Return true if the current element is the last one, false otherwise
  
-   setPosition(int) setPosition(int)
-   Sets the new position at n.
   
 clone
clone
 public Object clone()
  -  Return a copy of the iterator with the current position.
   
- 
    -  Overrides:
    
-  clone in class Object
  
 
 get
get
 public Object get()
  -  Returns The object at the current position.
 
 atEnd
atEnd
 public boolean atEnd()
  -  Returns true if I'm positioned after the last item.
 
 isLastElement
isLastElement
 public boolean isLastElement()
  -  Return true if the current element is the last one, false otherwise
 
 advance
advance
 public void advance()
  -  Advance by one.
 
 advance
advance
 public void advance(int n)
  -  Advances by n.
 does nothing if the new position is out of bound.
   
- 
    -  Parameters:
    
-  n - The increment of the new position.
  
 
 setPosition
setPosition
 public void setPosition(int n)
  -  Sets the new position at n.
 does nothing if the new position is out of bound.
   
- 
    -  Parameters:
    
-  n - The new position of the Iterator.
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index