Hi all, hope someone can help me.
I already made an expert system wich works well and does what it have to do.
I now want to make an extension of this ES using it in Android.
My ES works as a series of questions which the user have to answer.
I want to get the printout of CLIPS and putting it in a TextView for displaying it on the app.
Then I want to put the answer which the ES have to read and use.
I am getting stuck on this because I cannot get the message the system displays.
How can I do ?
Regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can redirect I/O using the CLIP router system described in Section 7 of the Advanced Programming Guide. There's some rudimentary support for routers in CLIPSJNI 0.4 (that appears to be the basis for CLIPS4Android), but it's untested and there are no examples of its use. CLIPSJNI 0.6 (which has not yet been released) has support for routers including a router demo project. There's a RouterTextArea class that extends JTextArea to provide support for routers. You can look at the code in the repository at https://sourceforge.net/p/clipsrules/code/HEAD/tree/branches/64x/ if you want to try to update CLIPS4Android to match the newer versions of CLIPSJNI.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all, hope someone can help me.
I already made an expert system wich works well and does what it have to do.
I now want to make an extension of this ES using it in Android.
I am using this library: https://github.com/gomezgoiri/CLIPS4Android
My ES works as a series of questions which the user have to answer.
I want to get the printout of CLIPS and putting it in a TextView for displaying it on the app.
Then I want to put the answer which the ES have to read and use.
I am getting stuck on this because I cannot get the message the system displays.
How can I do ?
Regards.
You can redirect I/O using the CLIP router system described in Section 7 of the Advanced Programming Guide. There's some rudimentary support for routers in CLIPSJNI 0.4 (that appears to be the basis for CLIPS4Android), but it's untested and there are no examples of its use. CLIPSJNI 0.6 (which has not yet been released) has support for routers including a router demo project. There's a RouterTextArea class that extends JTextArea to provide support for routers. You can look at the code in the repository at https://sourceforge.net/p/clipsrules/code/HEAD/tree/branches/64x/ if you want to try to update CLIPS4Android to match the newer versions of CLIPSJNI.