[rules-users] Drools and Repast S
Marcus Lunzenauer
marcus.lunzenauer at elanag.com
Wed Mar 19 12:23:45 EDT 2008
Hi,
I am trying to use Drools inside of my Repast S[1] project. I have got
some errors running my simple rules:
> Unable to resolve ObjectType 'Message' : [Rule name=Your First Rule,
> agendaGroup=MAIN, salience=0, no-loop=false]
> test.MessageRule Compilation error : [Rule name=Your First Rule,
> agendaGroup=MAIN, salience=0, no-loop=false]
> apackage/Rule_Your_First_Rule_0.java (2:25) : Only a type can be
> imported. test.Message resolves to a package
> apackage/Rule_Your_First_Rule_0.java (7:250) : message cannot be
> resolved
There are two Java classes involved:
* MyAgent.class - my Repast S agent (basically a modified
HelloWorldExample from the Drools examples)
* Message.class - a bean
Both live in the package test.
My rule file consists of:
> package apackage
> import test.Message;
>
> rule "Your First Rule"
> when
> Message( message : message )
> then
> System.out.println(message);
> end
When I am running my MyAgent class as a Java application, everything is
ok. But if I am incorporating my MyAgent class into Repast S, I get the
aforementioned error.
So how can I find the source of this error? Does anyone have a clue how
to proceed?
I would be so glad, if you could help me. (Using JESS would be much less
fun :-)
Best Regards,
Marcus
[1]: http://repast.sourceforge.net/
More information about the rules-users
mailing list