ch.tatool.app.service.exec.impl
Class ExecutionDataImpl

java.lang.Object
  extended by ch.tatool.app.service.exec.impl.ExecutionDataImpl
All Implemented Interfaces:
ExecutionData

public class ExecutionDataImpl
extends Object
implements ExecutionData

Main execution data holder object. Manages the root elements, the current element stack (including switching from one to the next), the pause durations, etc.

Author:
Michael Ruflin

Constructor Summary
ExecutionDataImpl()
          Create a new ExecutionDataImpl object.
 
Method Summary
 Trial addTrial()
           
 void clear()
          Clears the execution data object.
 void closeSession()
          Closes and clears a session.
 Trial getCreateFirstTrial()
           
 Trial getCreateLastTrial()
           
 Module getModule()
           
 ModuleSession getModuleSession()
           
 LinkedList<Trial> getTrials()
           
 boolean isCloseCurrentSession()
           
 boolean isCloseSessionRequested()
          Returns whether a session is closable.
 void markSessionEnd()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionDataImpl

public ExecutionDataImpl()
Create a new ExecutionDataImpl object.

Method Detail

setDataService

public void setDataService(DataService dataService)

openSession

public boolean openSession()
Opens a session if no session is opened currently

Returns:
true if a new session was opened

isCloseSessionRequested

public boolean isCloseSessionRequested()
Returns whether a session is closable.

Returns:
true if a session is available and its closing has been requested

closeSession

public void closeSession()
Closes and clears a session.


persistTrials

public void persistTrials()
Persists the current trials and removes them from the data object.


setModule

public void setModule(Module module)

clear

public void clear()
Clears the execution data object.


isCloseCurrentSession

public boolean isCloseCurrentSession()

setCloseCurrentSession

public void setCloseCurrentSession(boolean closeCurrentSession)

getModule

public Module getModule()
Specified by:
getModule in interface ExecutionData

getModuleSession

public ModuleSession getModuleSession()
Specified by:
getModuleSession in interface ExecutionData

markSessionEnd

public void markSessionEnd()
Specified by:
markSessionEnd in interface ExecutionData

getCreateFirstTrial

public Trial getCreateFirstTrial()
Specified by:
getCreateFirstTrial in interface ExecutionData

getCreateLastTrial

public Trial getCreateLastTrial()
Specified by:
getCreateLastTrial in interface ExecutionData

getTrials

public LinkedList<Trial> getTrials()
Specified by:
getTrials in interface ExecutionData

addTrial

public Trial addTrial()
Specified by:
addTrial in interface ExecutionData


Copyright © 2012. All Rights Reserved.