edu.rice.cs.hpc.viewer.experiment.ExperimentManager Class Reference

This class manages to select, load and open a database directory We assume that a database directory contains an XML file (i.e. More...

Collaboration diagram for edu.rice.cs.hpc.viewer.experiment.ExperimentManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExperimentManager (IWorkbenchWindow win)
 Constructor to instantiate experiment file.
boolean openDatabaseFromDirectory (String sPath, int flag)
 Open a database given a path to the database directory.
boolean openFileExperiment (int flag)
 Attempt to open an experiment database if valid then open the scope view.

Static Public Attributes

static final int FLAG_DEFAULT = 0
static final int FLAG_WITH_CALLER_VIEW = 1
static final int FLAG_WITHOUT_CALLER_VIEW = 2
static String sLastPath = null
 Last path of the opened directory.

Private Member Functions

File[] getDatabaseFileList (Shell shell, String sTitle)
 Get the list of database file name.
boolean openFileExperimentFromFiles (File[]filesXML, int flag)
 Open an experiment database based on given an array of java.lang.File.
boolean setExperiment (String sFilename, int flag)
 Set the experiment to be processed.
File[] getListOfXMLFiles (String sPath)
 Return the list of .xml files in a directory.

Private Attributes

IWorkbenchWindow window
 pointer to the current active workbench window (supposed to be only one)
boolean flagCallerView = true
 flag to indicate if a caller view needs to display or not

Detailed Description

This class manages to select, load and open a database directory We assume that a database directory contains an XML file (i.e.

extension .xml) Warning: This class is not compatible with the old version of experiment file (the old version has no xml extension)

Author:
laksono

Definition at line 32 of file ExperimentManager.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.viewer.experiment.ExperimentManager.ExperimentManager ( IWorkbenchWindow  win  ) 

Constructor to instantiate experiment file.

Parameters:
win,: the current workbench window

Definition at line 54 of file ExperimentManager.java.

References edu.rice.cs.hpc.viewer.experiment.ExperimentManager.window.


Member Function Documentation

File [] edu.rice.cs.hpc.viewer.experiment.ExperimentManager.getDatabaseFileList ( Shell  shell,
String  sTitle 
) [private]

Get the list of database file name.

Parameters:
shell : the shell widget of the application
sTitle : the title of the window open fike
Returns:
the list of XML files in the selected directory null if the user click the "cancel" button

Definition at line 71 of file ExperimentManager.java.

References edu.rice.cs.hpc.viewer.experiment.ExperimentManager.getListOfXMLFiles().

Referenced by edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperiment().

File [] edu.rice.cs.hpc.viewer.experiment.ExperimentManager.getListOfXMLFiles ( String  sPath  )  [private]

Return the list of .xml files in a directory.

Parameters:
sPath,: the directory of the database
Returns:

Definition at line 194 of file ExperimentManager.java.

Referenced by edu.rice.cs.hpc.viewer.experiment.ExperimentManager.getDatabaseFileList(), and edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openDatabaseFromDirectory().

boolean edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openDatabaseFromDirectory ( String  sPath,
int  flag 
)

Open a database given a path to the database directory.

Parameters:
sPath : absolute path of the database directory
flag : whether to show callers view or not
Returns:
true if the database has been successfully opened

Definition at line 93 of file ExperimentManager.java.

References edu.rice.cs.hpc.viewer.experiment.ExperimentManager.getListOfXMLFiles(), and edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperimentFromFiles().

Referenced by edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.postWindowOpen().

boolean edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperiment ( int  flag  ) 
boolean edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperimentFromFiles ( File[]  filesXML,
int  flag 
) [private]
boolean edu.rice.cs.hpc.viewer.experiment.ExperimentManager.setExperiment ( String  sFilename,
int  flag 
) [private]

Member Data Documentation

Definition at line 34 of file ExperimentManager.java.

flag to indicate if a caller view needs to display or not

Definition at line 48 of file ExperimentManager.java.

Referenced by edu.rice.cs.hpc.viewer.experiment.ExperimentManager.setExperiment().

Last path of the opened directory.

Definition at line 40 of file ExperimentManager.java.


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1