Hi there,

i'm trying to create e.g. a java.awt.Point in Java, store it in Jess, make some 
manipulations (e.g. setLocation(newX, newY) on it and then giving it back to the Java 
Programm. I browsed through alot of text and explanations which somehow touched my 
concern but couldn't figure out a solution. 

my ideas till now are like this:

A)

Rete r=new Rete();
Point pt1=new Point(1,1);
r.store("point",new Value(pt1));

the next thing i'm looking on is something like :

r.executeCommand("(call "point" setLocation 2,2)");

Of course this is not possible, but how should i access the stored Point object?

and even if i solve the mentioned problem: when i give the Value back to the Java 
Program, how can i get the Point out of the Value object? (the 
getExternalAddressValue( Context c ) looks a little strange, i didn't get the idea of 
the context )

B)  i try it with defclass ( like the antetype out of the jess manual)

Rete r=new Rete();
Point pt1=new Point(1,1);
r.store("PointName",pt1);
r.executeCommand("(defclass Point java.awt.Point)");
r.executeCommand("(definstance Point (fetch PointName) static)");

but then how procede? (again i want to use the setLocation method of the Point object 
in some time)


Perhaps i'm trying to build a bridge over a slop but i'm stuck with this for quite a 
long time now...


Regards

Sebastian
  

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to