fsmvis.data
Interface DataLoader

All Known Implementing Classes:
CSVLoader

public abstract interface DataLoader


Method Summary
 DataItemCollection getDataItemCollection()
          Returns a DataItemCollection object containing the data in the input source
 java.util.ArrayList getFields()
          gets the field names in the data source
 java.util.ArrayList getTypes()
          Gets the types that correspond to the field names,
 DataItem parseDataItem(java.lang.String line)
          Method to parse a data item, turns the String of fields in the data item into a dataItem object.
 void readData()
          Reads from the data source and parses its contents to create a DataItemCollection
 

Method Detail

readData

public void readData()
              throws java.io.IOException,
                     java.text.ParseException
Reads from the data source and parses its contents to create a DataItemCollection

parseDataItem

public DataItem parseDataItem(java.lang.String line)
                       throws java.text.ParseException
Method to parse a data item, turns the String of fields in the data item into a dataItem object.
Parameters:
line - The line containing the data for this item
Returns:
The DataItem object that is created.

getDataItemCollection

public DataItemCollection getDataItemCollection()
Returns a DataItemCollection object containing the data in the input source
Returns:
The DataItemCollection containing all the data.

getFields

public java.util.ArrayList getFields()
gets the field names in the data source
Returns:
The field names in the data

getTypes

public java.util.ArrayList getTypes()
Gets the types that correspond to the field names,
Returns:
The types of each field name in the data