public interface DataService
Modifier and Type | Method and Description |
---|---|
ModuleSession |
createSession(Module module)
Create a new session.
|
List<Object[]> |
findDistinctSessionPropertyNames(Module module)
Get all distinct session property names for a module.
|
List<Object[]> |
findDistinctTrialPropertyNames(Module module)
Get all distinct trial property names for a module.
|
void |
finishSession(ModuleSession session)
Finish a module session
This will set the end time of the session
|
ModuleSession |
getLastSession(Module module,
boolean includeUnfinished)
Get the last session of a module.
|
Messages |
getMessages()
Gets the messages used by Tatool
|
long |
getSessionCount(Module module,
boolean includeUnfinished)
Get the number of sessions in a module
|
List<ModuleSession> |
getSessions(Module module)
Get all sessions for a given module
|
List<Trial> |
getTrials(Module module,
ModuleSession session,
Node node,
int maxResults)
Get a list of trials for a given element, ordered by the most recent trial first.
|
List<Trial> |
getTrials(Module module,
ModuleSession session,
String elementNameLike,
String propertyNameLike,
int offSet,
int maxResults)
Get a list of x trials with a given property of a given element, ordered by the most recent trial first.
|
List<Trial> |
getTrials(ModuleSession session)
Get all trials for a session.
|
void |
insertTrial(ModuleSession session,
Trial trial)
Inserts a new trial object into the session.
|
void |
saveModule(Module module)
Save the module instance.
|
void |
saveSession(ModuleSession session)
Save a session without finishing it.
|
void |
setMessages(Messages messages)
Sets the messages used by Tatool
|
void saveModule(Module module)
ModuleSession createSession(Module module)
void saveSession(ModuleSession session)
void finishSession(ModuleSession session)
List<ModuleSession> getSessions(Module module)
ModuleSession getLastSession(Module module, boolean includeUnfinished)
module
- the module to search forlong getSessionCount(Module module, boolean includeUnfinished)
module
- the module to checkincludeUnfinished
- whether to include unfinished sessions (sessions without end time)void insertTrial(ModuleSession session, Trial trial)
List<Trial> getTrials(ModuleSession session)
List<Trial> getTrials(Module module, ModuleSession session, Node node, int maxResults)
the
- training to find trials forsession
- the session to find trials in. Use null to search for all sessionsnode
- the element to find trials for. Use null to search for all element.maxResults
- the maximum amount of results.List<Trial> getTrials(Module module, ModuleSession session, String elementNameLike, String propertyNameLike, int offSet, int maxResults)
training
- The training to search forsession
- The sessions the trials should be belong to, null if all sessions should be taken into accountelementNameLike
- the name of the element to search for (either this or propertyName needs to be non-null)propertyNameLike
- the name of the property to search for (either this or elementName needs to be non-nulloffSet
- the offset to start from, starting with 0maxResults
- the maximum number of Trials to return, -1 for all resultsList<Object[]> findDistinctTrialPropertyNames(Module module)
List<Object[]> findDistinctSessionPropertyNames(Module module)
void setMessages(Messages messages)
Messages getMessages()
Copyright © 2013. All Rights Reserved.