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()
- Creates an empty path
-
IPath(int[])
- Creates a path from a list of integers
-
IPath(Move[])
- Creates a path from a list of move
-
add(int)
- Adds an int element to the path
-
add(Move)
- Adds an element to the path
-
add(String)
- Adds an string element to the path
-
apply(Tree)
- Applies a path to a tree
-
change(int, int)
- Changes an occurrence in the path
-
change(int, Move)
- Changes an occurrence in the path
-
change(int, String)
- Changes an occurrence in the path
-
clone()
-
-
Emptyp()
- Is the path empty?
-
extend(int)
- Extends the path to a given length
-
getSingle()
- Gets the single path as a list of int
-
length()
- Returns the length of the path
-
restrict(int)
- Restricts the path to be of some length
-
toString()
- Gives the Dewey notation of a path
-
val(int)
-
IPath
public IPath()
- Creates an empty path
IPath
public IPath(int path[])
- Creates a path from a list of integers
- Parameters:
- path - the list of integers
IPath
public IPath(Move path[])
- Creates a path from a list of move
- Parameters:
- path - the list of move
clone
public Object clone()
- Overrides:
- clone in class Object
add
public void add(int v)
- Adds an int element to the path
- Parameters:
- v - the element to be added
add
public void add(String v)
- Adds an string element to the path
- Parameters:
- v - the element to be added
add
public void add(Move v)
- Adds an element to the path
- Parameters:
- v - the element to be added
restrict
public void restrict(int v)
- Restricts the path to be of some length
- Parameters:
- v - the new length
change
public void change(int rank,
int v)
- Changes an occurrence in the path
- Parameters:
- rank - the occurrence
- v - the int new value
change
public void change(int rank,
String v)
- Changes an occurrence in the path
- Parameters:
- rank - the occurrence
- v - the string new value
change
public void change(int rank,
Move v)
- Changes an occurrence in the path
- Parameters:
- rank - the occurrence
- v - the new value
extend
public void extend(int v)
- Extends the path to a given length
- Parameters:
- v - the new length
Emptyp
public boolean Emptyp()
- Is the path empty?
length
public int length()
- Returns the length of the path
val
public Move val(int i)
toString
public String toString()
- Gives the Dewey notation of a path
- Overrides:
- toString in class Object
getSingle
public int[] getSingle()
- Gets the single path as a list of int
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