audiojury.domain
Class PairedJudgement

java.lang.Object
  |
  +--audiojury.domain.Judgement
        |
        +--audiojury.domain.PairedJudgement
All Implemented Interfaces:
java.io.Serializable

public class PairedJudgement
extends Judgement
implements java.io.Serializable

Represents a paired judgement. That is a judgement consisting of two Sounds.

See Also:
Serialized Form

Constructor Summary
PairedJudgement()
          Creates a new PairedJudgement object.
 
Method Summary
 void flip()
          Flips the order of the two Sounds.
 boolean isFlipped()
          Checks if the playback order of the Sounds is flipped.
 void setScore(Score jscore)
          Sets the Score of a judgement.
 
Methods inherited from class audiojury.domain.Judgement
addSound, getScore, getSounds, isPractice, setPractice, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PairedJudgement

public PairedJudgement()
Creates a new PairedJudgement object.

Method Detail

flip

public void flip()
Flips the order of the two Sounds. Use this method to tell the playback order of the two sounds should be flipped.


setScore

public void setScore(Score jscore)
Sets the Score of a judgement. It takes in account the case when the sounds are flipped.

Overrides:
setScore in class Judgement
Parameters:
jscore - The Score to set.

isFlipped

public boolean isFlipped()
Checks if the playback order of the Sounds is flipped.

Returns:
True if the playback order of the Sounds is flipped, false otherwise.