Class TrialList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<ParaSet>, Collection<ParaSet>, List<ParaSet>, RandomAccess

public class TrialList
extends Vector<ParaSet>
See Also:
Serialized Form
  • Constructor Details

    • TrialList

      public TrialList​(String exp, String trialListId) throws IOException, IllegalInputException
      Reads a trial list from the file that corresponds to a given experiment plan and the specified trial list id within that experiment.
      Parameters:
      exp - The name of an experiment plan (static or dynamic)
      The - trial list id (typically, file name of the trial list file, relative to the plan's directory, and fwithout extension). This should be null for R:-type dynamic plans.
      Throws:
      IOException
      IllegalInputException
    • TrialList

      public TrialList​(File mainFile) throws IOException
      The original constructor: read the trial list from a single file!
      Throws:
      IOException
  • Method Details

    • getError

      public boolean getError()
    • setError

      public void setError​(boolean _error)
    • getErrmsg

      public String getErrmsg()
    • setErrmsg

      public void setErrmsg​(String _errmsg)
    • getPath

      public String getPath()
    • setPath

      public void setPath​(String _path)
    • extractExperimentPlanFromPlayerId

      public static String extractExperimentPlanFromPlayerId​(String playerId)
      To which experiment plan does this player ID belong?
    • listTrialLists

      public static Vector<String> listTrialLists​(String exp) throws IOException
      Lists the trialList IDs, i.e. the names of the trial list files (with the extension removed), asscociated with a particular experiment plan. For an R: plan, returns the name of the rule set, because that's what will be recorded as the "trialListId" field in the PlayerInfo table.
      Parameters:
      exp - The name of the experiment plan (static or dynamic)
      Throws:
      IOException
    • listTrialLists

      public static Vector<String> listTrialLists​(File base) throws IOException
      Lists the names of the trial list files (with the extension removed) contained in a specified directory.
      Parameters:
      base - the directory (corresponding to one experiment plan) which contains trial list files
      Throws:
      IOException
    • readDefects

      public static HashMap<String,​Integer> readDefects​(String exp)