at.tuwien.ifs.somtoolbox.audio
Class PlaybackThreadDataRecord

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.audio.PlaybackThreadDataRecord

public class PlaybackThreadDataRecord
extends Object

Record type for data for one PlaybackThread.
Contains:

Version:
$Id: PlaybackThreadDataRecord.java 3583 2010-05-21 10:07:41Z mayer $
Author:
Ewald Peiszer

Field Summary
 Vector<String>[] listOfSongs
          Lists of songs to play.
 Point[] position
          Positions of speakers.
 
Constructor Summary
PlaybackThreadDataRecord()
           
 
Method Summary
 boolean addSongs(int channel, String[] songNames)
           
 boolean setPosition(int channel, int x, int y)
          Sets the position of one speaker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

public Point[] position
Positions of speakers. Array is initialized at the time the object is created.
However, both entries ([0] and [1]) are null until setPosition(int, int, int) is called.


listOfSongs

public Vector<String>[] listOfSongs
Lists of songs to play. Array is initialized at the time the object is created.
However, both entries ([0] and [1]) are null until addSongs(int, String[]) is called.

Constructor Detail

PlaybackThreadDataRecord

public PlaybackThreadDataRecord()
Method Detail

setPosition

public boolean setPosition(int channel,
                           int x,
                           int y)
Sets the position of one speaker

Returns:
false if the position has already be set earlier, true otherwise

addSongs

public boolean addSongs(int channel,
                        String[] songNames)