|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.rubettes.util.SimpleFormFinder
public class SimpleFormFinder
Searches the subforms of the given parent form for Simple forms and keeps track of their shortest possible paths, e.g. for Pitch in MacroScore: {0,1}.
Constructor Summary | |
---|---|
SimpleFormFinder()
|
|
SimpleFormFinder(PowerForm parentForm)
Creates a SimpleFormFinder for the specified parent form. |
|
SimpleFormFinder(PowerForm parentForm,
int maxRecursion)
|
Method Summary | |
---|---|
int[][] |
getElementPaths()
|
PowerForm |
getParentForm()
Returns the parent form currently set. |
int[] |
getPath(SimpleForm form)
Returns the path for the specified SimpleForm, if it has been found in the parent form's tree. |
int[] |
getPathForElement(SimpleForm form)
Returns the path for the ModuleElement inside the specified SimpleForm, e.g. |
int[][] |
getSimpleFormArrayPaths()
|
java.util.List<java.util.List<java.lang.Integer>> |
getSimpleFormPaths()
Returns a List with the paths of the found SimpleForms. |
java.util.List<SimpleForm> |
getSimpleForms()
Returns a List containing the found SimpleForms. |
int[] |
pathToArray(java.util.List<java.lang.Integer> listPath)
Returns an array conversion of a List path |
void |
setMaxRecursion(int maxRecursion)
Sets the maximum number of recursion levels to be searched to the specified value. |
void |
setParentForm(PowerForm parentForm)
Sets a new parent form and searches its tree for Simple forms. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFormFinder()
public SimpleFormFinder(PowerForm parentForm)
parentForm
- - the form, the tree of which has to be searchedpublic SimpleFormFinder(PowerForm parentForm, int maxRecursion)
Method Detail |
---|
public void setParentForm(PowerForm parentForm)
parentForm
- - the new parent formpublic PowerForm getParentForm()
public void setMaxRecursion(int maxRecursion)
maxRecursion
- - the maximum number of recursion levelspublic java.util.List<SimpleForm> getSimpleForms()
public java.util.List<java.util.List<java.lang.Integer>> getSimpleFormPaths()
public int[][] getSimpleFormArrayPaths()
public int[][] getElementPaths()
public int[] getPath(SimpleForm form)
form
- - the form to be foundpublic int[] getPathForElement(SimpleForm form)
form
- the Simple form, the path of element of which has to be returnedpublic int[] pathToArray(java.util.List<java.lang.Integer> listPath)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |