holoedit.fileio
Class SDIFreader

java.lang.Object
  extended by holoedit.fileio.SDIFreader
All Implemented Interfaces:
java.lang.Runnable

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


Field Summary
private  java.util.HashMap<java.lang.String,java.lang.Boolean> booleanHashMap
          une hashMap pour contenir les booleans des types de matrix inconnus
private  java.util.HashMap<java.lang.String,int[]> columnsHashMap
          une hashMap pour contenir les colonnes choisis par l'utilisateur pour les types de matrix inconnus
private  boolean done
           
private  double endTime
          Date de fin des donnŽes
private  int error
           
private  java.util.HashMap<java.lang.String,java.lang.String[]> fieldsHashMap
          une hashMap pour contenir les fields lus ou choisis par l'utilisateur pour tous les types de matrix
static int FILE_ERROR
           
private  boolean fine
          file last modified
private  double frameTime
           
private  java.util.HashMap<java.lang.String,HoloSDIFdata> hashMap
          une hashMap pour contenir des holoSDIFdata (1 par type de matrix prŽsent: FQ0, TRC, etc.)
private  HoloSDIFdata hsdifdata
           
private  HoloSDIFdata[] hSDIFdts
           
static int INDEX_ERROR
           
private  java.util.HashMap<java.lang.String,java.lang.Integer> indexOffsetHashMap
          une hashMap pour contenir les offsets des index de chaque type de matrix si un index doit etre lu pour ces matrix.
static int LOAD_ERROR
           
private  Main mainRef
           
private  sdif.Matrix mat
           
static int MONO_ERROR
           
private  int nbrFrames
           
static int NO_ERROR
           
static int OCTET_ERROR
           
static int PATH_ERROR
           
static int PATH2_ERROR
           
private  ProgressBar pb
          Pour l'affichage d'une barre de progression pendant l'ouverture du fichier
private  java.lang.Thread runner
           
 java.io.File sdifFile
          associated SDIF file
static int SSDII_NORSRC_ERROR
           
static int SSDII_RSRC_ERROR
           
private  double startTime
          Date de dŽbut des donnŽes
static int TYPE_ERROR
           
static int USING_CACHE_ERROR
           
 
Constructor Summary
SDIFreader(java.io.File f, Main owner)
           
 
Method Summary
private  void createSDIFdata()
           
private  int[] defaultValues(java.lang.String[] sdifFields, int nrow)
          Permet la selection automatique des options d'importation d'un type de matrix SDIF.
 int getError()
           
 HoloSDIFdata[] getHoloSDIFdatas()
           
 boolean isDone()
           
 boolean isFine()
           
private  void matrixToSDIFdata(java.lang.String mType, int nrow, int ncol, int indexCol, int drawCol, boolean bool, int drawStyle, java.lang.String[] sdifFields)
           
 void run()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

error

private int error

USING_CACHE_ERROR

public static final int USING_CACHE_ERROR
See Also:
Constant Field Values

NO_ERROR

public static final int NO_ERROR
See Also:
Constant Field Values

MONO_ERROR

public static final int MONO_ERROR
See Also:
Constant Field Values

TYPE_ERROR

public static final int TYPE_ERROR
See Also:
Constant Field Values

LOAD_ERROR

public static final int LOAD_ERROR
See Also:
Constant Field Values

OCTET_ERROR

public static final int OCTET_ERROR
See Also:
Constant Field Values

INDEX_ERROR

public static final int INDEX_ERROR
See Also:
Constant Field Values

FILE_ERROR

public static final int FILE_ERROR
See Also:
Constant Field Values

PATH_ERROR

public static final int PATH_ERROR
See Also:
Constant Field Values

PATH2_ERROR

public static final int PATH2_ERROR
See Also:
Constant Field Values

SSDII_NORSRC_ERROR

public static final int SSDII_NORSRC_ERROR
See Also:
Constant Field Values

SSDII_RSRC_ERROR

public static final int SSDII_RSRC_ERROR
See Also:
Constant Field Values

pb

private ProgressBar pb
Pour l'affichage d'une barre de progression pendant l'ouverture du fichier


runner

private java.lang.Thread runner

hSDIFdts

private HoloSDIFdata[] hSDIFdts

fine

private boolean fine
file last modified


done

private boolean done

sdifFile

public java.io.File sdifFile
associated SDIF file


startTime

private double startTime
Date de dŽbut des donnŽes


endTime

private double endTime
Date de fin des donnŽes


hashMap

private java.util.HashMap<java.lang.String,HoloSDIFdata> hashMap
une hashMap pour contenir des holoSDIFdata (1 par type de matrix prŽsent: FQ0, TRC, etc.)


booleanHashMap

private java.util.HashMap<java.lang.String,java.lang.Boolean> booleanHashMap
une hashMap pour contenir les booleans des types de matrix inconnus


columnsHashMap

private java.util.HashMap<java.lang.String,int[]> columnsHashMap
une hashMap pour contenir les colonnes choisis par l'utilisateur pour les types de matrix inconnus


fieldsHashMap

private java.util.HashMap<java.lang.String,java.lang.String[]> fieldsHashMap
une hashMap pour contenir les fields lus ou choisis par l'utilisateur pour tous les types de matrix


indexOffsetHashMap

private java.util.HashMap<java.lang.String,java.lang.Integer> indexOffsetHashMap
une hashMap pour contenir les offsets des index de chaque type de matrix si un index doit etre lu pour ces matrix.


frameTime

private double frameTime

hsdifdata

private HoloSDIFdata hsdifdata

mat

private sdif.Matrix mat

nbrFrames

private int nbrFrames

mainRef

private Main mainRef
Constructor Detail

SDIFreader

public SDIFreader(java.io.File f,
                  Main owner)
Method Detail

run

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

defaultValues

private int[] defaultValues(java.lang.String[] sdifFields,
                            int nrow)
Permet la selection automatique des options d'importation d'un type de matrix SDIF. MŽthode utilisŽe quand l'option "SDIF import" est dŽ-selectionnŽe dans les prŽŽrences.

Parameters:
sdifFields - Les noms des champs de la matrix
nrow - le nombre de lignes de la matrix

matrixToSDIFdata

private void matrixToSDIFdata(java.lang.String mType,
                              int nrow,
                              int ncol,
                              int indexCol,
                              int drawCol,
                              boolean bool,
                              int drawStyle,
                              java.lang.String[] sdifFields)

createSDIFdata

private void createSDIFdata()

isFine

public boolean isFine()

isDone

public boolean isDone()

getError

public int getError()

getHoloSDIFdatas

public HoloSDIFdata[] getHoloSDIFdatas()

stop

public void stop()