Well I'm using JBoss Drools if it is compatible. Also there is a regular syntax which each rule has to fulfill, doesn't matter which rule engine is used. Imports, Definition, Premise, Conclusion, I think you know how a rule looks like.
My main problem consists of defining the parts of a rule, e.g. if I only want to mutate the premise of a rule, how do I define what a premise is? And how do I define the imports and globals and the conclusion?
I don't need a specific rule for my problem, I've already written many rules. But I have no clue about how to define a rule, and even if its only an empty premise and conclusion as a data structure where I can use these rule-parts to create a rule.
Hope I could get my problem clear enough this time :)
Greetings from Germany
Bojan
----- Ursprüngliche Mail -----
Von: "Sean Luke" <[log in to unmask]>
An: [log in to unmask]
Gesendet: Donnerstag, 18. April 2013 16:56:32
Betreff: Re: Evolve Rules with ECJ
ECJ's rule package is very *very* general. And not well tested, so you're on your own (though I am not aware of any bugs in it). Another way you can do rule evolution is to use ECJ's list extension to its vector package -- see the manual.
The problem with providing rules is that there are are a zillion different *kinds* of rules, so ECJ assumes you're gonna be building your own special kind of rule system.
Sean
On Apr 18, 2013, at 10:03 AM, Bojan Janisch wrote:
> Hello everyone,
>
> does someone got experience using ECJ to evolve rules? I've seen that ECJ has a rule-package which saves me a lot of work, but I have no idea of how to define a rule as a data structure. I've also read the manual about this package, but everything is really abstract and only of little help. I appreciate every bit of help.
>
> Thank you very much.
>
> Bojan
|