MetricRaw.java
Go to the documentation of this file.00001 package edu.rice.cs.hpc.data.experiment.metric;
00002
00003 import edu.rice.cs.hpc.data.experiment.scope.Scope;
00004
00005
00006
00007
00008
00009
00010 public class MetricRaw extends BaseMetric {
00011
00012 private int ID;
00013 private String db_glob;
00014 private int db_id;
00015 private int num_metrics;
00016
00017 public MetricRaw(String sID, String sDisplayName, boolean displayed, String format, AnnotationType annotationType, int index) {
00018 super(sID, sDisplayName, displayed, format, annotationType, index, index, MetricType.EXCLUSIVE);
00019 }
00020
00021
00022 public MetricRaw(int id, String title, String db_pattern,
00023 int db_num, int metrics) {
00024
00025 super( String.valueOf(id), title, true, null, AnnotationType.NONE, db_num, db_num, MetricType.EXCLUSIVE);
00026 this.ID = id;
00027 this.db_glob = db_pattern;
00028 this.db_id = db_num;
00029 this.num_metrics = metrics;
00030 }
00031
00032
00033
00034
00035
00036
00037 public String getGlob() {
00038 return this.db_glob;
00039 }
00040
00041
00042
00043
00044
00045
00046
00047 public int getRawID() {
00048 return this.db_id;
00049 }
00050
00051
00052
00053
00054
00055
00056 public int getSize() {
00057 return this.num_metrics;
00058 }
00059
00060
00061
00062
00063
00064
00065
00066 public int getID() {
00067 return this.ID;
00068 }
00069
00070
00071
00072 public MetricValue getValue(Scope s) {
00073 return null;
00074 }
00075
00076
00077
00078 public BaseMetric duplicate() {
00079 return new MetricRaw(ID, this.displayName, this.db_glob, this.db_id, this.num_metrics);
00080 }
00081
00082 }