at.tuwien.ifs.somtoolbox.apps.analysis
Class PlaylistAnalysis

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.apps.analysis.PlaylistAnalysis

public class PlaylistAnalysis
extends Object

Version:
$Id: PlaylistAnalysis.java 3589 2010-05-21 10:42:01Z mayer $
Author:
Jakob Frank

Field Summary
private  List<PLAnalyser> analysers
           
private  String headerString
           
private  InputData inputData
           
private  MapPNode map
           
static com.martiansoftware.jsap.Parameter[] OPTIONS
           
private  String outBasename
           
private  File outDir
           
private  GrowingSOM som
           
 
Constructor Summary
PlaylistAnalysis()
           
 
Method Summary
private  void analyse(File[] listFiles, boolean rawVal)
           
private  void analyse(File file, boolean rawVal)
           
private  void analyseDir(File file, boolean rawVal)
           
 InputData getInputData()
           
 MapPNode getMap()
           
 String getOutBasename()
           
 File getOutDir()
           
 GrowingSOM getSom()
           
private  void load(com.martiansoftware.jsap.JSAPResult params)
           
private static List<String> loadPlaylist(File playlist)
           
static void main(String[] _args)
           
 void printHeader(PrintStream ps)
           
private  void registerAnalyzer(PLAnalyser inputSpaceAnalyser)
           
private  void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTIONS

public static final com.martiansoftware.jsap.Parameter[] OPTIONS

inputData

private InputData inputData

outBasename

private String outBasename

outDir

private File outDir

som

private GrowingSOM som

analysers

private List<PLAnalyser> analysers

headerString

private String headerString

map

private MapPNode map
Constructor Detail

PlaylistAnalysis

public PlaylistAnalysis()
Method Detail

analyse

private void analyse(File file,
                     boolean rawVal)
              throws IOException,
                     MetricException
Throws:
IOException
MetricException

analyse

private void analyse(File[] listFiles,
                     boolean rawVal)
              throws IOException,
                     MetricException
Throws:
IOException
MetricException

analyseDir

private void analyseDir(File file,
                        boolean rawVal)
                 throws IOException,
                        MetricException
Throws:
IOException
MetricException

getInputData

public InputData getInputData()

getOutBasename

public String getOutBasename()

getOutDir

public File getOutDir()

getSom

public GrowingSOM getSom()

load

private void load(com.martiansoftware.jsap.JSAPResult params)
           throws Exception
Throws:
Exception

getMap

public MapPNode getMap()

shutdown

private void shutdown()

printHeader

public void printHeader(PrintStream ps)

loadPlaylist

private static List<String> loadPlaylist(File playlist)
                                  throws FileNotFoundException,
                                         IOException
Parameters:
playlist - Playlist to analize
Returns:
List of entries in the Playlist.
Throws:
FileNotFoundException - if the file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading.
IOException - If an I/O error occurs

main

public static void main(String[] _args)
Parameters:
_args - Command Line parameters.

registerAnalyzer

private void registerAnalyzer(PLAnalyser inputSpaceAnalyser)