SALT.assessment
Class TrialInfo

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

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

Provides getters and setters for a TrialInfo and a methods to compare TrialInfo objects and to sort ItemInfos.


Constructor Summary
TrialInfo(int id)
          Constructs a TrialInfo with the specified ID and ItemInfo.
 
Method Summary
 void addItemInfo(ItemInfo itemInfo)
          Adds an ItemInfo to the trial.
 int compareTo(java.lang.Object otherObject)
          Sorts the TrialInfos list into ascending order of its elements.
 int getId()
          Returns the ID of the trial.
 java.util.List<ItemInfo> getItemInfos()
          Returns a list of ItemInfos.
 void setId(int id)
          Sets the ID of the trial.
 void sortItemInfos()
          Sorts the ItemInfos list into ascending order of its elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrialInfo

public TrialInfo(int id)
Constructs a TrialInfo with the specified ID and ItemInfo.

Parameters:
id -
Method Detail

getId

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

Returns:

setId

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

Parameters:
id -

addItemInfo

public void addItemInfo(ItemInfo itemInfo)
Adds an ItemInfo to the trial.

Parameters:
itemInfo -

getItemInfos

public java.util.List<ItemInfo> getItemInfos()
Returns a list of ItemInfos.

Returns:

compareTo

public int compareTo(java.lang.Object otherObject)
Sorts the TrialInfos list into ascending order of its elements.

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

sortItemInfos

public void sortItemInfos()
Sorts the ItemInfos list into ascending order of its elements.