fr.ens.transcriptome.doelan
Class Core

java.lang.Object
  extended byfr.ens.transcriptome.doelan.Core
All Implemented Interfaces:
fr.ens.transcriptome.nividic.platform.workflow.WorkflowListener

public final class Core
extends java.lang.Object
implements fr.ens.transcriptome.nividic.platform.workflow.WorkflowListener

Manage the Workflows

Author:
Laurent Jourdren

Field Summary
static java.lang.String CONFIGURE_ALGORITHM
          Identifier of the show report algorithm.
static java.lang.String EXECUTE_GLOBAL_TESTS_ALGORITHM
          Identifier of the algorithm for executing global test.
static java.lang.String GENERATE_REPORT_ALGORITHM
          Identifier of the generate report algorithm.
static java.lang.String LOAD_ALGORITHM
          Identifier of the load algorithm.
static java.lang.String SHOW_REPORT_ALGORITHM
          Identifier of the show report algorithm.
 
Method Summary
 void createDemoWorkflow()
          Create and activate the demo test suite.
 void createEmptyWorkflow()
          Create and activate the empty test suite.
 java.applet.Applet getApplet()
          Get the applet.
static Core getCore()
          Return the unique instance of the Core object
 MainTabWidget getMainTab()
          Get the main tab widget.
 ReportTabWidget getReport()
          Get the report widget
 StatusWidget getStatus()
          Get the status widget.
 javax.swing.JLabel getStatusBar()
          Get the status bar object.
 TestSuitePanel getTable()
          Get the table.
 java.net.URL getTestSuiteListURL()
          Get the URL of the test suite list.
 boolean isAppletMode()
          Test if the applet is enable.
 boolean isSuite()
          Test if a suite is load in memory.
 void loadNewWorkflow(QualityTestSuiteURL url)
          Load an new workflow
 void saveWorkflow(QualityTestSuiteURL url)
          Save a workflow.
 void setApplet(java.applet.Applet applet)
          Set the applet.
 void setMainTab(MainTabWidget mainTab)
          Set the main tab widget
 void setReport(ReportTabWidget report)
          Set the report widget.
 void setStatus(StatusWidget status)
          Set the status widget.
 void setStatusBar(javax.swing.JLabel statusBar)
          Set the status bar object.
 void setTable(TestSuitePanel table)
          Set the table.
 void setTestSuiteListURL(java.net.URL testSuiteListURL)
          Set the URL of the test suite list.
 void startWorkflow(java.lang.String chipTypeName, java.lang.String testSuiteName, java.lang.String gprFilename, java.lang.String galFilename, java.lang.String description, java.applet.Applet applet, fr.ens.transcriptome.nividic.platform.workflow.WorkflowListener listener)
          Start the workflow.
 void stopWorkflow()
          Stop the workflow.
 void workflowNewException(fr.ens.transcriptome.nividic.platform.PlatformException e)
          Throws an execption to a listener.
 void workflowStateChanged(fr.ens.transcriptome.nividic.platform.workflow.WorkflowEvent event)
          Invoked when the target of the listener has changed its state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD_ALGORITHM

public static final java.lang.String LOAD_ALGORITHM
Identifier of the load algorithm.

See Also:
Constant Field Values

EXECUTE_GLOBAL_TESTS_ALGORITHM

public static final java.lang.String EXECUTE_GLOBAL_TESTS_ALGORITHM
Identifier of the algorithm for executing global test.

See Also:
Constant Field Values

GENERATE_REPORT_ALGORITHM

public static final java.lang.String GENERATE_REPORT_ALGORITHM
Identifier of the generate report algorithm.

See Also:
Constant Field Values

SHOW_REPORT_ALGORITHM

public static final java.lang.String SHOW_REPORT_ALGORITHM
Identifier of the show report algorithm.

See Also:
Constant Field Values

CONFIGURE_ALGORITHM

public static final java.lang.String CONFIGURE_ALGORITHM
Identifier of the show report algorithm.

See Also:
Constant Field Values
Method Detail

getTable

public TestSuitePanel getTable()
Get the table.

Returns:
Returns the table

isSuite

public boolean isSuite()
Test if a suite is load in memory.

Returns:
true if a suite is load in memory

getReport

public ReportTabWidget getReport()
Get the report widget

