GroupScope.java

Go to the documentation of this file.
00001 
00002 //                                                                      //
00003 //  GroupScope.java                                                     //
00004 //                                                                      //
00005 //  experiment.scope.GroupScope -- a scope with arbitrary scope         //
00006 //                                  types as children                   //
00007 //  Last edited: February 8, 2005                                       //
00008 //                                                                      //
00009 //  (c) Copyright 2005 Rice University. All rights reserved.            //
00010 //                                                                      //
00012 
00013 
00014 
00015 
00016 package edu.rice.cs.hpc.data.experiment.scope;
00017 
00018 import edu.rice.cs.hpc.data.experiment.BaseExperiment;
00019 import edu.rice.cs.hpc.data.experiment.scope.visitors.IScopeVisitor;
00020 
00021 
00022 
00023 
00025 //  CLASS GROUP-SCOPE                                                   //
00027 
00028 /*
00029  *
00030  * A group scope in an HPCView experiment.
00031  *
00032  */
00033 
00034 
00035 public class GroupScope extends Scope
00036 {
00037 
00038 
00040 protected String groupName;
00041 
00042 
00043 
00044 
00046 //  INITIALIZATION                                                      //
00048 
00049 
00050 
00051 
00052 /*************************************************************************
00053  *  Creates a GroupScope.
00054  ************************************************************************/
00055     
00056 public GroupScope(BaseExperiment experiment, String groupname)
00057 {
00058     super(experiment, null, Scope.NO_LINE_NUMBER, Scope.NO_LINE_NUMBER, Scope.idMax++, Scope.idMax);
00059     this.groupName = groupname;
00060 //  this.id = "GroupScope";
00061 }
00062 
00063 
00064 public Scope duplicate() {
00065     return new GroupScope(this.experiment, this.groupName);
00066 }
00067 
00069 //  SCOPE DISPLAY                                                       //
00071 
00072 
00073 
00074 
00075 /*************************************************************************
00076  *  Returns the user visible name for this scope.
00077  ************************************************************************/
00078     
00079 public String getName()
00080 {
00081     return "Group " +  this.groupName;
00082 }
00083 
00085 //support for visitors                                                  //
00087 
00088 public void accept(IScopeVisitor visitor, ScopeVisitType vt) {
00089     visitor.visit(this, vt);
00090 }
00091 
00092 
00093 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1