All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class aioli.path.IPath
java.lang.Object
   |
   +----aioli.path.IPath
  -  public class IPath
  -  extends Object
  -  implements Cloneable
Implements single path as a list of integers
   
  -   IPath() IPath()
-  Creates an empty path
  
-   IPath(int[]) IPath(int[])
-  Creates a path from a list of integers
 
  
-   IPath(Move[]) IPath(Move[])
-  Creates a path from a list of move
 
   
  -   add(int) add(int)
-  Adds an int element to the path
 
  
-   add(Move) add(Move)
-  Adds an element to the path
 
  
-   add(String) add(String)
-  Adds an string element to the path
 
  
-   apply(Tree) apply(Tree)
-  Applies a path to a tree
 
  
-   change(int, int) change(int, int)
-  Changes an occurrence in the path
 
  
-   change(int, Move) change(int, Move)
-  Changes an occurrence in the path
 
  
-   change(int, String) change(int, String)
-  Changes an occurrence in the path
 
  
-   clone() clone()
-  
  
-   Emptyp() Emptyp()
-  Is the path empty?
  
-   extend(int) extend(int)
-  Extends the path to a given length
 
  
-   getSingle() getSingle()
-  Gets the single path  as a list of int
  
-   length() length()
-  Returns the length of the path
  
-   restrict(int) restrict(int)
-  Restricts the path to be of some length
 
  
-   toString() toString()
-  Gives the Dewey notation of a path
  
-   val(int) val(int)
-  
   
 IPath
IPath
 public IPath()
  -  Creates an empty path
 
 IPath
IPath
 public IPath(int path[])
  -  Creates a path from a list of integers
   
- 
    -  Parameters:
    
-  path - the list of integers
  
 
 IPath
IPath
 public IPath(Move path[])
  -  Creates a path from a list of move
   
- 
    -  Parameters:
    
-  path - the list of move
  
 
   
 clone
clone
 public Object clone()
  - 
    -  Overrides:
    
-  clone in class Object
  
 
 add
add
 public void add(int v)
  -  Adds an int element to the path
   
- 
    -  Parameters:
    
-  v - the element to be added
  
 
 add
add
 public void add(String v)
  -  Adds an string element to the path
   
- 
    -  Parameters:
    
-  v - the element to be added
  
 
 add
add
 public void add(Move v)
  -  Adds an element to the path
   
- 
    -  Parameters:
    
-  v - the element to be added
  
 
 restrict
restrict
 public void restrict(int v)
  -  Restricts the path to be of some length
   
- 
    -  Parameters:
    
-  v - the new length
  
 
 change
change
 public void change(int rank,
                    int v)
  -  Changes an occurrence in the path
   
- 
    -  Parameters:
    
-  rank - the occurrence
    -  v - the int new value
  
 
 change
change
 public void change(int rank,
                    String v)
  -  Changes an occurrence in the path
   
- 
    -  Parameters:
    
-  rank - the occurrence
    -  v - the string new value
  
 
 change
change
 public void change(int rank,
                    Move v)
  -  Changes an occurrence in the path
   
- 
    -  Parameters:
    
-  rank - the occurrence
    -  v - the new value
  
 
 extend
extend
 public void extend(int v)
  -  Extends the path to a given length
   
- 
    -  Parameters:
    
-  v - the new length
  
 
 Emptyp
Emptyp
 public boolean Emptyp()
  -  Is the path empty?
 
 length
length
 public int length()
  -  Returns the length of the path
 
 val
val
 public Move val(int i)
 toString
toString
 public String toString()
  -  Gives the Dewey notation of a path
   
- 
    -  Overrides:
    
-  toString in class Object
  
 
 getSingle
getSingle
 public int[] getSingle()
  -  Gets the single path  as a list of int
 
 apply
apply
 public Tree apply(Tree tree)
  -  Applies a path to a tree
   
- 
    -  Parameters:
    
-  tree - the tree to which the path is applied
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index