Media Authoring
with Java API

tv.amwa.maj.record
Interface Rational

All Known Implementing Classes:
Rational

public interface Rational

Specifies a rational number by means of a Java integer numerator (Int32) and a Java integer (Int32) denominator.

Author:
Richard Cartwright
See Also:
Rational, TypeDefinitionRecord.Rational

Method Summary
 int getDenominator()
          Returns the denominator of the value represented by this rational number.
 int getNumerator()
          Returns the numerator of the value represented by this rational number.
 void setDenominator(int denominator)
          Sets the denominator of the value represented by this rational number.
 void setNumerator(int numerator)
          Sets the numerator of the value represented by this rational number.
 void setRational(int numerator, int denominator)
          Set the value of this rational number with both its numerator and denominator.
 

Method Detail

getNumerator

@Int32
int getNumerator()

Returns the numerator of the value represented by this rational number.

Returns:
Numerator part of the rational value.

setNumerator

void setNumerator(@Int32
                  int numerator)

Sets the numerator of the value represented by this rational number.

Parameters:
numerator - Numerator part of the rational value.

getDenominator

@Int32
int getDenominator()

Returns the denominator of the value represented by this rational number.

Returns:
Denominator part of the rational value.

setDenominator

void setDenominator(@Int32
                    int denominator)

Sets the denominator of the value represented by this rational number.

Parameters:
denominator - Denominator part of the rational value.

setRational

void setRational(@Int32
                 int numerator,
                 @Int32
                 int denominator)

Set the value of this rational number with both its numerator and denominator.

Parameters:
numerator - Numerator part of the rational value.
denominator - Denominator part of the rational value.

Media Authoring
with Java API

(c) 2007-2008 Richard Cartwright, all rights reserved. Subject to the terms of the AAF SDK Public Source License.