public abstract class AbstractQualityMeasure extends java.lang.Object implements QualityMeasure
Modifier and Type | Field and Description |
---|---|
protected InputData |
data |
protected Layer |
layer |
protected java.lang.String[] |
mapQualityDescriptions |
protected java.lang.String[] |
mapQualityNames |
protected java.lang.String[] |
unitQualityDescriptions |
protected java.lang.String[] |
unitQualityNames |
Constructor and Description |
---|
AbstractQualityMeasure(Layer layer,
InputData data) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getMapQualityDescriptions() |
java.lang.String[] |
getMapQualityNames() |
java.lang.String[] |
getUnitQualityDescriptions() |
java.lang.String[] |
getUnitQualityNames() |
static QualityMeasure |
instantiate(java.lang.String qmName,
Layer layer,
InputData data)
Instantiates a certain quality measure class specified by argument
mqName . |
static java.lang.String[] |
splitNameAndMethod(java.lang.String qmName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMapQuality, getUnitQualities
protected Layer layer
protected InputData data
protected java.lang.String[] mapQualityNames
protected java.lang.String[] mapQualityDescriptions
protected java.lang.String[] unitQualityNames
protected java.lang.String[] unitQualityDescriptions
public static QualityMeasure instantiate(java.lang.String qmName, Layer layer, InputData data) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
mqName
.qmName
- the name of the quality measure.mqName
.java.lang.ClassNotFoundException
- if class denoted by argument mqName
is not found.java.lang.InstantiationException
- if if this Class represents an abstract class, an interface, an array class, a
primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails
for some other reason.java.lang.IllegalAccessException
- if the class or its nullary constructor is not accessible.java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
public final java.lang.String[] getMapQualityNames()
getMapQualityNames
in interface QualityMeasure
public final java.lang.String[] getUnitQualityNames()
getUnitQualityNames
in interface QualityMeasure
public java.lang.String[] getMapQualityDescriptions()
getMapQualityDescriptions
in interface QualityMeasure
public java.lang.String[] getUnitQualityDescriptions()
getUnitQualityDescriptions
in interface QualityMeasure
public static java.lang.String[] splitNameAndMethod(java.lang.String qmName)
qmName
- "ClassName.methodName
"