## Class fourchoice.DesignContainer

- java.lang.Object
- - fourchoice.DesignContainer

- Enclosing class:
    fourchoice

      public static class fourchoice.DesignContainer
      extends java.lang.Object

  Contains the trials included in this design. It also does the shuffling of of trials and initializes the trial objects according the design setup. user choises and responsetime are also captured through this to each trial.
  See Also:
    `fourchoice.Trial`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `fourchoice.DesignContainer()` The constructor generates the trials according the design parameters which are defined earlier in the static variables.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `response(int trialNum)` This function is called to record the time when user pressed the key
    `boolean` | `userPressedKey(int keyCode, int trialNum)` User pressed key.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### fourchoice.DesignContainer

          public fourchoice.DesignContainer()

      The constructor generates the trials according the design parameters which are defined earlier in the static variables.

  - ### Method Detail

    - #### userPressedKey

          public boolean userPressedKey(int keyCode,
                               int trialNum)

      User pressed key. Forward to ask the trial if it was the right answer or even S or D..
      Parameters:
        `keyCode` - user's keyCode
        `trialNum` - user's trialnumber
      Returns:
        true, if the user gave some answer by keyboard, or false if not false.

    - #### response

          public void response(int trialNum)

      This function is called to record the time when user pressed the key