public class DataMgr extends Object
| Constructor and Description |
|---|
DataMgr(ModelMgr modelMgr_p,
VirtualUser virtualUser_p)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataSet(DataSet dataset_p)
adds dataset to this data manager.
|
boolean |
dataSetExist(String dataSetID_p) |
DataSet |
getDataSet(String dataSetID_p)
returns the data set from the cache.
|
String[] |
getDataSetNames()
return list of data set names currently registered.
|
DataSet |
newDataSetListMap(String dataSetID_p,
List<Map<String,Object>> dataRows_p)
creates a new dataset with given data list and adds the data set to the data manager.
|
DataSet |
newDataSetTSV(String dataSetID_p,
String filePath_p)
creates a new dataset from a tab delimited file in model's dataset folder or subfolder.
|
public DataSet getDataSet(String dataSetID_p) throws MBTAbort
dataSetID_p - MBTAbortpublic boolean dataSetExist(String dataSetID_p)
public String[] getDataSetNames()
public DataSet newDataSetListMap(String dataSetID_p, List<Map<String,Object>> dataRows_p) throws Exception
dataSetID_p - dataRows_p - List<Map<String, Object>>Exceptionpublic DataSet newDataSetTSV(String dataSetID_p, String filePath_p) throws Exception
dataSetID_p - filePath_p - file name or relative path to the fileExceptionpublic void addDataSet(DataSet dataset_p)
dataset_p - Copyright TestOptimal, LLC