|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sdmetrics.app.TableView
Class to provide a tabular view of the design measurement data.
This class provides access to the metric data stored in the
ElementPool through the DataTable interface.
There is one table for each metamodel element type, rows of the
tables are the design elements, columns are the metrics.
The class filters sets and internal metrics from the view, and reduces table output to those element types for which there actually is metric data.
| Constructor Summary | |
TableView(sdmetrics.metrics.MetricsEngine me)
Create a new TableView from the data provided by the Metrics engine. |
|
| Method Summary | |
java.lang.String |
getColumnDescription(int index,
int col)
Return a description for the metric at the specified column. |
java.lang.String |
getColumnName(int index,
int col)
Return the name of the metric at the specified column. |
java.lang.Object |
getMetricValue(int index,
int row,
int col)
Return the metric value for a particular design element and metric in a table, throwing an exception if the calculation failed. |
int |
getNumberOfColumns(int index)
Return the number of metrics for a table. |
int |
getNumberOfRows(int index)
Return the number of design elements for a table. |
int |
getNumberOfTables()
Returns the number of available tables. |
java.lang.String |
getRowName(int index,
int row)
Return the name of the design element at the specified row. |
java.lang.String |
getTableName(int index)
Returns the name of a table. |
int |
getTypeID(int table)
Return the metamodel type id for a table. |
java.lang.Object |
getValueAt(int index,
int row,
int col)
Return the metric value for a particular design element and metric in a table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableView(sdmetrics.metrics.MetricsEngine me)
me - MetricsEngine to provide the metric data.| Method Detail |
public int getTypeID(int table)
getTypeID in interface DataTabletable - Index of the table.
public java.lang.Object getMetricValue(int index,
int row,
int col)
throws sdmetrics.metrics.SDMetricsException
getValueAt() if you need to detect the presence of errors.
index - Index of the table to access.row - Index of the design element to access.col - Index of the metric to access.
sdmetrics.metrics.SDMetricsException - if an error occured during calculation of the metric.public int getNumberOfTables()
DataTable
getNumberOfTables in interface DataTablepublic java.lang.String getTableName(int index)
DataTable
getTableName in interface DataTableindex - Index of the table to access.
public int getNumberOfRows(int index)
getNumberOfRows in interface DataTableindex - Index of the table to access.
public int getNumberOfColumns(int index)
getNumberOfColumns in interface DataTableindex - Index of the table to access.
public java.lang.Object getValueAt(int index,
int row,
int col)
getMetricValue()
if you do not need to detect the presence of errors.
getValueAt in interface DataTableindex - Index of the table to access.row - Index of the design element to access.col - Index of the metric to access.
public java.lang.String getRowName(int index,
int row)
getRowName in interface DataTableindex - Index of the table to access.row - Index of the row.
public java.lang.String getColumnName(int index,
int col)
getColumnName in interface DataTableindex - Index of the table to access.col - Index of the column.
public java.lang.String getColumnDescription(int index,
int col)
getColumnDescription in interface DataTableindex - Index of the table to access.col - Index of the column.
|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||