stimulusdelayrewardanalyzer
Class Convert2DB

java.lang.Object
  |
  +--stimulusdelayrewardanalyzer.Convert2DB
All Implemented Interfaces:
java.lang.Runnable

public class Convert2DB
extends java.lang.Object
implements java.lang.Runnable

Main conversion thread to convert .dsc76 files into ODBC mdb. This class can work on its own thread. It reads a given directory .dsc76 files made using StimulusDelayReward_28Jul06_1 based code and extract a specific train or test block into a .txt file. Dump files are renaed to : m_TargetPath + "\\" + id + "_export_" + m_BlockIndex + xstr + ".txt" Dumping is done by Tools.dumpBlock().


Field Summary
static int CONTROL
           
static int TEST
           
static int TRAIN
           
 
Constructor Summary
Convert2DB(java.lang.String newDatabaseName, java.lang.String newDscFilesPath, java.sql.Date newDate, int newModel)
          Construct a Runnable class that analyse a whole directory of .dsc76 files to convert them into an access database.
 
Method Summary
 int getAllBlockCount()
          Number of all blocks within current .dsc76 files.
 int getAllNetworkCount()
          Number of .dsc76 files in total.
 int getBlockCount()
          Number of blocks within current .dsc file completely processed.
 int getNetworkCount()
          Number of .dsc76 files completely processed.
 java.lang.String getText()
          Returns the current text buffer and empty it.
 void run()
          Function called by THREAD.start().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROL

public static final int CONTROL
See Also:
Constant Field Values

TEST

public static final int TEST
See Also:
Constant Field Values

TRAIN

public static final int TRAIN
See Also:
Constant Field Values
Constructor Detail

Convert2DB

public Convert2DB(java.lang.String newDatabaseName,
                  java.lang.String newDscFilesPath,
                  java.sql.Date newDate,
                  int newModel)
Construct a Runnable class that analyse a whole directory of .dsc76 files to convert them into an access database.

Parameters:
newDatabaseName - Name of the access databse to write to.
newDscFilesPath - Name of the directory to read .dsc files from.
newDate - Date of training
newModel - Model of networks trained
Method Detail

getAllBlockCount

public int getAllBlockCount()
Number of all blocks within current .dsc76 files.


getAllNetworkCount

public int getAllNetworkCount()
Number of .dsc76 files in total.


getBlockCount

public int getBlockCount()
Number of blocks within current .dsc file completely processed.


getNetworkCount

public int getNetworkCount()
Number of .dsc76 files completely processed.


getText

public java.lang.String getText()
Returns the current text buffer and empty it.


run

public void run()
Function called by THREAD.start().

Specified by:
run in interface java.lang.Runnable