Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataSources.ARFFFactory Class Reference

Inheritance diagram for kddml.Core.DataSources.ARFFFactory:

kddml.Core.DataSources.InternalTableExternalFactory kddml.Core.DataSources.InternalTableResourceFactory kddml.Core.KDDMLObjectResourceFactory kddml.Core.KDDMLObjectFactory List of all members.

Public Member Functions

 ARFFFactory (java.io.File f, BufferedReader arff_path) throws kddml. Core.KDDMLCoreException

Protected Member Functions

Instance nextInstance (Instances schema) throws InternalTableException
Attribute getAttribute (int i) throws KDDMLCoreException
int getNumberOfAttributes ()
String getRelationName ()

Detailed Description

A factory that creates a new internal table from an ARFF source.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)
Version:
2.0.16


Constructor & Destructor Documentation

kddml.Core.DataSources.ARFFFactory.ARFFFactory java.io.File  f,
BufferedReader  arff_path
throws kddml. Core.KDDMLCoreException
 

Constructor given the physical file containing the object and the string containing the ARFF path.

Parameters:
f File
arff_path String the string containing the ARFF path. ARFF files can be gatered via URI reference.
Exceptions:
KDDMLCoreException if an I/O error occurs.


Member Function Documentation

Instance kddml.Core.DataSources.ARFFFactory.nextInstance Instances  schema  )  throws InternalTableException [protected, virtual]
 

Returns the next instance from the input resource. Returns null if no more instances are available.

Parameters:
schema Instances the next instance from the input resource.
Exceptions:
InternalTableException if an error occurs.
Returns:
Instance

Implements kddml.Core.DataSources.InternalTableExternalFactory.

Attribute kddml.Core.DataSources.ARFFFactory.getAttribute int  i  )  throws KDDMLCoreException [protected, virtual]
 

Returns the i-th attribute belonging to the data schema. Attribute number starts from 0.

Parameters:
i int a positive integer from 0 to (number of attributes - 1).
Returns:
Attribute the attribute as instance of weka.core.Attribute.
Exceptions:
KDDMLCoreException 

Implements kddml.Core.DataSources.InternalTableExternalFactory.

int kddml.Core.DataSources.ARFFFactory.getNumberOfAttributes  )  [protected, virtual]
 

Returns the number of attributes of the table.

Returns:
int a positive integer.

Implements kddml.Core.DataSources.InternalTableExternalFactory.

String kddml.Core.DataSources.ARFFFactory.getRelationName  )  [protected, virtual]
 

Returns the relation name of this table.

Returns:
String

Implements kddml.Core.DataSources.InternalTableExternalFactory.


Generated on Thu Feb 23 13:04:43 2006 for kddml by  doxygen 1.4.3