dguitar.adaptors.song.impl
Class RepeatedSongPhraseImpl

java.lang.Object
  extended bydguitar.adaptors.song.impl.RepeatedSongPhraseImpl
All Implemented Interfaces:
RepeatedSongPhrase, SongPhrase

public class RepeatedSongPhraseImpl
extends java.lang.Object
implements RepeatedSongPhrase

Implementation of RepeatedSongPhrase

Author:
crnash

Field Summary
(package private)  SongPhrase phrase
           
(package private)  int repeatCount
           
 
Constructor Summary
RepeatedSongPhraseImpl(SongPhrase phrase, int repeatCount)
           
 
Method Summary
 SongMeasure getPerformanceMeasure(int measure)
           
 int getPerformanceMeasureCount()
           
 SongPhrase getPhrase()
           
 int getRepeatCount()
           
 SongMeasure getScoreMeasure(int measure)
           
 int getScoreMeasureCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phrase

SongPhrase phrase

repeatCount

int repeatCount
Constructor Detail

RepeatedSongPhraseImpl

public RepeatedSongPhraseImpl(SongPhrase phrase,
                              int repeatCount)
Method Detail

getScoreMeasureCount

public int getScoreMeasureCount()
Specified by:
getScoreMeasureCount in interface SongPhrase
Returns:
The count of the number of measures in this phrase on a printed score

getScoreMeasure

public SongMeasure getScoreMeasure(int measure)
Specified by:
getScoreMeasure in interface SongPhrase
Parameters:
measure - The measure index (0 based)
Returns:
the measure at this index when printed on a score

getPerformanceMeasureCount

public int getPerformanceMeasureCount()
Specified by:
getPerformanceMeasureCount in interface SongPhrase
Returns:
The count of the number of measures in this phrase when it is performed

getPerformanceMeasure

public SongMeasure getPerformanceMeasure(int measure)
Specified by:
getPerformanceMeasure in interface SongPhrase
Parameters:
measure - the measure index (0 based)
Returns:
the measure at this index when performed

getPhrase

public SongPhrase getPhrase()
Specified by:
getPhrase in interface RepeatedSongPhrase
Returns:
Returns the phrase.

getRepeatCount

public int getRepeatCount()
Specified by:
getRepeatCount in interface RepeatedSongPhrase
Returns:
Returns the repeatCount.