org.jah
Class ElectrophysManager

java.lang.Object
  extended by java.lang.Thread
      extended by org.jah.ElectrophysManager
All Implemented Interfaces:
java.lang.Runnable

public class ElectrophysManager
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected static ElectrophysManager instance
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected ElectrophysManager()
           
 
Method Summary
 void clearCache()
           
 ABF getABF(java.lang.String filename)
          Returns the ABF instance associated with the 'filename' where the filename DOES NOT contain the path to the file.
 java.lang.String[] getChannelNames(java.lang.String file)
           
 Comments getCommentsByEpoch(double startTime, double endTime)
           
 Comments getCommentsInEpochRange(java.lang.String startName, java.lang.String endName)
           
 Comments getElectrophysComments()
           
 java.util.Vector getElectrophysFiles()
           
 double getEndTime_s(java.lang.String file)
           
 java.util.Vector getEpochsByCommentPattern(java.lang.String filename)
           
 java.util.Vector getEpochsByCommentPattern(java.lang.String filename, java.lang.String commentPattern)
           
 java.util.Vector getExperiments()
           
 java.lang.String getInfo(java.lang.String file)
           
 java.lang.String getInfo(java.lang.String file, boolean epochInfo)
           
static ElectrophysManager getInstance()
           
 Epoch getNextEpoch(java.lang.String filename)
           
 Epoch getPreviousEpoch(java.lang.String filename)
           
 Epoch getSelectedEpoch()
           
 java.lang.String getSelectedEpochName()
           
 double getStartTime_s(java.lang.String file)
           
static java.util.Hashtable loadEpochTables()
           
 void log(java.lang.String text)
           
 void logException(java.lang.Exception ex)
           
static Comments makeComments(ABF abf, java.lang.String filename, Epoch epoch)
           
static Comments makeComments(Comments comments, ABF abf, java.lang.String filename)
           
 void resetCursor(java.lang.String filename)
           
 void run()
           
 void saveEpochTables(java.util.Hashtable tableModels)
           
 void saveNextEpoch(java.lang.String sourceFile, java.lang.String outputFilename)
           
 void sendChannelDataToWaveManager(java.lang.String file, java.lang.String channelName)
           
 void sendDataToWaveManager(java.lang.String file, double startTime_s, double endTime_s)
           
 void sendEpisodicDataToWaveManager(java.lang.String file)
           
static void sendEpochByNameToWaveManager(java.lang.String name)
           
static void sendEpochByNameToWaveManager(java.lang.String name, java.lang.String prefix)
           
static double sendEpochToWaveManager(Epoch epoch)
           
 double sendNextEpochToWaveManager(java.lang.String filename)
           
 double sendNextEpochToWaveManager(java.lang.String filename, boolean showConfirmDialog)
           
 double sendNextEpochToWaveManager(java.lang.String filename, java.lang.String annotationName)
           
 double sendNextEpochToWaveManager(java.lang.String filename, java.lang.String annotationName, boolean showConfirmDialog)
           
 void sendPreviousEpochToWaveManager(java.lang.String filename)
           
 void setListener(ElectrophysManager_Frame listener2)
           
 void updateCache()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

protected static ElectrophysManager instance
Constructor Detail

ElectrophysManager

protected ElectrophysManager()
Method Detail

getInstance

public static ElectrophysManager getInstance()

getExperiments

public java.util.Vector getExperiments()

getElectrophysFiles

public java.util.Vector getElectrophysFiles()

getCommentsInEpochRange

public Comments getCommentsInEpochRange(java.lang.String startName,
                                        java.lang.String endName)

getCommentsByEpoch

public Comments getCommentsByEpoch(double startTime,
                                   double endTime)

makeComments

public static Comments makeComments(ABF abf,
                                    java.lang.String filename,
                                    Epoch epoch)

makeComments

public static Comments makeComments(Comments comments,
                                    ABF abf,
                                    java.lang.String filename)

getElectrophysComments

public Comments getElectrophysComments()

resetCursor

