holoedit.data
Class HoloExternalData

java.lang.Object
  extended by holoedit.data.HoloExternalData
Direct Known Subclasses:
HoloSDIFdata

public class HoloExternalData
extends java.lang.Object


Field Summary
protected  java.lang.String dataType
          The type of data contained by this holoExternalData.
protected  java.io.File extDataFile
          associated data file
private  double fileLength
          duree du fichier (ms)
private  boolean fine
          etat pour l'import
 
Constructor Summary
HoloExternalData(java.io.File f)
          Constructs an holoExternalData from a file.
HoloExternalData(java.io.File f, java.lang.String dataType)
          Constructs an holoExternalData from a file.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getDataType()
          Returns the dataType for this holoExternalData.
 double getExtDataLength()
          Returns the length of this holoExternalData in milliseconds
 int getExtDataLengthCS()
          Returns the length of this holoExternalData in centiseconds
 java.lang.String getFileName()
          Returns the name of the file from which this holoExternalData has been constructed.
 java.lang.String getFileType()
          return the extension of the file from which this holoExternalData has been constructed.
 boolean isFine()
           
 void setExtDataLength(double fileLength)
          Sets the length of this holoExternalData in milliseconds
 void setFine(boolean b)
           
 java.lang.String toString2(java.lang.String parentPath)
          used to write in .holo file.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extDataFile

protected java.io.File extDataFile
associated data file


fine

private boolean fine
etat pour l'import


fileLength

private double fileLength
duree du fichier (ms)


dataType

protected java.lang.String dataType
The type of data contained by this holoExternalData.

Constructor Detail

HoloExternalData

public HoloExternalData(java.io.File f)
Constructs an holoExternalData from a file.


HoloExternalData

public HoloExternalData(java.io.File f,
                        java.lang.String dataType)
Constructs an holoExternalData from a file. whith a given dataType.

Method Detail

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Returns true if the object o is an holoExternalData whose filename is the same as the filename of this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - - the reference object with which to compare.

getExtDataLength

public double getExtDataLength()
Returns the length of this holoExternalData in milliseconds


getExtDataLengthCS

public int getExtDataLengthCS()
Returns the length of this holoExternalData in centiseconds


setExtDataLength

public void setExtDataLength(double fileLength)
Sets the length of this holoExternalData in milliseconds


getFileName

public java.lang.String getFileName()
Returns the name of the file from which this holoExternalData has been constructed.


getFileType

public java.lang.String getFileType()
return the extension of the file from which this holoExternalData has been constructed.


getDataType

public java.lang.String getDataType()
Returns the dataType for this holoExternalData.


isFine

public boolean isFine()

setFine

public void setFine(boolean b)

toString2

public java.lang.String toString2(java.lang.String parentPath)
used to write in .holo file. see HoloExternalDataPool.toString() and HoloFileWriter

Parameters:
parentPath -
Returns: