org.niffty
Class TupletDescription

java.lang.Object
  |
  +--org.niffty.TupletDescription

public class TupletDescription
extends java.lang.Object

A TupletDescription tag has a, b, c, d and grouping symbol values. A TupletDescription tag is used on the first Tuplet chunk of the tuplet multi-node symbol.


Field Summary
static int BRACKET_ONLY
           
static int DEFAULT
           
static int NO_SYMBOL
           
static int NUMBER_INSIDE_BRACKET
           
static int NUMBER_INSIDE_SLUR
           
static int NUMBER_ONLY
           
static int NUMBER_OUTSIDE_BRACKET
           
static int NUMBER_OUTSIDE_SLUR
           
static int NUMBER_WITH_BROKEN_BRACKET
           
static int NUMBER_WITH_BROKEN_SLUR
           
static int SLUR_ONLY
           
 
Constructor Summary
TupletDescription()
          Creates new TupletDescription with zero values
TupletDescription(int a, int b, int c, int d, int groupingSymbol)
          Creates new TupletDescription with the given values
 
Method Summary
 int getA()
          Return the A value of the AB transformation ratio.
 int getB()
          Return the B value of the AB transformation ratio.
 int getC()
          Return the C value of the CD transformation ratio.
 int getD()
          Return the D value of the CD transformation ratio.
 int getGroupingSymbol()
          Return the grouping symbol which isDEFAULT, NUMBER_ONLY, NUMBER_WITH_BROKEN_SLUR, NUMBER_OUTSIDE_SLUR, NUMBER_INSIDE_SLUR, NUMBER_WITH_BROKEN_BRACKET, NUMBER_OUTSIDE_BRACKET, NUMBER_INSIDE_BRACKET, BRACKET_ONLY, SLUR_ONLY or NO_SYMBOL.
 java.lang.String toString()
          Returns string as "(a:value, b:value, c:value, d:value, grouping symbol:value)"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

NUMBER_ONLY

public static final int NUMBER_ONLY
See Also:
Constant Field Values

NUMBER_WITH_BROKEN_SLUR

public static final int NUMBER_WITH_BROKEN_SLUR
See Also:
Constant Field Values

NUMBER_OUTSIDE_SLUR

public static final int NUMBER_OUTSIDE_SLUR
See Also:
Constant Field Values

NUMBER_INSIDE_SLUR

public static final int NUMBER_INSIDE_SLUR
See Also:
Constant Field Values

NUMBER_WITH_BROKEN_BRACKET

public static final int NUMBER_WITH_BROKEN_BRACKET
See Also:
Constant Field Values

NUMBER_OUTSIDE_BRACKET

public static final int NUMBER_OUTSIDE_BRACKET
See Also:
Constant Field Values

NUMBER_INSIDE_BRACKET

public static final int NUMBER_INSIDE_BRACKET
See Also:
Constant Field Values

BRACKET_ONLY

public static final int BRACKET_ONLY
See Also:
Constant Field Values

SLUR_ONLY

public static final int SLUR_ONLY
See Also:
Constant Field Values

NO_SYMBOL

public static final int NO_SYMBOL
See Also:
Constant Field Values
Constructor Detail

TupletDescription

public TupletDescription()
Creates new TupletDescription with zero values


TupletDescription

public TupletDescription(int a,
                         int b,
                         int c,
                         int d,
                         int groupingSymbol)
Creates new TupletDescription with the given values

Parameters:
a - the a transformation value
b - the b transformation value
c - the c transformation value
d - the d transformation value
groupingSymbol - grouping symbol. Must be DEFAULT, NUMBER_ONLY, NUMBER_WITH_BROKEN_SLUR, NUMBER_OUTSIDE_SLUR, NUMBER_INSIDE_SLUR, NUMBER_WITH_BROKEN_BRACKET, NUMBER_OUTSIDE_BRACKET, NUMBER_INSIDE_BRACKET, BRACKET_ONLY, SLUR_ONLY or NO_SYMBOL.
Method Detail

getA

public int getA()
Return the A value of the AB transformation ratio.


getB

public int getB()
Return the B value of the AB transformation ratio.


getC

public int getC()
Return the C value of the CD transformation ratio.


getD

public int getD()
Return the D value of the CD transformation ratio.


getGroupingSymbol

public int getGroupingSymbol()
Return the grouping symbol which isDEFAULT, NUMBER_ONLY, NUMBER_WITH_BROKEN_SLUR, NUMBER_OUTSIDE_SLUR, NUMBER_INSIDE_SLUR, NUMBER_WITH_BROKEN_BRACKET, NUMBER_OUTSIDE_BRACKET, NUMBER_INSIDE_BRACKET, BRACKET_ONLY, SLUR_ONLY or NO_SYMBOL.


toString

public java.lang.String toString()
Returns string as "(a:value, b:value, c:value, d:value, grouping symbol:value)"

Overrides:
toString in class java.lang.Object