|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.Android_Seminar.xmlCreator.XmlCreator
public class XmlCreator
Constructor Summary | |
---|---|
XmlCreator(SensorController sensorController)
constructor |
Method Summary | |
---|---|
boolean |
deleteXmlFile(java.lang.String file)
deletes an xml file |
long |
getActivityEndTime(java.lang.String file)
|
java.lang.String |
getActivityName(java.lang.String file)
|
long |
getActivityStartTime(java.lang.String file)
|
java.util.LinkedList<java.lang.String> |
getXmlActivities()
This method returns a list with all the available activities (xml files that already have been tagged) This names only consists of the file name without a path |
java.util.LinkedList<java.lang.String> |
getXmlRawData()
This method returns a list with all the xml files that have not been tagged, yet. |
boolean |
isRecording()
Determines if a recording is running |
void |
run()
run method of this thread |
void |
startRecording()
|
void |
startRecording(java.lang.String tag)
|
void |
stopRecording()
stops a current recording |
void |
tagActivity(java.lang.String tag,
java.lang.String file,
long startTime,
long endTime)
tags a activity (xml file) with a given tag |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlCreator(SensorController sensorController)
sensorController
- the SensorController
where all the data will be obtained fromMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void startRecording()
file
- public void startRecording(java.lang.String tag)
file
- tag
- public void stopRecording()
public void tagActivity(java.lang.String tag, java.lang.String file, long startTime, long endTime)
tag
- the tag, the activity should be tagged withfile
- the path and file name of the activity that should be tagged
(path and file name of the xml file)startTime
- endTime
- public java.util.LinkedList<java.lang.String> getXmlActivities()
public java.util.LinkedList<java.lang.String> getXmlRawData()
public java.lang.String getActivityName(java.lang.String file)
file
- the file name of the xml file that contains the activity
This file name must consist only of the file's name, not of it's path
public long getActivityStartTime(java.lang.String file)
file
- the file name of the xml file that contains the activity
This file name must consist only of the file's name, not of it's path
public long getActivityEndTime(java.lang.String file)
file
- the file name of the xml file that contains the activity
This file name must consist only of the file's name, not of it's path
public boolean isRecording()
public boolean deleteXmlFile(java.lang.String file)
file
- the file that should be deleted
This file name must consist only of the file's name, not of it's path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |