RootScope.java

Go to the documentation of this file.
00001 
00002 //                                                                      //
00003 //  RootScope.java                                                      //
00004 //                                                                      //
00005 //  experiment.scope.RootScope -- root scope of an experiment           //
00006 //  Last edited: May 18, 2001 at 6:19 pm                                //
00007 //                                                                      //
00008 //  (c) Copyright 2001 Rice University. All rights reserved.            //
00009 //                                                                      //
00011 
00012 
00013 
00014 
00015 package edu.rice.cs.hpc.data.experiment.scope;
00016 
00017 
00018 import edu.rice.cs.hpc.data.experiment.BaseExperiment;
00019 import edu.rice.cs.hpc.data.experiment.scope.RootScopeType;
00020 import edu.rice.cs.hpc.data.experiment.scope.visitors.IScopeVisitor;
00021 
00022 
00023 
00024 
00026 //  CLASS ROOT-SCOPE                                                    //
00028 
00036 public class RootScope extends Scope
00037 {
00038 
00039 
00041 protected String rootScopeName;
00042 protected RootScopeType rootScopeType;
00043 //public int MAX_LEVELS=0;
00044 
00046 //  INITIALIZATION                                                      //
00048 
00049 
00050 
00051 
00052 /*************************************************************************
00053  *  Creates a RootScope.
00054  ************************************************************************/
00055     
00056 public RootScope(BaseExperiment experiment, String name, RootScopeType rst)
00057 {
00058     super(experiment, null, Scope.NO_LINE_NUMBER, Scope.NO_LINE_NUMBER, 0,0);   
00059     this.rootScopeName = name;
00060 //  this.id = "RootScope";
00061     this.rootScopeType = rst;
00062     
00063 }
00064 
00065 
00066 public Scope duplicate() {
00067     return new RootScope(null,  this.rootScopeName, this.rootScopeType);
00068 }
00069 
00071 //  SCOPE DISPLAY                                                       //
00073 
00074 
00075 
00076 
00077 /*************************************************************************
00078  *  Returns the user visible name for this root scope.
00079  ************************************************************************/
00080     
00081 public String getName()
00082 {
00083     return "Experiment Aggregate Metrics";
00084 }
00085 
00086 public String getRootName()
00087 {
00088     return rootScopeName;
00089 }
00090 
00091 
00092 public RootScopeType getType()
00093 {
00094     return rootScopeType;
00095 }
00096 
00097 /*************************************************************************
00098  * reset the metric values into the default value (MetricValue.NONE)
00099  */
00100 /*public void resetMetricValues()
00101 {
00102     if (metrics == null)
00103         return;
00104     
00105     for (int i=0; i<metrics.length; i++) {
00106         metrics[i] = MetricValue.NONE;
00107     }   
00108 }*/
00109 
00111 // support for visitors                                                 //
00113 
00114 public void accept(IScopeVisitor visitor, ScopeVisitType vt) {
00115     visitor.visit(this, vt);
00116 }
00117 
00118     
00119 }
00120 

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1