Returns:
Returns the editor

setReport

public void setReport(ReportTabWidget report)
Set the report widget.

Parameters:
report - The repory to set

isAppletMode

public boolean isAppletMode()
Test if the applet is enable.

Returns:
Returns the appletMode

getApplet

public java.applet.Applet getApplet()
Get the applet.

Returns:
Returns the applet

getStatus

public StatusWidget getStatus()
Get the status widget.

Returns:
Returns the status

getStatusBar

public javax.swing.JLabel getStatusBar()
Get the status bar object.

Returns:
Returns the statusBar

getTestSuiteListURL

public java.net.URL getTestSuiteListURL()
Get the URL of the test suite list.

Returns:
Returns the testSuiteListURL

getMainTab

public MainTabWidget getMainTab()
Get the main tab widget.

Returns:
Returns the mainTab

setTable

public void setTable(TestSuitePanel table)
Set the table.

Parameters:
table - The table to set

setApplet

public void setApplet(java.applet.Applet applet)
Set the applet.

Parameters:
applet - The applet to set

setStatus

public void setStatus(StatusWidget status)
Set the status widget.

Parameters:
status - The status to set

setStatusBar

public void setStatusBar(javax.swing.JLabel statusBar)
Set the status bar object.

Parameters:
statusBar - The statusBar to set

setTestSuiteListURL

public void setTestSuiteListURL(java.net.URL testSuiteListURL)
Set the URL of the test suite list.

Parameters:
testSuiteListURL - The testSuiteListURL to set

setMainTab

public void setMainTab(MainTabWidget mainTab)
Set the main tab widget

Parameters:
mainTab - The mainTab to set

loadNewWorkflow

public void loadNewWorkflow(QualityTestSuiteURL url)
                     throws DoelanException
Load an new workflow

Parameters:
url - url of the testsuite to load
Throws:
DoelanException - if error occurs while the initialization of the test suite.

saveWorkflow

public void saveWorkflow(QualityTestSuiteURL url)
                  throws DoelanException
Save a workflow.

Parameters:
url - of the testsuite to save
Throws:
DoelanException - if error occurs while saving workflow

createDemoWorkflow

public void createDemoWorkflow()
                        throws DoelanException
Create and activate the demo test suite.

Throws:
DoelanException - if an error occurs while the initialization of the test suite.

createEmptyWorkflow

public void createEmptyWorkflow()
                         throws DoelanException
Create and activate the empty test suite.

Throws:
DoelanException - if an error occurs while the initialization of the test suite.

startWorkflow

public void startWorkflow(java.lang.String chipTypeName,
                          java.lang.String testSuiteName,
                          java.lang.String gprFilename,
                          java.lang.String galFilename,
                          java.lang.String description,
                          java.applet.Applet applet,
                          fr.ens.transcriptome.nividic.platform.workflow.WorkflowListener listener)
                   throws DoelanException
Start the workflow.

Parameters:
chipTypeName - Name of the selected chipType
testSuiteName - Name of the selected testSuite
gprFilename - Filename of the GPR data
galFilename - Filename of the GAL data
description - Description of the file
applet - applet used to load data
listener - workflow listener
Throws:
DoelanException - if an error occurs during the workflow

stopWorkflow

public void stopWorkflow()
                  throws fr.ens.transcriptome.nividic.platform.PlatformException
Stop the workflow.

Throws:
fr.ens.transcriptome.nividic.platform.PlatformException - if the workflow is not running

workflowNewException

public void workflowNewException(fr.ens.transcriptome.nividic.platform.PlatformException e)
Throws an execption to a listener.

Specified by:
workflowNewException in interface fr.ens.transcriptome.nividic.platform.workflow.WorkflowListener
Parameters:
e - Exception to throw.

workflowStateChanged

public void workflowStateChanged(fr.ens.transcriptome.nividic.platform.workflow.WorkflowEvent event)
Invoked when the target of the listener has changed its state.

Specified by:
workflowStateChanged in interface fr.ens.transcriptome.nividic.platform.workflow.WorkflowListener
Parameters:
event - a WorkflowEvent object

getCore

public static Core getCore()
Return the unique instance of the Core object

Returns:
The instance of the core object


Copyright © 2004-2005 École Normale Supérieure Microarray Platform. All Rights Reserved.