Parkinson Disease Database

spirals.motol.database
Class Configuration

java.lang.Object
  extended by spirals.motol.database.Configuration

public class Configuration
extends java.lang.Object

Class contains information about application configuration and settings

All information are saved in XML file

Copyright: Copyright (c) 2005 Jan Dolezel

Company: ČVUT FEL, Prague


Field Summary
static org.jdom.input.SAXBuilder builder
          XML parser
private  java.io.File config
          file with configuration
static java.lang.String configurationTag
          name of configuration tag (root element)
private  java.io.File database
          database directory
private static DatabaseLoader databaseLoader
          Třída, která nahrává databázi
static java.lang.String databaseRootTag
          name of database root tag
static java.lang.String databaseRootValueAttr
          name of database root tag attribute
static java.lang.String defaultTabletTag
          name of default tablet tag
static java.lang.String defTabletValueAttr
          name of default tablet tag attribute
private  java.lang.String lafClass
          look and feel class for UI Manager
static java.lang.String lafClassTag
          name of look and feel class tag
private  int selectedTabletIndex
          index of selected tablet in tablet list
static org.jdom.output.XMLOutputter serializer
          XML outputter
static java.lang.String tabletMaxXAttr
          name of tabet's maximal x coordinate attribute
static java.lang.String tabletMaxYAttr
          name of tabet's maximal y coordinate attribute
static java.lang.String tabletMinXAttr
          name of tabet's minimal x coordinate attribute
static java.lang.String tabletMinYAttr
          name of tabet's minimal y coordinate attribute
static java.lang.String tabletNameAttr
          name of tablet name attribute
private  java.util.List<TabletInfo> tablets
          list of known tablets
static java.lang.String tabletTag
          name of tablet tag
private  java.util.List<Test> tests
          list of available types of drawings
private  int timeout
          maximální čas nahrávání z tabletu
static java.lang.String timeoutTag
          name of timeout tag
static java.lang.String timeoutValueAttr
          name of timeout tag attribute
static java.lang.String typeTag
          name of type tag
 
Constructor Summary
Configuration()
          Constructor Method loads configuration form file config.xml
 
Method Summary
 java.util.List<TabletInfo> getAvailableTablets()
          returns list of known tablets
 DatabaseLoader getDatabaseLoader()
          vrací implicitní třídu pro nahrávání dat
 java.io.File getDatabaseRoot()
          returns directory where database is saved
 java.lang.String getLafClass()
          returns string representation of current look and feel class
 int getSelectedTabletIndex()
          returns index of selected tablet in list of tablets
 java.util.List<Test> getTests()
          returns list of available types of drawings
 int getTimeout()
           
 void save()
          save configuration to file
 void setLafClass(java.lang.String lafClass)
          set new look and feel class
 void setSelectedTabletIndex(int index)
          sets index of new selected tablet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

databaseLoader

private static DatabaseLoader databaseLoader
Třída, která nahrává databázi


tablets

private java.util.List<TabletInfo> tablets
list of known tablets


tests

private java.util.List<Test> tests
list of available types of drawings


selectedTabletIndex

private int selectedTabletIndex
index of selected tablet in tablet list


config

private java.io.File config
file with configuration


database

private java.io.File database
database directory


lafClass

private java.lang.String lafClass
look and feel class for UI Manager


timeout

private int timeout
maximální čas nahrávání z tabletu


builder

public static final org.jdom.input.SAXBuilder builder
XML parser


serializer

public static final org.jdom.output.XMLOutputter serializer
XML outputter


configurationTag

public static final java.lang.String configurationTag
name of configuration tag (root element)

See Also:
Constant Field Values

tabletTag

public static final java.lang.String tabletTag
name of tablet tag

See Also:
Constant Field Values

tabletNameAttr

public static final java.lang.String tabletNameAttr
name of tablet name attribute

See Also:
Constant Field Values

tabletMinXAttr

public static final java.lang.String tabletMinXAttr
name of tabet's minimal x coordinate attribute

See Also:
Constant Field Values

tabletMaxXAttr

public static final java.lang.String tabletMaxXAttr
name of tabet's maximal x coordinate attribute

See Also:
Constant Field Values

tabletMinYAttr

public static final java.lang.String tabletMinYAttr
name of tabet's minimal y coordinate attribute

See Also:
Constant Field Values

tabletMaxYAttr

public static final java.lang.String tabletMaxYAttr
name of tabet's maximal y coordinate attribute

See Also:
Constant Field Values

defaultTabletTag

public static final java.lang.String defaultTabletTag
name of default tablet tag

See Also:
Constant Field Values

defTabletValueAttr

public static final java.lang.String defTabletValueAttr
name of default tablet tag attribute

See Also:
Constant Field Values

typeTag

public static final java.lang.String typeTag
name of type tag

See Also:
Constant Field Values

timeoutTag

public static final java.lang.String timeoutTag
name of timeout tag

See Also:
Constant Field Values

timeoutValueAttr

public static final java.lang.String timeoutValueAttr
name of timeout tag attribute

See Also:
Constant Field Values

databaseRootTag

public static final java.lang.String databaseRootTag
name of database root tag

See Also:
Constant Field Values

databaseRootValueAttr

public static final java.lang.String databaseRootValueAttr
name of database root tag attribute

See Also:
Constant Field Values

lafClassTag

public static final java.lang.String lafClassTag
name of look and feel class tag

See Also:
Constant Field Values
Constructor Detail

Configuration

public Configuration()
Constructor

Method loads configuration form file config.xml

Method Detail

save

public void save()
save configuration to file


getAvailableTablets

public java.util.List<TabletInfo> getAvailableTablets()
returns list of known tablets


getSelectedTabletIndex

public int getSelectedTabletIndex()
returns index of selected tablet in list of tablets


setSelectedTabletIndex

public void setSelectedTabletIndex(int index)
sets index of new selected tablet


getDatabaseRoot

public java.io.File getDatabaseRoot()
returns directory where database is saved


getTests

public java.util.List<Test> getTests()
returns list of available types of drawings


setLafClass

public void setLafClass(java.lang.String lafClass)
set new look and feel class


getLafClass

public java.lang.String getLafClass()
returns string representation of current look and feel class


getTimeout

public int getTimeout()
Returns:
int počet vteřin, kdy tablet sbírá data

getDatabaseLoader

public DatabaseLoader getDatabaseLoader()
vrací implicitní třídu pro nahrávání dat

Returns:
DatabaseLoader

Parkinson Disease Database