Package eu.bandm.music.entities
Class MetrumName
java.lang.Object
eu.bandm.music.entities.MetrumName
- All Implemented Interfaces:
MetrumIndication
Simple version of a name for a metrum, consisting of two integers only,
arranged and interpreted as if a Rational number >0.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
The equivalent to a rational denominator.protected Rational
The equivalent Rational value.protected final int
The equivalent to a rational numerator.static Translet.Parser<MetrumName>
Evident -
Constructor Summary
-
Method Summary
-
Field Details
-
num
protected final int numThe equivalent to a rational numerator. -
den
protected final int denThe equivalent to a rational denominator. -
duration
The equivalent Rational value. -
parser
Evident
-
-
Constructor Details
-
MetrumName
public MetrumName(int num, int den) Only constructor.- Throws:
IllegalArgumentException
- if num or den <= 0
-
-
Method Details
-
constantRationalMeasureDuration
Return the value when the name is interpreted as a Rational Number.- Specified by:
constantRationalMeasureDuration
in interfaceMetrumIndication
-
equals
Evident -
toString
Evident
-