mediaplayer
Class Playlist

java.lang.Object
  extended by mediaplayer.Playlist

public class Playlist
extends java.lang.Object


Field Summary
static int fps
          Frames per second used by QuickClipXO.
 java.lang.String name
          Name of the playlist
 
Constructor Summary
Playlist(java.lang.String name)
           
 
Method Summary
 void addTrial(Trial trial)
          adds a trial to the playlist
 void clear()
           
 java.util.ArrayList<Trial> getList()
           
 java.lang.String getName()
           
static Trial getSelectedTrial()
          return the selected trial
static int getSelectedTrialIndex()
          returns the index of the selected trial
 Trial getTrial(int id)
           
 java.util.ArrayList<Trial> getTrials()
           
 void randomize()
          Randomizes the playlist.
 void rearrange()
          rearranges the list of trials in the gui. note that this does not do anything to the trial list in memory, only the gui
 void removeTrial()
          remove the selected trial
 void setName(java.lang.String name)
           
static void setSelectedTrial(int index)
           
 void setTrial(Trial trial, int index)
          replaces trial at index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fps

public static int fps
Frames per second used by QuickClipXO. Default value 25.


name

public java.lang.String name
Name of the playlist

Constructor Detail

Playlist

public Playlist(java.lang.String name)
Parameters:
name -
Method Detail

randomize

public void randomize()
Randomizes the playlist. This takes four steps. 1. Validate the all conditions, including design, session, connection and file list status. 2. Shuffling of items and trials, if selected 3. Generate start and stop time for each item 4. Generate an edl file, send it to Clip Recorder Cotrol and wait for reply


addTrial

public void addTrial(Trial trial)
adds a trial to the playlist

Parameters:
trial -

removeTrial

public void removeTrial()
remove the selected trial


setTrial

public void setTrial(Trial trial,
                     int index)
replaces trial at index

Parameters:
trial -
index -

getTrial

public Trial getTrial(int id)
Parameters:
id -
Returns:

getList

public java.util.ArrayList<Trial> getList()
Returns:

clear

public void clear()

getSelectedTrial

public static Trial getSelectedTrial()
return the selected trial

Returns:

getSelectedTrialIndex

public static int getSelectedTrialIndex()
returns the index of the selected trial

Returns:

setSelectedTrial

public static void setSelectedTrial(int index)
Parameters:
index -

getName

public java.lang.String getName()
Returns:

setName

public void setName(java.lang.String name)
Parameters:
name -

getTrials

public java.util.ArrayList<Trial> getTrials()
Returns:

rearrange

public void rearrange()
rearranges the list of trials in the gui. note that this does not do anything to the trial list in memory, only the gui