00001 package edu.rice.cs.hpc.viewer.window; 00002 00003 import edu.rice.cs.hpc.data.experiment.Experiment; 00004 import edu.rice.cs.hpc.viewer.experiment.ExperimentView; 00005 import edu.rice.cs.hpc.viewer.metric.ThreadLevelDataManager; 00006 00007 public class Database { 00008 private int winIndex; 00009 private Experiment experiment; 00010 private ExperimentView view; 00011 private ThreadLevelDataManager dataManager; 00012 00017 public int getWindowIndex () { 00018 return winIndex; 00019 } 00020 00021 00026 public Experiment getExperiment () { 00027 return experiment; //this.view.getExperimentData().getExperiment(); // 00028 } 00029 00030 /*** 00031 * get the thread level data manager (used by plot graphs) 00032 * @return 00033 */ 00034 public ThreadLevelDataManager getThreadLevelDataManager() { 00035 return dataManager; 00036 } 00037 00042 public ExperimentView getExperimentView () { 00043 return view; 00044 } 00045 00050 public void setWindowIndex (int index) { 00051 winIndex = index; 00052 return; 00053 } 00054 00055 00060 public void setExperiment (Experiment exper) { 00061 experiment = exper; 00062 dataManager = new ThreadLevelDataManager(exper); 00063 return; 00064 } 00065 00070 public void setExperimentView (ExperimentView experView) { 00071 view = experView; 00072 return; 00073 } 00074 00075 public void dispose() { 00076 dataManager.dispose(); 00077 experiment.dispose(); 00078 } 00079 }