com.github.TKnudsen.ComplexDataObject.data.examples.DataFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of complex-data-object Show documentation
Show all versions of complex-data-object Show documentation
A library that models real-world objects in Java, referred to as ComplexDataObjects. Other features: IO and preprocessing of ComplexDataObjects.
package com.github.TKnudsen.ComplexDataObject.data.examples;
import java.io.IOException;
import java.util.List;
import com.github.TKnudsen.ComplexDataObject.data.complexDataObject.ComplexDataObject;
import com.github.TKnudsen.ComplexDataObject.model.io.parsers.examples.TitanicParser;
/**
*
* Title: DataFactory
*
*
*
* Description: Provides Lists of ComplexDataObject instances for some given
* data sets.
*
*
*
* Copyright: Copyright (c) 2015-2016
*
*
* @author Juergen Bernard
* @version 1.02
*/
public class DataFactory {
public static List createTitanicDataSet() {
List titanicData = null;
TitanicParser p = new TitanicParser("", true);
try {
titanicData = p.parse("data/titanic_extended.txt");
} catch (IOException e) {
e.printStackTrace();
}
return titanicData;
}
}