audiojury.domain
Class Instruction

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

public class Instruction
extends java.lang.Object
implements java.io.Serializable

Represents a text or audio instruction that is shown or played back before a Project or Test starts. An instruction may contain both text and audio.

See Also:
Serialized Form

Constructor Summary
Instruction()
          Creates a new instance of Instruction.
Instruction(java.lang.String txt, Sound snd)
          Creates a new instance of Instruction.
 
Method Summary
 Sound getSound()
          Gets the audio instruction (a Sound).
 java.lang.String getText()
          Gets the textual instruction.
 void setSound(Sound snd)
          Sets the audio instruction.
 void setText(java.lang.String txt)
          Sets the textual instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction

public Instruction()
Creates a new instance of Instruction.


Instruction

public Instruction(java.lang.String txt,
                   Sound snd)
Creates a new instance of Instruction.

Parameters:
txt - The text of the instruction.
snd - A sound of the instruction.
Method Detail

getText

public java.lang.String getText()
Gets the textual instruction.

Returns:
The text of the instruction.

setText

public void setText(java.lang.String txt)
Sets the textual instruction.

Parameters:
txt - The desired text for this instruction.

getSound

public Sound getSound()
Gets the audio instruction (a Sound).

Returns:
the audio instruction in the form of a Sound object.

setSound

public void setSound(Sound snd)
Sets the audio instruction.

Parameters:
snd - a Sound containing the audio instruction.