|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspirals.motol.database.Data
public class Data
Class contains and information about tablet and about captured data.
Data itself are in file with name: pacient-hash_YYYY_MM_DD_HH_MM_SS.zip
Copyright: Copyright (c) 2005 Jan Dolezel
Company: ÈVUT FEL, Prague
TabletData
Field Summary | |
---|---|
static java.lang.String |
dataTag
name of data tag |
private java.util.Date |
date
creation time |
static java.lang.String |
dateFormat
format for naming file |
static java.lang.String |
descAttr
name of data type attribute |
private java.lang.String |
description
type of drawing |
private java.io.File |
file
file with data |
static java.lang.String |
fileAttr
name data file attribute |
static java.lang.String |
maxxAttr
name of tabet's maximal x coordinate attribute |
static java.lang.String |
maxyAttr
name of tabet's maximal y coordinate attribute |
private java.lang.String |
memo
data comment |
static java.lang.String |
memoTag
name of comment tag |
static java.lang.String |
minxAttr
name of tabet's minimal x coordinate attribute |
static java.lang.String |
minyAttr
name of tabet's minimal y coordinate attribute |
static java.lang.String |
nameAttr
name of tablet name attribute |
static java.lang.String |
tabletTag
name of tablet tag |
private TabletInfo |
ti
tablet measures |
private Visit |
visit
pacient whom data belongs to |
Constructor Summary | |
---|---|
Data(Visit visit,
org.jdom.Element data)
crete new tablet data for pacient from XML tag |
|
Data(Visit visit,
TabletInfo tabletInfo,
java.lang.String description,
java.lang.String file,
java.lang.String memo)
create new tablet data for pacient from specified information From file name is extracted date and created relative path to this file from database root. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
return type of drawing |
org.jdom.Element |
getElement()
create XML element for saving Element contains type of drawing, file name with data, comment of drawing, and tablet measures with which were data captured. |
java.io.File |
getFile()
return file with relative path from application root |
java.lang.String |
getMemo()
return data comment |
TabletInfo |
getTabletInfo()
returns tablet measures |
private static TabletInfo |
getTabletInfoFromTag(org.jdom.Element tabEl)
create new TabletInfo from XML tag |
void |
setDescription(java.lang.String description)
set new type of drawing |
void |
setMemo(java.lang.String memo)
set new comment |
void |
setTabletInfo(TabletInfo tabletInfo)
set new tablet measures |
java.lang.String |
toFileName()
return name of file |
java.lang.String |
toString()
return type of drawing and date of creation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Visit visit
private java.lang.String description
private java.util.Date date
private java.io.File file
private java.lang.String memo
private TabletInfo ti
public static final java.lang.String dataTag
public static final java.lang.String descAttr
public static final java.lang.String tabletTag
public static final java.lang.String nameAttr
public static final java.lang.String minxAttr
public static final java.lang.String maxxAttr
public static final java.lang.String minyAttr
public static final java.lang.String maxyAttr
public static final java.lang.String fileAttr
public static final java.lang.String memoTag
public static final java.lang.String dateFormat
Constructor Detail |
---|
public Data(Visit visit, org.jdom.Element data)
public Data(Visit visit, TabletInfo tabletInfo, java.lang.String description, java.lang.String file, java.lang.String memo)
From file name is extracted date and created relative path to this file from database root.
pacient
- Pacient whom belong datatabletInfo
- tablet measuresdescription
- type of drawingfile
- name of filememo
- commentMethod Detail |
---|
private static final TabletInfo getTabletInfoFromTag(org.jdom.Element tabEl)
public org.jdom.Element getElement()
Element contains type of drawing, file name with data, comment of drawing, and tablet measures with which were data captured.
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toFileName()
public java.io.File getFile()
public java.lang.String getMemo()
public TabletInfo getTabletInfo()
public void setTabletInfo(TabletInfo tabletInfo)
public void setMemo(java.lang.String memo)
public void setDescription(java.lang.String description)
|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |