Class TrialObject

Class TrialObject

java.lang.Object
   |
   Warning: links to the API classes above do not exist.  Only links to the 
   Ponzo classes and the "see also" classes exist. If you choose a link 
   that does not exist, simply hit the right mouse button to return to this frame.
   |
   +----TrialObject
To Go Back click here.
class TrialObject
extends Object
This class hold all the information about one trial.

Constructor Index

 o TrialObject(Point[], int, int)
Constructor simply initializes trial specific information--see private data section.

Method Index

 o calculateFirstThreshold(int)
This method sets the first threshold of the uncertainty interval.
 o GetCurrentCmpLine()
Returns current comparison line endpoints
 o GetLastCmpLine()
Returns last comparison line endpoints
 o GetLowerThreshold()
This method returns the lower threshold associated with this trial object.
 o GetPSE()
This method returns the point of subjective equality associated with this trial object.
 o GetStepSize()
Cets the stepSize
 o GetStepSizeFactor()
Gets the step size factor
 o GetTrialNumber()
This method returns the serial position of this trial in the experiment.
 o GetTrialType()
Returns type of trial: ASCENDING or DESCENDING
 o GetUpperThreshold()
This method returns the upper threshold associated with this trial object.
 o SaveAsCurrentCmpLine(Point[])
 This method saves the comparison line AFTER it changes size.
  
 o SaveAsLastCmpLine(Point[])
 This method saves the comparison line BEFORE it changes size.
  
 o SetPointOfSubjectiveEquality(int)
This method will calculate remaining DVs.
 o SetStepSize(double)
Sets the stepSize
 o SetStepSizeFactor(double)
Sets the stepSizeFactor: 1-stepSize

Constructors

 o TrialObject
  public TrialObject(Point line[],
                     int type,
                     int number)
Constructor simply initializes trial specific information--see private data section. .
Parameters:
line - is the initial comparison line
type - is the type of trial

Methods

 o GetCurrentCmpLine
  public Point[] GetCurrentCmpLine()
Returns current comparison line endpoints
Parameters:
NULL - no parameters
Returns:
Point [] an array of 2 points that define the initial comparison line
 o GetLastCmpLine
  public Point[] GetLastCmpLine()
Returns last comparison line endpoints
Parameters:
NULL - no parameters
Returns:
Point [] an array of 2 points that define the initial comparison line
 o SaveAsCurrentCmpLine
  public void SaveAsCurrentCmpLine(Point line[])
 This method saves the comparison line AFTER it changes size.
  
Parameters:
line - is the new comparison line
Returns:
Point [] an array of 2 points that define the initial comparison line
 o SaveAsLastCmpLine
  public void SaveAsLastCmpLine(Point line[])
 This method saves the comparison line BEFORE it changes size.
  
Parameters:
line - is the new comparison line
Returns:
Point [] an array of 2 points that define the initial comparison line
 o GetTrialType
  public int GetTrialType()
Returns type of trial: ASCENDING or DESCENDING
Parameters:
NULL - no parameters
Returns:
type of trial
 o SetStepSize
  public void SetStepSize(double step)
Sets the stepSize
Returns:
NULL
 o GetStepSize
  public double GetStepSize()
Cets the stepSize
Parameters:
NULL - no parameters
Returns:
stepSize
 o SetStepSizeFactor
  public void SetStepSizeFactor(double ssf)
Sets the stepSizeFactor: 1-stepSize
Parameters:
ssf - is the step size factor
Returns:
NULL
 o GetStepSizeFactor
  public double GetStepSizeFactor()
Gets the step size factor
Parameters:
NULL - no parameters
Returns:
step size factor
 o calculateFirstThreshold
  public void calculateFirstThreshold(int stdLen)
This method sets the first threshold of the uncertainty interval.
Parameters:
stdLen - is the length of the standard line
Returns:
void
 o SetPointOfSubjectiveEquality
  public void SetPointOfSubjectiveEquality(int stdLen)
This method will calculate remaining DVs.
Parameters:
stdLen - is the length of the standard line
Returns:
void
 o GetLowerThreshold
  public double GetLowerThreshold()
This method returns the lower threshold associated with this trial object.
Parameters:
NULL - no parameters
Returns:
lower threshold
 o GetUpperThreshold
  public double GetUpperThreshold()
This method returns the upper threshold associated with this trial object.
Parameters:
NULL - no parameters
Returns:
uppper threshold
 o GetPSE
  public double GetPSE()
This method returns the point of subjective equality associated with this trial object.
Parameters:
NULL - no parameters
Returns:
point of subjective equality
 o GetTrialNumber
  public int GetTrialNumber()
This method returns the serial position of this trial in the experiment.
Parameters:
NULL - no parameters
Returns:
the DV