Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataSources.InternalTableExternalFactory Class Reference

Inheritance diagram for kddml.Core.DataSources.InternalTableExternalFactory:

kddml.Core.DataSources.InternalTableResourceFactory kddml.Core.KDDMLObjectResourceFactory kddml.Core.KDDMLObjectFactory kddml.Core.DataSources.ARFFFactory kddml.Core.DataSources.DataBaseFactory kddml.Core.DataSources.PrologFactory List of all members.

Public Member Functions

 InternalTableExternalFactory (java.io.File f) throws kddml.Core. KDDMLCoreException
KDDMLObject newInstance () throws KDDMLCoreException
void setLogicalName (String logical_name)
void setMaxNumberOfLoadedInstAtIteration (int number)

Protected Member Functions

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

Detailed Description

A generic factory class that create a table from an external source (e.g., ARFF, Database, etc).

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.InternalTableExternalFactory.InternalTableExternalFactory java.io.File  f  )  throws kddml.Core. KDDMLCoreException
 

Constructor given the physical file containing the table. The file refers the XML table schema.

Parameters:
f File the file containing the reference to the physical object.
Exceptions:
KDDMLCoreException an exception if the file cannot be found.


Member Function Documentation

KDDMLObject kddml.Core.DataSources.InternalTableExternalFactory.newInstance  )  throws KDDMLCoreException [virtual]
 

Create a new instance of this object.

Exceptions:
KDDMLCoreException if the object can be overwrite.
Returns:
KDDMLObject the KDDML internal table.

Implements kddml.Core.KDDMLObjectFactory.

void kddml.Core.DataSources.InternalTableExternalFactory.setLogicalName String  logical_name  ) 
 

Set the logical name of this table.

Parameters:
logical_name String

void kddml.Core.DataSources.InternalTableExternalFactory.setMaxNumberOfLoadedInstAtIteration int  number  ) 
 

Set the maximum number of instances imported ad once from the input resource. If null, all instances will be imported in a single iteration.

Parameters:
number int

abstract Instance kddml.Core.DataSources.InternalTableExternalFactory.nextInstance Instances  schema  )  throws KDDMLCoreException [protected, pure virtual]
 

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

Parameters:
schema Instances the data schema of the instances.
Exceptions:
KDDMLCoreException if an error occurs.
Returns:
Instance

Implemented in kddml.Core.DataSources.ARFFFactory, kddml.Core.DataSources.DataBaseFactory, and kddml.Core.DataSources.PrologFactory.

abstract String kddml.Core.DataSources.InternalTableExternalFactory.getRelationName  )  [protected, pure virtual]
 

Returns the relation name related to this table.

Returns:
String

Implemented in kddml.Core.DataSources.ARFFFactory, kddml.Core.DataSources.DataBaseFactory, and kddml.Core.DataSources.PrologFactory.

abstract Attribute kddml.Core.DataSources.InternalTableExternalFactory.getAttribute int  i  )  throws KDDMLCoreException [protected, pure 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 

Implemented in kddml.Core.DataSources.ARFFFactory, kddml.Core.DataSources.DataBaseFactory, and kddml.Core.DataSources.PrologFactory.

abstract int kddml.Core.DataSources.InternalTableExternalFactory.getNumberOfAttributes  )  [protected, pure virtual]
 

Returns the number of attributes of the table.

Returns:
int a positive integer.

Implemented in kddml.Core.DataSources.ARFFFactory, kddml.Core.DataSources.DataBaseFactory, and kddml.Core.DataSources.PrologFactory.


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