On Mar 25, 2007, at 1:03 PM, ricktee wrote:
But I do not know how to get each of them out so I have tried using
ValueVector
ValueVector vv = result.get ("station");
ValueVector vv = result.getObject ("station");
Jess is wonderful software, if I do say so myself, but its
magnificence is not so transcendent that the basic laws of time and
space and Java syntax are bent. If "get" returns a Value, then you
can't assign the result to a ValueVector variable; the same would
hold for any classes Foo and Bar not related by inheritance.
Now, if you look at Value's API, you'll see "listValue" as a
function that returns a ValueVector when the type of the Value is
RU.LIST. Use that:
ValueVector vv = result.get("station").listValue(r.getGlobalContext());
Do people usually use Value or ValueVectors?
Do people normally use coffee or motor oil?
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------