weka.core.converters
Class AbstractClassHierarchyParser

java.lang.Object
  extended byweka.core.converters.AbstractClassHierarchyParser
All Implemented Interfaces:
ClassHierarchyParser, java.io.Serializable
Direct Known Subclasses:
ClassTreeParser

public abstract class AbstractClassHierarchyParser
extends java.lang.Object
implements ClassHierarchyParser

This abstract parser does ensure the class-attribute of the instances given to the init-method is nominal.

Author:
Arthur Zimek
See Also:
Serialized Form

Constructor Summary
AbstractClassHierarchyParser()
           
 
Method Summary
 void init(Instances instanceInfo)
          This init-method checks only if the class-attribute is nominal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface weka.core.converters.ClassHierarchyParser
getClassHierarchy, getEncodedHierarchy, setEncodedHierarchy, validate
 

Constructor Detail

AbstractClassHierarchyParser

public AbstractClassHierarchyParser()
Method Detail

init

public void init(Instances instanceInfo)
          throws UnsupportedAttributeTypeException
This init-method checks only if the class-attribute is nominal. An UnsupportedAttributeTypeException is thrown in case it is not. Any inheriting class should extend this method to enable validation of a class-hierarchy to be parsed.

Specified by:
init in interface ClassHierarchyParser
Parameters:
instanceInfo - the information regarding the type of instances to be covered by a parsed hierarchy
Throws:
UnsupportedAttributeTypeException - any implementation should ensure the class-attribute to be nominal
See Also:
ClassHierarchyParser.init(weka.core.Instances)