edu.uiuc.ge.illigal.gale.data
Class FileInstanceSet

java.lang.Object
  |
  +--edu.uiuc.ge.illigal.gale.data.InstanceSet
        |
        +--edu.uiuc.ge.illigal.gale.data.FileInstanceSet
All Implemented Interfaces:
OrderedSet

public class FileInstanceSet
extends InstanceSet

This class contains the Sample Memory obtained from a file. The information must be separated with some delimiter, and each sample must appear on a different row.

Since:
0.9alpha
Version:
0.9alpha
Author:
Xavier Llorà <xllora@illigal.ge.uiuc.edu>

Field Summary
protected  java.util.Date dateFTS
          Date of successful read
protected  java.util.Date dateSTS
          Date of successful read
protected  edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf
          GALE Environment configuration object
 
Fields inherited from class edu.uiuc.ge.illigal.gale.data.InstanceSet
attSet, fsInstances, iSize, sRelation
 
Constructor Summary
FileInstanceSet(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf, java.lang.String sFileName)
          Initialize a InstaceSet from the file specified by the String information that it receives.
 
Method Summary
protected  void computeBounds()
          Checks the Sample Bounds.
static void main(java.lang.String[] sArgs)
           
protected  void processHeaderLine(java.lang.String sLine)
          Processes a line of the header of the arff file
 java.lang.String toString()
          Converts the sample into a string readable format.
 
Methods inherited from class edu.uiuc.ge.illigal.gale.data.InstanceSet
attributeSet, getInstance, getRelationName, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

galeCnf

protected edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf
GALE Environment configuration object


dateSTS

protected java.util.Date dateSTS
Date of successful read


dateFTS

protected java.util.Date dateFTS
Date of successful read

Constructor Detail

FileInstanceSet

public FileInstanceSet(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf,
                       java.lang.String sFileName)
                throws java.lang.Exception
Initialize a InstaceSet from the file specified by the String information that it receives. The sample values are described by arff format.

Parameters:
galeCnf - Contains the GALE configuration
sFileName - Contains the file name for the instance set
Throws:
java.lang.Exception - The file could not be loaded
Method Detail

processHeaderLine

protected void processHeaderLine(java.lang.String sLine)
                          throws java.lang.Exception
Processes a line of the header of the arff file

Parameters:
sLine - the line to be processed
Throws:
java.lang.Exception - corrupted instance found

computeBounds

protected void computeBounds()
                      throws java.lang.Exception
Checks the Sample Bounds.

Throws:
java.lang.Exception - corrupted instance found

toString

public java.lang.String toString()
Converts the sample into a string readable format. The format is equivalent to the constructor format.

Specified by:
toString in class InstanceSet
Returns:
The Sample Memory information in a String format

main

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