Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataSources.TimestampInternalTable Class Reference

Inheritance diagram for kddml.Core.DataSources.TimestampInternalTable:

kddml.Core.DataSources.TransactionalInternalTable kddml.Core.DataSources.TimestampInternalTableManager kddml.Core.DataSources.InternalTable kddml.Core.DataSources.TransactionalInternalTableManager kddml.Core.DataSources.TransactionalInternalTableManager kddml.Core.KDDMLObject kddml.Core.DataSources.InternalTableManager kddml.Core.DataSources.InternalTableManager kddml.Core.DataSources.InternalTableManager kddml.Core.HTMLTranslator List of all members.

Public Member Functions

boolean isTimestampTable ()
int getTimestampPosition ()
Enumeration getInitedFeatures ()
DataSequenceManager loadNextDataSequence () throws InternalTableException
DataSequenceManager loadNextFeaturedDataSequence () throws InternalTableException
boolean hasNextDataSequence ()
void initAllFeatures () throws KDDMLCoreException
void initNumericFeatures () throws KDDMLCoreException
void initFeatures (String[] names, int feature_type) throws KDDMLCoreException

Static Public Attributes

static final String TIMESTAMP_ATTRIBUTE = "timestamp"

Detailed Description

This class is used to represent a table in a timestamp format. Timestamp format is similar to a transactional table, but with an extra attribute timestamp. This attribute defines a partial time order between transactions and items. Typically, this format is used for sequential patterns analysis.

A timestamp table contains at least three fields:

  1. the identifier of transaction (field transaction)
  2. the identifier of timestamp (field timestamp)
  3. the item value (field event)

Title: KDDML-MQL

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)

Daniele Cerra (daniele@cerra.info)

Version:
2.0.0 alfa


Member Function Documentation

boolean kddml.Core.DataSources.TimestampInternalTable.isTimestampTable  ) 
 

Returns true if the table is a timestamp table with attributes transaction, event and timestamp.

Returns:
true if table is in timestmap format

Reimplemented from kddml.Core.DataSources.InternalTable.

int kddml.Core.DataSources.TimestampInternalTable.getTimestampPosition  ) 
 

Returns the timestamp field position in the data schema.

Returns:
timestamp position

Implements kddml.Core.DataSources.TimestampInternalTableManager.

Enumeration kddml.Core.DataSources.TimestampInternalTable.getInitedFeatures  ) 
 

Return an enumeration of inited features, i.e. the attribute(s) that must be loaded as item features. Each feature is returned as Weka Attribute object "as is" in table schema.

Returns:
inited features

Implements kddml.Core.DataSources.TimestampInternalTableManager.

DataSequenceManager kddml.Core.DataSources.TimestampInternalTable.loadNextDataSequence  )  throws InternalTableException
 

Returns the next data sequence in the timestamp table.

Exceptions:
InternalTableException 
Returns:
a data sequence

Implements kddml.Core.DataSources.TimestampInternalTableManager.

DataSequenceManager kddml.Core.DataSources.TimestampInternalTable.loadNextFeaturedDataSequence  )  throws InternalTableException
 

Returns the next data-sequence of the timestamp table, including optional attributes as item features.

Before calling this method, some of initFeatures() may be called, otherwise this method return the same result of loadNextDataSequence().

If no optional attribute are present in input table, objects returned by this method are identically to those returned by loadNextDataSequence().

Exceptions:
InternalTableException 
Returns:
a data sequence

Implements kddml.Core.DataSources.TimestampInternalTableManager.

boolean kddml.Core.DataSources.TimestampInternalTable.hasNextDataSequence  ) 
 

Returns true if the timestamp table has more data sequences.

Returns:
true if there are more transactions

Implements kddml.Core.DataSources.TimestampInternalTableManager.

void kddml.Core.DataSources.TimestampInternalTable.initAllFeatures  )  throws KDDMLCoreException
 

Specify to load all optional attributes from input table.

Exceptions:
KDDMLCoreException 

Implements kddml.Core.DataSources.TimestampInternalTableManager.

void kddml.Core.DataSources.TimestampInternalTable.initNumericFeatures  )  throws KDDMLCoreException
 

Affect optional attributes that will be included as item feature; only numeric optional attributes are included.

Exceptions:
KDDMLCoreException 

Implements kddml.Core.DataSources.TimestampInternalTableManager.

void kddml.Core.DataSources.TimestampInternalTable.initFeatures String[]  names,
int  feature_type
throws KDDMLCoreException
 

Specify wich optional attributes must be loaded as item features. If "names" is null, then all optional attributes are added, else only attributes in "names" are added. "feature_type" allow to filter attributes by their type (e.g. ALL_FEATURES, NUMERIC_FEATURES, STRING_FEATURES). Note that this method do not raise any exception if no features are recognized. To check which features are processed to be loaded, must use the getInitedFeatures() method.

Parameters:
names name of attributes to be added, or null for all attributes
feature_type type of attributes to be added
Exceptions:
KDDMLCoreException if an invalid feature type is given, or one of loadeNextDataSequence() method was already called

Implements kddml.Core.DataSources.TimestampInternalTableManager.


Member Data Documentation

final String kddml.Core.DataSources.TimestampInternalTable.TIMESTAMP_ATTRIBUTE = "timestamp" [static]
 

The timestamp attribute name.


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