Interface DurationIndication

All Known Implementing Classes:
Duration_calendaric, RationalDuration

public interface DurationIndication
Encodes the mere fact that the implementing type is some kind of duration information. The conversion functions may throw an UnsupportedOperationException!
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the "Notated CWN Duration", which is a rational, standing for a note duration (1/4 for a quater note, 3/8 for a dotted quater note, etc.)
  • Method Details

    • toRational

      Rational toRational()
      Returns the "Notated CWN Duration", which is a rational, standing for a note duration (1/4 for a quater note, 3/8 for a dotted quater note, etc.)
      Throws:
      UnsupportedOperationException - iff such a calculation is not possible.