I am trying to use a Java object directly in JESS. Here is the description:

        I have a class called Account. Account has a Vector in it called
Position. Account has a method called getPosition which returns this Vector.
        The Vector has objects of class Position in it. Each Position object
has a field called m_quantity, m_price.

I need to be able to:
1.      assert Account
2.      call getPosition on Account and get back the position Vector
3.      iterate over the Vector and get m_quantity and m_price for each
position.

How can achieve this in JESS?

Regards

Lokesh
---------------------------------------------------------------------
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