Package edu.wisc.game.rest
Class TrialList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<ParaSet>
,Collection<ParaSet>
,List<ParaSet>
,RandomAccess
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Identifies an experiment plan as a static or dynamic (P: or R: type) one -
Field Summary
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
extractExperimentPlanFromPlayerId
(String playerId) To which experiment plan does this player ID belong?boolean
getError()
getPath()
listTrialLists
(File base) Lists the names of the trial list files (with the extension removed) contained in a specified directory.listTrialLists
(String exp) Lists the trialList IDs, i.e.readDefects
(String exp) void
void
setError
(boolean _error) void
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Constructor Details
-
TrialList
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
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
-
setErrmsg
-
getPath
-
setPath
-
extractExperimentPlanFromPlayerId
To which experiment plan does this player ID belong? -
listTrialLists
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
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
-