jadex.extension.envsupport.evaluation.DataTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-kernel-extension-envsupport Show documentation
Show all versions of jadex-kernel-extension-envsupport Show documentation
The Jadex kernel extension envsupport allows for using 2D spaces in concert with components.
package jadex.extension.envsupport.evaluation;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Basic data structure for all collected data.
*/
public class DataTable
{
//-------- attributes --------
/** The table name. */
protected String name;
/** The table column names. */
protected String[] columnnames;
/** The data rows. */
protected List rows;
/** The map of column indices. */
protected Map columns;
//-------- constructors --------
/**
* Create a new data table.
*/
public DataTable(String name, String[] columnnames)
{
this.name = name;
this.columnnames = columnnames;
this.columns = new HashMap();
for(int i=0; i