modelling.fiti.data
Class InterItem

java.lang.Object
  extended by modelling.fiti.data.Item
      extended by modelling.fiti.data.InterItem

public class InterItem
extends Item

Class implementing an inter (extended) item. This is an item with associated an timestamp.

Author:
Kjell-Inge Skogstad

Field Summary
 
Fields inherited from class modelling.fiti.data.Item
FILT_INDEX, index, TERMLIST_INDEX, type
 
Constructor Summary
InterItem(int index, int indexType, int timestamp)
          Constructor creating a new inter item.
 
Method Summary
 java.lang.Object clone()
          Method returning a clone of this instance.
 boolean equals(java.lang.Object o)
          Method for comaprint two inter items.
 int getTimestamp()
          Method for getting the timestamp.
 void setTimestamp(int timestamp)
          Method for setting the timestamp.
 java.lang.String toString()
          Method returning a printable representation of this instance.
 
Methods inherited from class modelling.fiti.data.Item
getIndex, getIndexType
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterItem

public InterItem(int index,
                 int indexType,
                 int timestamp)
Constructor creating a new inter item.

Parameters:
index - Filt or term list index
indexType - Index type
timestamp - The timestamp
Method Detail

clone

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

Overrides:
clone in class Item

setTimestamp

public void setTimestamp(int timestamp)
Method for setting the timestamp.

Parameters:
timestamp - The timestamp

getTimestamp

public int getTimestamp()
Method for getting the timestamp.

Returns:
The timestamp

equals

public boolean equals(java.lang.Object o)
Method for comaprint two inter items.

Overrides:
equals in class Item

toString

public java.lang.String toString()
Method returning a printable representation of this instance.

Overrides:
toString in class Item