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, startsWithRest
private 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 MetricalLpcfgNode
getHead
in class MetricalLpcfgNonterminal
public java.lang.String getTypeString()
getTypeString
in class MetricalLpcfgNonterminal
measure
.public MetricalLpcfgMeasure deepCopy()
MetricalLpcfgNode
deepCopy
in interface MetricalLpcfgNode
deepCopy
in class MetricalLpcfgNonterminal
public boolean equals(java.lang.Object o)
equals
in class MetricalLpcfgNonterminal
public java.lang.String toString()
toString
in class MetricalLpcfgNonterminal
public java.lang.String toStringPretty(int depth, java.lang.String tab)
MetricalLpcfgNode
toStringPretty
in interface MetricalLpcfgNode
toStringPretty
in class MetricalLpcfgNonterminal
depth
- The depth of this node.tab
- The tab String to indent tree levels.