modelling.fiti.data
Class Item

java.lang.Object
  extended by modelling.fiti.data.Item
Direct Known Subclasses:
InterItem

public class Item
extends java.lang.Object

Class implementing an item. An item has either a filt index or a term list index. The type provides what kind of index is used.

Author:
Kjell-Inge Skogstad, Trond Řivind Eriksen and Ole Kristian Fivelstad

Field Summary
static int FILT_INDEX
           
protected  int index
           
static int TERMLIST_INDEX
           
protected  int type
           
 
Constructor Summary
Item(int index, int indexType)
          Constructor creating a new item.
 
Method Summary
 java.lang.Object clone()
          Method for getting a clone of this instance.
 boolean equals(java.lang.Object o)
          Method for testing wether this instance is equal to another.
 int getIndex()
          Method for getting the index.
 int getIndexType()
          Method for getting the index type.
 java.lang.String toString()
          Method returning a printable representation of the item.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TERMLIST_INDEX

public static int TERMLIST_INDEX

FILT_INDEX

public static int FILT_INDEX

index

protected int index

type

protected int type
Constructor Detail

Item

public Item(int index,
            int indexType)
Constructor creating a new item.

Parameters:
index - Filt of TermList index
indexType - Index type
Method Detail

getIndex

public int getIndex()
Method for getting the index.

Returns:
The index

getIndexType

public int getIndexType()
Method for getting the index type.

Returns:
The index type

clone

public java.lang.Object clone()
Method for getting a clone of this instance.

Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Method for testing wether this instance is equal to another.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Method returning a printable representation of the item.

Overrides:
toString in class java.lang.Object