ExperimentConfiguration.java

Go to the documentation of this file.
00001 
00002 //                                                                      //
00003 //  ExperimentConfiguration.java                                        //
00004 //                                                                      //
00005 //  experiment.ExperimentConfiguration -- an experiment's config data   //
00006 //  Last edited: May 18, 2001 at 2:15 pm                                //
00007 //                                                                      //
00008 //  (c) Copyright 2001 Rice University. All rights reserved.            //
00009 //                                                                      //
00011 
00012 
00013 
00014 
00015 package edu.rice.cs.hpc.data.experiment;
00016 
00017 import java.io.File;
00018 import java.util.List;
00019 
00020 
00021 
00022 
00024 //  CLASS EXPERIMENT-CONFIGURATION                                      //
00026 
00034 public class ExperimentConfiguration extends Object
00035 {
00036     static final public int NAME_EXPERIMENT = 0, NAME_SUMMARY_DB = 1, 
00037                             NAME_TRACE_DB   = 2, NAME_PLOT_DB    = 3; 
00038 
00040     protected String []name;
00041 
00043     public File[] searchPaths;
00044 
00045 
00047     //  INITIALIZATION                                                      //
00049 
00050     /*************************************************************************
00051      *  Creates an empty ExperimentConfiguration.
00052      ************************************************************************/
00053 
00054     public ExperimentConfiguration()
00055     {
00056         name = new String[4];
00057         //name[NAME_EXPERIMENT] = "<Empty Experiment>";
00058     }
00059 
00060 
00061 
00062 
00064     //  ACCESS TO CONFIGURATION                                             //
00066 
00067 
00068 
00069 
00070     /*************************************************************************
00071      *  Returns the experiment's user visible name.
00072      ************************************************************************/
00073 
00074     public String getName(int type)
00075     {
00076         return name[type];
00077     }
00078 
00079 
00080 
00081 
00082     /*************************************************************************
00083      *  Sets the experiment's user visible name.
00084      ************************************************************************/
00085 
00086     public void setName(int type, String name)
00087     {
00088         this.name[type] = name;
00089     }
00090 
00091 
00092 
00093 
00094     /*************************************************************************
00095      *  Returns the number of search paths in the experiment.
00096      ************************************************************************/
00097 
00098     public int getSearchPathCount()
00099     {
00100         if (this.searchPaths != null)
00101             return this.searchPaths.length;
00102         else
00103             return 0;
00104     }
00105 
00106 
00107 
00108 
00109     /*************************************************************************
00110      *  Returns the search path with a given index.
00111      ************************************************************************/
00112 
00113     public File getSearchPath(int index)
00114     {
00115         return this.searchPaths[index];
00116     }
00117 
00118 
00119 
00120 
00121     /*************************************************************************
00122      *  Sets the experiment's search paths.
00123      ************************************************************************/
00124 
00125     public void setSearchPaths(List<File> pathList)
00126     {
00127         this.searchPaths = pathList.toArray(new File[0]);
00128     }
00129 }
00130 
00131 
00132 
00133 
00134 
00135 
00136 
00137 

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1