|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodelling.fiti.data.Transaction
public class Transaction
Class implementing a transaction. A transaction is a set of items occurring togehter at a specific time. Mega transactions have timestamp = -1.
Constructor Summary | |
---|---|
Transaction()
Constructor creating a new transaction. |
|
Transaction(int timestamp)
Constructor creating a new transaction. |
Method Summary | |
---|---|
void |
addItem(java.lang.Object item)
Method for adding an item to the transaction if it is not already present. |
boolean |
contains(ItemSet itemset)
Method for finding if the transaction contains a specific itemset, i.e. |
java.util.ArrayList |
getItems()
Method for getting the items in the transaction. |
int |
getTimestamp()
Method for getting the timestamp of the transaction. |
java.lang.String |
toString()
Method for getting a printable representation of the transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Transaction(int timestamp)
timestamp
- The timestamppublic Transaction()
Method Detail |
---|
public void addItem(java.lang.Object item)
item
- The itempublic java.util.ArrayList getItems()
public boolean contains(ItemSet itemset)
itemset
- The itemset
public int getTimestamp()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |