LoadModuleScope.java

Go to the documentation of this file.
00001 
00002 //                                  //
00003 //  LoadModuleScope.java                        //
00004 //                                  //
00005 //  experiment.scope.LoadModuleScope -- a load module scope     //
00006 //  Last edited: April 4, 2003 at 5:00 pm               //
00007 //                                  //
00008 //  (c) Copyright 2003 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.Experiment;
00020 import edu.rice.cs.hpc.data.experiment.scope.visitors.IScopeVisitor;
00021 import edu.rice.cs.hpc.data.experiment.source.SourceFile;
00022 
00023 
00024 
00025 
00027 //  CLASS LOADMODULE-SCOPE                      //
00029 
00030 /*
00031  *
00032  * A load module scope in an HPCView experiment.
00033  *
00034  */
00035 
00036 
00037 public class LoadModuleScope extends Scope
00038 {
00039 
00040 
00042 protected String loadModuleName;
00043 
00044 
00045 
00046 
00048 //  INITIALIZATION                          //
00050 
00051 
00052 
00053 
00054 /*************************************************************************
00055  *  Creates a LoadModuleScope.
00056  ************************************************************************/
00057     
00058 public LoadModuleScope(BaseExperiment experiment, String lmname, SourceFile file, int id)
00059 {
00060     super(experiment, file, id);
00061     this.loadModuleName = lmname;
00062 }
00063 
00064 public LoadModuleScope(Experiment experiment, String lmname, SourceFile file)
00065 {
00066     super(experiment, file, Scope.idMax++);
00067     this.loadModuleName = lmname;
00068 }
00069 
00070 
00071 public Scope duplicate() {
00072     return new LoadModuleScope(this.experiment, this.loadModuleName, this.sourceFile, this.flat_node_index);
00073 }
00074 
00075 /*
00076 public int hashCode() {
00077     return this.loadModuleName.hashCode();
00078 } */
00079 
00081 //  SCOPE DISPLAY                                                       //
00083 
00084 
00085 
00086 
00087 /*************************************************************************
00088  *  Returns the user visible name for this scope.
00089  ************************************************************************/
00090     
00091 public String getName()
00092 {
00093     return "Load module " +  this.loadModuleName;
00094 }
00095 
00097 //support for visitors                                                  //
00099 
00100 public void accept(IScopeVisitor visitor, ScopeVisitType vt) {
00101     visitor.visit(this, vt);
00102 }
00103 
00108 public String getModuleName() {
00109     return this.loadModuleName;
00110 }
00111 
00116 protected String getSourceCitation()
00117 {
00118     return getName();  
00119 }
00120 
00121 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1