apps.threedbuttonsexperiment.logger
Class TrialLog

java.lang.Object
  extended by apps.threedbuttonsexperiment.logger.TrialLog
All Implemented Interfaces:
LogListener

public class TrialLog
extends java.lang.Object
implements LogListener

The Class TrialLog.


Constructor Summary
TrialLog(java.lang.String targetString, long startTime, DateTextWritter logWritter)
          Instantiates a new trial log.
 
Method Summary
 void deleteKeyPressed()
          Delete key pressed.
 long getEndTime()
          Gets the end time.
 java.util.List<KeyPressRecord> getInputHistory()
          Gets the input history.
 java.util.List<KeyPressRecord> getInputString()
          Gets the input string.
 int getNumberOfCorrection()
          Gets the number of correction.
 long getStartTime()
          Gets the start time.
 java.lang.String getTargetString()
          Gets the target string.
 void keyPressed(java.lang.String key)
          Key pressed.
 void submitKeyPressed()
          Submit key pressed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrialLog

public TrialLog(java.lang.String targetString,
                long startTime,
                DateTextWritter logWritter)
Instantiates a new trial log.

Parameters:
targetString - the target string
startTime - the start time
logWritter - the log writter
Method Detail

deleteKeyPressed

public void deleteKeyPressed()
Description copied from interface: LogListener
Delete key pressed.

Specified by:
deleteKeyPressed in interface LogListener

getEndTime

public long getEndTime()
Gets the end time.

Returns:
the end time

getInputHistory

public java.util.List<KeyPressRecord> getInputHistory()
Gets the input history.

Returns:
the input history

getInputString

public java.util.List<KeyPressRecord> getInputString()
Gets the input string.

Returns:
the input string

getNumberOfCorrection

public int getNumberOfCorrection()
Gets the number of correction.

Returns:
the number of correction

getStartTime

public long getStartTime()
Gets the start time.

Returns:
the start time

getTargetString

public java.lang.String getTargetString()
Gets the target string.

Returns:
the target string

keyPressed

public void keyPressed(java.lang.String key)
Description copied from interface: LogListener
Key pressed.

Specified by:
keyPressed in interface LogListener
Parameters:
key - the key

submitKeyPressed

public void submitKeyPressed()
Description copied from interface: LogListener
Submit key pressed.

Specified by:
submitKeyPressed in interface LogListener