This class manages to select, load and open a database directory We assume that a database directory contains an XML file (i.e. More...
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 |
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)
Definition at line 32 of file ExperimentManager.java.
edu.rice.cs.hpc.viewer.experiment.ExperimentManager.ExperimentManager | ( | IWorkbenchWindow | win | ) |
Constructor to instantiate experiment file.
win,: | the current workbench window |
Definition at line 54 of file ExperimentManager.java.
References edu.rice.cs.hpc.viewer.experiment.ExperimentManager.window.
File [] edu.rice.cs.hpc.viewer.experiment.ExperimentManager.getDatabaseFileList | ( | Shell | shell, | |
String | sTitle | |||
) | [private] |
Get the list of database file name.
shell | : the shell widget of the application | |
sTitle | : the title of the window open fike |
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.
sPath,: | the directory of the database |
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.
sPath | : absolute path of the database directory | |
flag | : whether to show callers view or not |
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 | ) |
Attempt to open an experiment database if valid then open the scope view.
Definition at line 104 of file ExperimentManager.java.
References edu.rice.cs.hpc.viewer.experiment.ExperimentManager.getDatabaseFileList(), edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperimentFromFiles(), and edu.rice.cs.hpc.viewer.experiment.ExperimentManager.window.
Referenced by edu.rice.cs.hpc.viewer.actions.OpenDatabase.execute(), and edu.rice.cs.hpc.viewer.framework.ApplicationWorkbenchWindowAdvisor.openDatabase().
boolean edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperimentFromFiles | ( | File[] | filesXML, | |
int | flag | |||
) | [private] |
Open an experiment database based on given an array of java.lang.File.
filesXML,: | list of files |
Definition at line 120 of file ExperimentManager.java.
References edu.rice.cs.hpc.viewer.window.ViewerWindow.getDatabasePath(), edu.rice.cs.hpc.viewer.window.ViewerWindow.getDb(), edu.rice.cs.hpc.viewer.experiment.ExperimentManager.setExperiment(), and edu.rice.cs.hpc.viewer.experiment.ExperimentManager.window.
Referenced by edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openDatabaseFromDirectory(), and edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperiment().
boolean edu.rice.cs.hpc.viewer.experiment.ExperimentManager.setExperiment | ( | String | sFilename, | |
int | flag | |||
) | [private] |
Set the experiment to be processed.
sFilename |
Definition at line 171 of file ExperimentManager.java.
References edu.rice.cs.hpc.viewer.experiment.ExperimentManager.FLAG_DEFAULT, edu.rice.cs.hpc.viewer.experiment.ExperimentManager.FLAG_WITHOUT_CALLER_VIEW, edu.rice.cs.hpc.viewer.experiment.ExperimentManager.flagCallerView, edu.rice.cs.hpc.viewer.experiment.ExperimentView.loadExperimentAndProcess(), and edu.rice.cs.hpc.viewer.experiment.ExperimentManager.window.
Referenced by edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperimentFromFiles().
final int edu.rice.cs.hpc.viewer.experiment.ExperimentManager.FLAG_DEFAULT = 0 [static] |
Definition at line 33 of file ExperimentManager.java.
Referenced by edu.rice.cs.hpc.viewer.experiment.ExperimentManager.setExperiment().
final int edu.rice.cs.hpc.viewer.experiment.ExperimentManager.FLAG_WITH_CALLER_VIEW = 1 [static] |
Definition at line 34 of file ExperimentManager.java.
final int edu.rice.cs.hpc.viewer.experiment.ExperimentManager.FLAG_WITHOUT_CALLER_VIEW = 2 [static] |
Definition at line 35 of file ExperimentManager.java.
Referenced by edu.rice.cs.hpc.viewer.experiment.ExperimentManager.setExperiment().
boolean edu.rice.cs.hpc.viewer.experiment.ExperimentManager.flagCallerView = true [private] |
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().
String edu.rice.cs.hpc.viewer.experiment.ExperimentManager.sLastPath = null [static] |
Last path of the opened directory.
Definition at line 40 of file ExperimentManager.java.
IWorkbenchWindow edu.rice.cs.hpc.viewer.experiment.ExperimentManager.window [private] |
pointer to the current active workbench window (supposed to be only one)
Definition at line 44 of file ExperimentManager.java.
Referenced by edu.rice.cs.hpc.viewer.experiment.ExperimentManager.ExperimentManager(), edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperiment(), edu.rice.cs.hpc.viewer.experiment.ExperimentManager.openFileExperimentFromFiles(), and edu.rice.cs.hpc.viewer.experiment.ExperimentManager.setExperiment().