Multislots come from properties of array type -- i.e.,

private int[] ia;
public int[] getAges() { return ia; }
public void setAges(int[] ages) { ia = ages; }

Jess most definitely does *not* like working with methods that return or accept objects of type jess.Value or jess.ValueVector or their subclasses!

On May 12, 2009, at 3:56 AM, Davide Zambon wrote:

Hi Jess Users,

This is my first experience with Jess.
I declared my own template as a Java class, every (single) slot works.
But I wished also to add some multislots in my template, so I wrote:

public void setMymultislot(Value v)
    {
    }

    public Value getMymultislot()
    {
      return null;
    }

but Jess don't recognize it at all. It result with an error arguing my template has not a multislot with that name.
Where is the problem?

Many thanks in advance!

Davide Zambon

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs
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].
--------------------------------------------------------------------

Reply via email to