public class MetricalLpcfgMeasure extends MetricalLpcfgNonterminal implements java.io.Serializable
MetricalLpcfgMeasure is a type of MetricalLpcfgNonterminal, which
represents the Measure type of the tree.MetricalLpcfgNonterminal.MetricalLpcfgLevel, MetricalLpcfgNonterminal.MetricalLpcfgType| Modifier and Type | Field and Description |
|---|---|
private Measure |
measure
The measure of this tree structure.
|
private static long |
serialVersionUID
Version 1
|
| Modifier | Constructor and Description |
|---|---|
|
MetricalLpcfgMeasure(int beatsPerMeasure,
int subBeatsPerBeat)
Create a new measure node with the given beats per measure and sub beats per beat.
|
private |
MetricalLpcfgMeasure(MetricalLpcfgMeasure measure)
Create a new measure node as a copy of the given one.
|
| Modifier and Type | Method and Description |
|---|---|
MetricalLpcfgMeasure |
deepCopy()
Get a deep copy of this node.
|
boolean |
equals(java.lang.Object o) |
MetricalLpcfgHead |
getHead()
Get the head of this non-terminal.
|
Measure |
getMeasure()
Get the Measure type of this node.
|
java.lang.String |
getTypeString()
Get the type String of this measure.
|
java.lang.String |
toString() |
java.lang.String |
toStringPretty(int depth,
java.lang.String tab)
Print the given node recursively in a pretty format.
|
addChild, fixChildrenTypes, getChildren, getLength, getLevel, getTerminal, getTransitionString, isEmpty, setType, startsWithRestprivate static final long serialVersionUID
private final Measure measure
public MetricalLpcfgMeasure(int beatsPerMeasure,
int subBeatsPerBeat)
private MetricalLpcfgMeasure(MetricalLpcfgMeasure measure)
measure - The measure node which we want a copy of.public MetricalLpcfgHead getHead()
getHead in interface MetricalLpcfgNodegetHead in class MetricalLpcfgNonterminalpublic java.lang.String getTypeString()
getTypeString in class MetricalLpcfgNonterminalmeasure.public MetricalLpcfgMeasure deepCopy()
MetricalLpcfgNodedeepCopy in interface MetricalLpcfgNodedeepCopy in class MetricalLpcfgNonterminalpublic boolean equals(java.lang.Object o)
equals in class MetricalLpcfgNonterminalpublic java.lang.String toString()
toString in class MetricalLpcfgNonterminalpublic java.lang.String toStringPretty(int depth,
java.lang.String tab)
MetricalLpcfgNodetoStringPretty in interface MetricalLpcfgNodetoStringPretty in class MetricalLpcfgNonterminaldepth - The depth of this node.tab - The tab String to indent tree levels.