Hi,
I am Irina.
I cant to get facts from clips file using java code.
I trying to use code:
clips.run();
String evaluar = "find-all-facts ((?v mydiagnosis)) TRUE";
PrimitiveValue value = clips.eval(evaluar);
String diagn= value.get(0).getFactSlot("diagn").toString();
JOptionPane.showMessageDialog(rootPane, "My diagnosis "+diagn);
clips.reset();
But I have an ERROR:
error: cannot find symbol
symbol: method get(int)
location: variable value of type Primitive Value java clips
Bellow code doesn't work too:
clips.run();
String evaluar = "find-all-facts ((?v mydiagnosis)) TRUE";
PrimitiveValue value = clips.eval(evaluar);
String diagn=((FactAddressValue) value.getValue()).getFactSlot("diagn").toString(); // There is no possible to set value.get(0)
JOptionPane.showMessageDialog(rootPane, "My diagnosis "+diagn);
clips.reset();