Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.AssociationRules.Transaction Class Reference

Inheritance diagram for kddml.Core.DataMining.AssociationRules.Transaction:

kddml.Core.DataMining.AssociationRules.TransactionManager kddml.Core.DataMining.SequentialPatterns.TimestampedTransaction List of all members.

Public Member Functions

 Transaction (Instance instance)
 Transaction (boolean is_bool)
boolean addItem (ItemManager item) throws AssociationModelException
boolean isEmpty ()
java.util.Iterator getItems ()
boolean contains (ItemManager item)
int getNumberOfItems ()
boolean isBoolean ()
String toString ()

Protected Attributes

HashSet< Itemitems
boolean is_boolean

Detailed Description

This class represents a single data transaction (i.e. a set of single items). Transactions can be boolean (if no value is specified) or multivalue. E.g.: {"milk", "apple", "bread"} vs {"outlook=sunny", "temperature=12"}.

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.DataMining.AssociationRules.Transaction.Transaction Instance  instance  ) 
 

Constructor used to build a multivalue transactions from the input instance. Each single instance field is an item. The name of the attribute corresponds to the name of the item. The value of the attribute corresponds to the value of item. If the value is missing, no item is included in the transaction. No other items features are allowed.

Parameters:
instance Instance

kddml.Core.DataMining.AssociationRules.Transaction.Transaction boolean  is_bool  ) 
 

Builds an empty transaction with no items.

Parameters:
is_bool boolean the transaction type: boolean or inter-attribute.


Member Function Documentation

boolean kddml.Core.DataMining.AssociationRules.Transaction.addItem ItemManager  item  )  throws AssociationModelException
 

Adds a new item to this transaction only if the transaction do not contain the item.

Parameters:
item ItemManager
Exceptions:
AssociationModelException if the transaction type and the item type are incompatible.
Returns:
boolean true if the item has been added

Implements kddml.Core.DataMining.AssociationRules.TransactionManager.

boolean kddml.Core.DataMining.AssociationRules.Transaction.isEmpty  ) 
 

Tests if this transaction do not contain items.

Returns:
boolean

Implements kddml.Core.DataMining.AssociationRules.TransactionManager.

java.util.Iterator kddml.Core.DataMining.AssociationRules.Transaction.getItems  ) 
 

Returns an enumeration of items belonging to the transaction.

Returns:
Iterator

Implements kddml.Core.DataMining.AssociationRules.TransactionManager.

boolean kddml.Core.DataMining.AssociationRules.Transaction.contains ItemManager  item  ) 
 

Test if the transaction contain an item.

Parameters:
item String
Returns:
boolean

Implements kddml.Core.DataMining.AssociationRules.TransactionManager.

int kddml.Core.DataMining.AssociationRules.Transaction.getNumberOfItems  ) 
 

Returns the number of items.

Returns:
int

Implements kddml.Core.DataMining.AssociationRules.TransactionManager.

boolean kddml.Core.DataMining.AssociationRules.Transaction.isBoolean  ) 
 

Returns true if the transaction contains boolean items.

Returns:
boolean

Implements kddml.Core.DataMining.AssociationRules.TransactionManager.

String kddml.Core.DataMining.AssociationRules.Transaction.toString  ) 
 

Returns a representation of this object as string.

Returns:
String

Reimplemented in kddml.Core.DataMining.SequentialPatterns.TimestampedTransaction.


Member Data Documentation

HashSet<Item> kddml.Core.DataMining.AssociationRules.Transaction.items [protected]
 

List of items belonging to the transaction. An Hashset of classes Item.

boolean kddml.Core.DataMining.AssociationRules.Transaction.is_boolean [protected]
 

True if the transaction is boolean.


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