www.sdmetrics.com

com.sdmetrics.metrics
Class Matrix

java.lang.Object
  extended by com.sdmetrics.metrics.MetricEntry
      extended by com.sdmetrics.metrics.Matrix

public class Matrix
extends MetricEntry

Represents the definition of a relation matrix in the metric definition file. A matrix has a row and a column type, and, optionally row and column filter expressions.


Field Summary
 
Fields inherited from class com.sdmetrics.metrics.MetricEntry
attributes, description, id, location, name, procedureName
 
Constructor Summary
Matrix(java.lang.String name, MetaModelElement rowType, MetaModelElement columnType)
          Creates a new relation matrix definition.
 
Method Summary
 ExpressionNode getColumnCondition()
          Gets the condition expression for column elements to be included in the matrix.
 MetaModelElement getColumnType()
          Retrieves the element type of the target elements (columns).
 ExpressionNode getRowCondition()
          Gets the condition expression for row elements to be included in the matrix.
 MetaModelElement getRowType()
          Retrieves the element type of the source elements (rows).
 java.lang.String toString()
          Returns a string representation of the matrix definition.
 
Methods inherited from class com.sdmetrics.metrics.MetricEntry
getAttributes, getBriefDescription, getFullDescription, getLocation, getName, getProcedureName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Matrix

public Matrix(java.lang.String name,
              MetaModelElement rowType,
              MetaModelElement columnType)
Creates a new relation matrix definition.

Parameters:
name - Name of the relation matrix.
rowType - Type of the source elements that make up the rows.
columnType - Type of the target elements that make up the columns.
Method Detail

getRowType

public MetaModelElement getRowType()
Retrieves the element type of the source elements (rows).

Returns:
Metamodel element type of the row elements.

getColumnType

public MetaModelElement getColumnType()
Retrieves the element type of the target elements (columns).

Returns:
Metamodel element type of the column elements.

getRowCondition

public ExpressionNode getRowCondition()
Gets the condition expression for row elements to be included in the matrix.

Returns:
Root node of the row condition expression operator tree.

getColumnCondition

public ExpressionNode getColumnCondition()
Gets the condition expression for column elements to be included in the matrix.

Returns:
Root node of the column condition expression operator tree.

toString

public java.lang.String toString()
Returns a string representation of the matrix definition.

Overrides:
toString in class java.lang.Object
Returns:
String with the name of matrix and the row/column type names, and the line number of the definition

www.sdmetrics.com