ABLE, Version 1.1b

com.ibm.able.beans
Class AbleDataSetDefinition

java.lang.Object
  |
  +--com.ibm.able.beans.AbleDataSetDefinition

public class AbleDataSetDefinition
extends java.lang.Object
implements java.io.Serializable

This class represents a set of meta-data used to describe external data It consists of a vector of AbleFieldDefinitions which describe individual fields Field definitions contain names, data types, and usage (input/output/ignore) This class can read/write text *.dfn files

See Also:
Serialized Form

Field Summary
protected  boolean allNumericData
           
protected  java.lang.String dataFileName
           
protected  java.lang.String dataSetDefinitionFileName
           
protected  java.util.Vector fieldDefinitionList
           
protected  java.lang.String fileName
           
 
Constructor Summary
AbleDataSetDefinition()
          construct a data set definition object with no field defs
 
Method Summary
 java.lang.String getDataFileName()
          get the data set file name
 java.lang.String getDataSetDefinitionFileName()
          get the dfn file name
 java.util.Vector getFieldDefinitionList()
          returns a copy of the field definition vector
 java.lang.String getFileName()
          get the base file name
 boolean isAllNumericData()
          returns true if all fields are numeric, false otherwise
 void load()
          Read the *.dfn file, create the variables based on the info The format of a *.dfn file is as follows: field name type usage field1 continuous input field2 discrete input field3 categorical output dummy1 continuous ignore dummy2 boolean ignore where field name: must be a unique name where type: is a valid Able data type (boolean, categorical, continuous, discrete, etc.) where usage: indicates processing directives, input, output/target , or ignore
 void save()
          write out the metadata describing the data set
 void setDataFileName(java.lang.String dataFileName)
          set the data set file name
 void setDataSetDefinitionFileName(java.lang.String dataSetDefinitionFileName)
          set the dfn file name
 void setFileName(java.lang.String fileName)
          set the base file name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

protected java.lang.String fileName

dataSetDefinitionFileName

protected java.lang.String dataSetDefinitionFileName

dataFileName

protected java.lang.String dataFileName

allNumericData

protected boolean allNumericData

fieldDefinitionList

protected java.util.Vector fieldDefinitionList
Constructor Detail

AbleDataSetDefinition

public AbleDataSetDefinition()
construct a data set definition object with no field defs
Method Detail

getDataSetDefinitionFileName

public java.lang.String getDataSetDefinitionFileName()
get the dfn file name

setDataSetDefinitionFileName

public void setDataSetDefinitionFileName(java.lang.String dataSetDefinitionFileName)
set the dfn file name

getDataFileName

public java.lang.String getDataFileName()
get the data set file name

setDataFileName

public void setDataFileName(java.lang.String dataFileName)
set the data set file name

getFileName

public java.lang.String getFileName()
get the base file name

setFileName

public void setFileName(java.lang.String fileName)
set the base file name

getFieldDefinitionList

public java.util.Vector getFieldDefinitionList()
returns a copy of the field definition vector

isAllNumericData

public boolean isAllNumericData()
returns true if all fields are numeric, false otherwise

load

public void load()
          throws java.io.FileNotFoundException,
                 java.io.IOException
Read the *.dfn file, create the variables based on the info The format of a *.dfn file is as follows: field name type usage field1 continuous input field2 discrete input field3 categorical output dummy1 continuous ignore dummy2 boolean ignore where field name: must be a unique name where type: is a valid Able data type (boolean, categorical, continuous, discrete, etc.) where usage: indicates processing directives, input, output/target , or ignore

save

public void save()
write out the metadata describing the data set

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'