|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodelling.fiti.data.ItemSet
public class ItemSet
Class implementing an itemset. An itemset includes a list of items, either intra or inter, and associated count and support.
Constructor Summary | |
---|---|
ItemSet()
Constructor creating a new itemset. |
Method Summary | |
---|---|
void |
addItem(Item item)
Method for adding an item. |
void |
addOne()
Method for updating count on itemset. count++; |
ItemSet |
clone()
Method for getting a clone of this instance. |
boolean |
containsItem(Item item)
Method for testin if the itemset contains a given item. |
boolean |
equals(java.lang.Object o)
Method for comapring two itemsets. |
int |
getCount()
Method for getting count. |
Item |
getItem(int index)
Method for getting an item. |
int |
getItemListIndex(int i)
Method for getting the itemlist index of item given its index in the itemset. |
java.util.ArrayList |
getItems()
Method for getting all items. |
double |
getSupport()
Method for getting the support. |
void |
removeItem(int index)
Method for removing an item. |
void |
setSupport(double support)
Method for setting the support. |
int |
size()
Method for getting the number of items. |
java.lang.String |
toString()
Method for getting a printable representation of this itemset. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ItemSet()
Method Detail |
---|
public void addItem(Item item)
item
- The itempublic int getItemListIndex(int i)
i
- The itemset index
public void removeItem(int index)
index
- The indexpublic Item getItem(int index)
index
- The index
public java.util.ArrayList getItems()
public int size()
public boolean containsItem(Item item)
item
- The item
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void addOne()
public int getCount()
public void setSupport(double support)
support
- The supportpublic double getSupport()
public ItemSet clone()
clone
in class java.lang.Object
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 |