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)
ExecutionData
setSessionCompleted
in interface ExecutionData
public int getSessionCompleted()
ExecutionData
getSessionCompleted
in interface ExecutionData
public 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()
ExecutionData
getModule
in interface ExecutionData
public ModuleSession getModuleSession()
ExecutionData
getModuleSession
in interface ExecutionData
public void markSessionEnd()
ExecutionData
markSessionEnd
in interface ExecutionData
public Trial getCreateFirstTrial()
ExecutionData
getCreateFirstTrial
in interface ExecutionData
public Trial getCreateLastTrial()
ExecutionData
getCreateLastTrial
in interface ExecutionData
public LinkedList<Trial> getTrials()
ExecutionData
getTrials
in interface ExecutionData
public Trial addTrial()
ExecutionData
addTrial
in interface ExecutionData
Copyright © 2013. All Rights Reserved.