public class DataSet extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DataSet.Strength |
| Modifier and Type | Field and Description |
|---|---|
static String |
ROWNOFIELDNAME |
| Modifier and Type | Method and Description |
|---|---|
Constraint |
addConstraint(String ifExpr_p,
String thenExpr_p)
adds a constraint to the dataset.
|
Field |
addField(String name_p,
Field.DataType dataType_p,
String[] domainList_p,
String coupledField_p,
boolean derived_p)
adds a field to the dataset.
|
Field |
addField(String name_p,
String[] domainList_p)
adds a field.
|
Field |
addFieldVerify(String name_p,
String expr_p)
adds a verify field - field of which the value is derived from other fields using the expression.
|
DataSet |
addPlugin(String pluginID_p)
activate additional plugin
|
Relation |
addRelation(String name_p,
String[] fieldNameList_p,
DataSet.Strength strength_p)
adds a relation to the dataset.
|
static DataSet |
fromFile(String filePath_p) |
String |
getName() |
void |
saveToFile(String filePath_p) |
public static final String ROWNOFIELDNAME
public DataSet(String name_p)
public String getName()
public DataSet addPlugin(String pluginID_p)
pluginID_p - plugin IDpublic Field addField(String name_p, String[] domainList_p)
name_p - field namedomainList_p - Array list of domain values to be testedpublic Field addFieldVerify(String name_p, String expr_p)
name_p - field nameexpr_p - groovy expressionpublic Field addField(String name_p, Field.DataType dataType_p, String[] domainList_p, String coupledField_p, boolean derived_p)
name_p - field name, preferably a legal java variable namedataType_p - bool, text, intNum, floatNumdomainList_p - Array list of domain values to be testedcoupledField_p - name of the field to be coupled withderived_p - if the field is derived, meaning its value is derived from an expression specified in domainList_ppublic Relation addRelation(String name_p, String[] fieldNameList_p, DataSet.Strength strength_p)
name_p - relation namefieldNameList_p - list of field names to create the relationstrength_p - interaction strength to test, pairWise, threeWise, fourWise, fiveWise, sixWisepublic Constraint addConstraint(String ifExpr_p, String thenExpr_p) throws Exception
ifExpr_p - boolean expression, for example Age < 30 && Fulltime_Student && Smoking = "NO"thenExpr_p - boolean expression, for example Credit = 50Exception - on any errorCopyright © 2020. All rights reserved.