CLIPSJNI

64 views
Skip to first unread message

quoiure

unread,
Nov 22, 2009, 7:42:00 PM11/22/09
to CLIPSESG
Hi,
how can I display current activations using while using CLIPSJNI ?

Does CLIPJNI.dll contain all of the functions implemented in C (in
liberary-src directory of CLIPSJNI.20) ?

I would apreciate any replies,
quoiure

CLIPS Support

unread,
Nov 23, 2009, 12:16:43 AM11/23/09
to CLIPSESG
You can invoke the agenda command using the eval method from CLIPSJNI.
The complete set of functionality in the C API is not available in the
CLIPSJNI.

quoiure

unread,
Nov 23, 2009, 5:12:52 AM11/23/09
to CLIPSESG
Hey, thank you for the reply.

Eval works perfectly fine when I'm using the agenda.

Is there any way to fire a specific activation I want?
I can't seem to find such a command in the manual. Do I have to halt
the execution and then modify the saliences of the current
activations? Is there another way to do it?

CLIPS Support

unread,
Nov 23, 2009, 8:00:22 PM11/23/09
to CLIPSESG
There's a function called MoveActivationToTop that's not part of the
documented API. You can use that to move an activation to the top of a
module's agenda, at which point if you run, that'll be the next rule
(assuming the module has the current focus).

quoiure

unread,
Dec 1, 2009, 1:27:42 PM12/1/09
to CLIPSESG
That function is supposed to be used with clips.eval?

Im not able to use it anyway its not recognised.

CLIPS Support

unread,
Dec 1, 2009, 8:18:12 PM12/1/09
to CLIPSESG
No, that function is part of the C API. You would need to create a
user-defined function using the C API and you could then invoke that
function through the use of eval.
> > > > > quoiure- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages