retina
Class EpochSorter

java.lang.Object
  |
  +--retina.EpochSorter

public class EpochSorter
extends java.lang.Object

Sets the condition text in the OID .kes file to reflect the stimulus condition given by the a script. This is in a separate file called epochs.txt Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.


Field Summary
protected static java.lang.String concatFileName
           
static java.lang.String directory
           
static java.lang.String fileControlFile
           
static boolean multipleFiles
           
protected static java.util.Hashtable order
           
static boolean preDefinedOrder
           
 
Constructor Summary
EpochSorter()
           
 
Method Summary
protected static ij.io.FileInfo getFileInfo(java.lang.String fileName, java.lang.String directory, int width, int height)
          Gets FileInfo raw format object for fileName, directory, width and height.
static void main(java.lang.String[] args)
           
protected static int numberOfUniqueStrings(java.lang.String[] s)
          Return the number of unique strings in s.
protected static java.lang.String[] parse(java.io.Reader r)
          Parse the stream r, looking for
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directory

public static java.lang.String directory

fileControlFile

public static final java.lang.String fileControlFile

preDefinedOrder

public static final boolean preDefinedOrder

multipleFiles

public static final boolean multipleFiles

order

protected static final java.util.Hashtable order

concatFileName

protected static java.lang.String concatFileName
Constructor Detail

EpochSorter

public EpochSorter()
Method Detail

main

public static void main(java.lang.String[] args)

parse

protected static java.lang.String[] parse(java.io.Reader r)
                                   throws java.io.IOException
Parse the stream r, looking for
 n0    n1       n2       n3.........\n\r
 d stands for the condition for the n'th epoch.
 Return a list with the d's for each epoch.
 First condition has index 0, but will be file 1.
 r should be white space separated.
Parameters:
r - the Reader

getFileInfo

protected static ij.io.FileInfo getFileInfo(java.lang.String fileName,
                                            java.lang.String directory,
                                            int width,
                                            int height)
Gets FileInfo raw format object for fileName, directory, width and height.

numberOfUniqueStrings

protected static int numberOfUniqueStrings(java.lang.String[] s)
Return the number of unique strings in s.