public class ExecutionDataImpl extends Object implements ExecutionData
| Constructor and Description |
|---|
ExecutionDataImpl()
Create a new ExecutionDataImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
Trial |
addTrial()
Add a new trial to the list of trials for the current execution.
|
void |
clear()
Clears the execution data object.
|
void |
closeSession()
Closes and clears a session.
|
Trial |
getCreateFirstTrial()
Get the first trial in the list, create a trial if none exist.
|
Trial |
getCreateLastTrial()
Get the last trial in the list, create a trial if none exist.
|
Module |
getModule()
Get the module object.
|
ModuleSession |
getModuleSession()
Get the module session object.
|
int |
getSessionCompleted()
Gets the session completed flag which helps identifying whether the session was cancelled or completed
|
LinkedList<Trial> |
getTrials()
Get the trial objects for the actual execution.
|
boolean |
isCloseCurrentSession() |
boolean |
isCloseSessionRequested()
Returns whether a session is closable.
|
void |
markSessionEnd()
Request the current session to be closed after the execution of the current element.
|
boolean |
openSession()
Opens a session if no session is opened currently
|
void |
persistTrials()
Persists the current trials and removes them from the data object.
|
void |
setCloseCurrentSession(boolean closeCurrentSession) |
void |
setDataService(DataService dataService) |
void |
setModule(Module module) |
void |
setSessionCompleted(int completed)
Sets the completed flag for a session which allows to identify cancelled sessions later on
|
public ExecutionDataImpl()
public void setDataService(DataService dataService)
public boolean openSession()
public void setSessionCompleted(int completed)
ExecutionDatasetSessionCompleted in interface ExecutionDatapublic int getSessionCompleted()
ExecutionDatagetSessionCompleted in interface ExecutionDatapublic boolean isCloseSessionRequested()
public void closeSession()
public void persistTrials()
public void setModule(Module module)
public void clear()
public boolean isCloseCurrentSession()
public void setCloseCurrentSession(boolean closeCurrentSession)
public Module getModule()
ExecutionDatagetModule in interface ExecutionDatapublic ModuleSession getModuleSession()
ExecutionDatagetModuleSession in interface ExecutionDatapublic void markSessionEnd()
ExecutionDatamarkSessionEnd in interface ExecutionDatapublic Trial getCreateFirstTrial()
ExecutionDatagetCreateFirstTrial in interface ExecutionDatapublic Trial getCreateLastTrial()
ExecutionDatagetCreateLastTrial in interface ExecutionDatapublic LinkedList<Trial> getTrials()
ExecutionDatagetTrials in interface ExecutionDatapublic Trial addTrial()
ExecutionDataaddTrial in interface ExecutionDataCopyright © 2013. All Rights Reserved.