/** * checks whether the Kernel can handle the class attribute at a given position (0-based index, -1 * means last). * * @param type the class type * @param position the position of the class attribute (0-based, -1 means last) * @return true if the Kernel can handle it */ protected boolean checkClassAsNthAttribute(int type, int position) { boolean[] result; String indexStr; result = m_Tester.canHandleClassAsNthAttribute( m_NominalPredictors[type], m_NumericPredictors[type], m_StringPredictors[type], m_DatePredictors[type], m_RelationalPredictors[type], m_multiInstanceHandler, type, position); if (position == -1) indexStr = "last"; else indexStr = (position + 1) + "."; if (!result[0] && !result[1]) fail( "Error handling class as " + indexStr + " attribute (" + getClassTypeString(type) + " class)!"); return result[0]; }