public void resetCursor(java.lang.String filename)
                 throws java.io.IOException
Throws:
java.io.IOException

saveNextEpoch

public void saveNextEpoch(java.lang.String sourceFile,
                          java.lang.String outputFilename)
                   throws java.io.IOException
Throws:
java.io.IOException

getEpochsByCommentPattern

public java.util.Vector getEpochsByCommentPattern(java.lang.String filename)

getEpochsByCommentPattern

public java.util.Vector getEpochsByCommentPattern(java.lang.String filename,
                                                  java.lang.String commentPattern)

getNextEpoch

public Epoch getNextEpoch(java.lang.String filename)
                   throws java.io.IOException
Throws:
java.io.IOException

getPreviousEpoch

public Epoch getPreviousEpoch(java.lang.String filename)
                       throws java.io.IOException
Throws:
java.io.IOException

getABF

public ABF getABF(java.lang.String filename)
Returns the ABF instance associated with the 'filename' where the filename DOES NOT contain the path to the file.


setListener

public void setListener(ElectrophysManager_Frame listener2)

sendNextEpochToWaveManager

public double sendNextEpochToWaveManager(java.lang.String filename)
                                  throws java.io.IOException
Throws:
java.io.IOException

sendNextEpochToWaveManager

public double sendNextEpochToWaveManager(java.lang.String filename,
                                         java.lang.String annotationName)
                                  throws java.io.IOException
Throws:
java.io.IOException

sendNextEpochToWaveManager

public double sendNextEpochToWaveManager(java.lang.String filename,
                                         boolean showConfirmDialog)
                                  throws java.io.IOException
Throws:
java.io.IOException

sendNextEpochToWaveManager

public double sendNextEpochToWaveManager(java.lang.String filename,
                                         java.lang.String annotationName,
                                         boolean showConfirmDialog)
                                  throws java.io.IOException
Throws:
java.io.IOException

saveEpochTables

public void saveEpochTables(java.util.Hashtable tableModels)

loadEpochTables

public static java.util.Hashtable loadEpochTables()

sendEpochByNameToWaveManager

public static void sendEpochByNameToWaveManager(java.lang.String name)

sendEpochByNameToWaveManager

public static void sendEpochByNameToWaveManager(java.lang.String name,
                                                java.lang.String prefix)

sendEpochToWaveManager

public static double sendEpochToWaveManager(Epoch epoch)
                                     throws java.io.IOException
Throws:
java.io.IOException

sendPreviousEpochToWaveManager

public void sendPreviousEpochToWaveManager(java.lang.String filename)
                                    throws java.io.IOException
Throws:
java.io.IOException

getInfo

public java.lang.String getInfo(java.lang.String file)

sendEpisodicDataToWaveManager

public void sendEpisodicDataToWaveManager(java.lang.String file)

sendDataToWaveManager

public void sendDataToWaveManager(java.lang.String file,
                                  double startTime_s,
                                  double endTime_s)
                           throws java.io.IOException
Throws:
java.io.IOException

sendChannelDataToWaveManager

public void sendChannelDataToWaveManager(java.lang.String file,
                                         java.lang.String channelName)
                                  throws java.io.IOException
Throws:
java.io.IOException

getChannelNames

public java.lang.String[] getChannelNames(java.lang.String file)
                                   throws java.io.IOException
Throws:
java.io.IOException

getStartTime_s

public double getStartTime_s(java.lang.String file)
                      throws java.io.IOException
Throws:
java.io.IOException

getEndTime_s

public double getEndTime_s(java.lang.String file)
                    throws java.io.IOException
Throws:
java.io.IOException

getInfo

public java.lang.String getInfo(java.lang.String file,
                                boolean epochInfo)

logException

public void logException(java.lang.Exception ex)

log

public void log(java.lang.String text)

clearCache

public void clearCache()

updateCache

public void updateCache()

getSelectedEpochName

public java.lang.String getSelectedEpochName()

getSelectedEpoch

public Epoch getSelectedEpoch()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread