public static void parseDetFTableString(String cptstring, BNNode node) {
String[] expressions = cptstring.split(";");
Vector<String> bifArray = new Vector<String>();
TabularDetF cpf = (TabularDetF) node.getFunction();
if (node.getDomType() == DomainType.labels
|| node.getDomType() == DomainType.intervals) {
DiscreteDomain dom = (DiscreteDomain) cpf.getDomain();
for (int i = 0; i < expressions.length; i++) {
String token = expressions[i].trim();
bifArray.add(token);
// int k = dom.findState(token);
// bifArray.add(String.valueOf(k));
}
cpf.setValues(bifArray);
} else if (node.getDomType() == DomainType.continuous) {
if (expressions.length == 1) {
cpf.setAll(expressions[0]);
} else {
for (int i = 0; i < expressions.length; i++) {
String token = expressions[i].trim();
cpf.setValue(i, token);
}
}
}