|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.beans.AbleDataSetDefinition
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
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 |
protected java.lang.String fileName
protected java.lang.String dataSetDefinitionFileName
protected java.lang.String dataFileName
protected boolean allNumericData
protected java.util.Vector fieldDefinitionList
Constructor Detail |
public AbleDataSetDefinition()
Method Detail |
public java.lang.String getDataSetDefinitionFileName()
public void setDataSetDefinitionFileName(java.lang.String dataSetDefinitionFileName)
public java.lang.String getDataFileName()
public void setDataFileName(java.lang.String dataFileName)
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public java.util.Vector getFieldDefinitionList()
public boolean isAllNumericData()
public void load() throws java.io.FileNotFoundException, java.io.IOException
public void save()
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |