SALT.assessment
Class ItemInfo

java.lang.Object
  extended by SALT.assessment.ItemInfo
All Implemented Interfaces:
java.lang.Comparable

public class ItemInfo
extends java.lang.Object
implements java.lang.Comparable

Provides getters and setters for an ItemInfo and a method to compare ItemInfo objects.

See Also:
Comparable

Constructor Summary
ItemInfo(int id)
          Constructs an ItemInfo with the specified ID and rating.
ItemInfo(int id, int value)
          Constructs an ItemInfo with the specified ID and rating.
 
Method Summary
 void addButtonToButtonList(int value)
           
 void addTimeStampListElement(int index, float timeStamp)
           
 void addTimeStampToTimeStampList(float timeStamp)
           
 void addValueListElement(int index, int value)
           
 void addValueToValueList(int value)
           
 int compareTo(java.lang.Object otherObject)
          Compares item IDs.
 java.util.List<java.lang.Integer> getButtonList()
           
 int getId()
          Returns the ID of the item.
 java.util.List<java.lang.Float> getTimeStampList()
           
 int getValue()
          Returns the rating for the item.
 java.util.List<java.lang.Integer> getValueList()
           
 void setButtonList(java.util.List<java.lang.Integer> buttonList)
           
 void setId(int id)
          Sets the ID of the item.
 void setTimeStampList(java.util.List<java.lang.Float> timeStampList)
           
 void setTimeStampListElement(int index, float timeStamp)
           
 void setValue(int value)
          Sets the rating for the item.
 void setValueList(java.util.List<java.lang.Integer> valueList)
           
 void setValueListElement(int index, int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemInfo

public ItemInfo(int id,
                int value)
Constructs an ItemInfo with the specified ID and rating.

Parameters:
id -
value -

ItemInfo

public ItemInfo(int id)
Constructs an ItemInfo with the specified ID and rating.

Parameters:
id -
value -
Method Detail

getId

public int getId()
Returns the ID of the item.

Returns:

setId

public void setId(int id)
Sets the ID of the item.

Parameters:
id -

getValue

public int getValue()
Returns the rating for the item.

Returns:

setValue

public void setValue(int value)
Sets the rating for the item.

Parameters:
value -

compareTo

public int compareTo(java.lang.Object otherObject)
Compares item IDs.

Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)

getValueList

public java.util.List<java.lang.Integer> getValueList()

setValueList

public void setValueList(java.util.List<java.lang.Integer> valueList)

addValueToValueList

public void addValueToValueList(int value)

getButtonList

public java.util.List<java.lang.Integer> getButtonList()

setButtonList

public void setButtonList(java.util.List<java.lang.Integer> buttonList)

addButtonToButtonList

public void addButtonToButtonList(int value)

setValueListElement

public void setValueListElement(int index,
                                int value)

addValueListElement

public void addValueListElement(int index,
                                int value)

getTimeStampList

public java.util.List<java.lang.Float> getTimeStampList()

setTimeStampList

public void setTimeStampList(java.util.List<java.lang.Float> timeStampList)

addTimeStampToTimeStampList

public void addTimeStampToTimeStampList(float timeStamp)

setTimeStampListElement

public void setTimeStampListElement(int index,
                                    float timeStamp)

addTimeStampListElement

public void addTimeStampListElement(int index,
                                    float timeStamp)