ch.claudio.permilena
Class Model

java.lang.Object
  extended by ch.claudio.permilena.Model

public class Model
extends java.lang.Object

The model collects all functions which Permilena can perform. Any GUI is based on this model.

Version:
$Id: Model.java 148 2006-09-14 20:52:32Z claudio $
Author:
Claudio Nieder

Copyright (C) 2006 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Constructor Summary
Model()
           
 
Method Summary
 void buffer(int i)
          Buffer the i-th song in the playlist (starting with 0).
 Playlist getPlaylist()
           
 java.lang.String getTitle(int i)
          Return the name of the i-th song in the playlist (starting with 0).
 int getTitleCount()
           
static void main(java.lang.String[] args)
          Print license.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model()
Method Detail

getPlaylist

public Playlist getPlaylist()
Returns:
the playlist

getTitleCount

public int getTitleCount()
Returns:
the number of titles in the playlist

getTitle

public java.lang.String getTitle(int i)
Return the name of the i-th song in the playlist (starting with 0).

Parameters:
i - playlist index
Returns:
song name

buffer

public void buffer(int i)
Buffer the i-th song in the playlist (starting with 0).

Parameters:
i - playlist index

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored