As in subject, what is the recommended way of doing?
Indeed, in the pump example, it is written:
Pump p = new Pump("MAIN", t);
// Tell Jess about them
Funcall f = new Funcall("definstance", rete);
f.add(new Value("pump", RU.ATOM));
f.add(new Value(p));
f.execute(rete.getGlobalContext());
What is different with (in my code):
rete.definstance("userSession",this,true);
If I want to assert an instance of my Session class?
Same goes for run, reset, etc... It would seem that asking Jess to always
parse a command is less "elegant" than calling functions?
Thanks,
Alex
--
Alexander Lamb
Groupe Serveurs Applicatifs
Division d'Informatique Midicale
Htpitaux Universitaires de Genhve
21 rue Micheli-du-Crest
CH-1211 Genhve 4 / Switzerland
Tel: +41-22 372.48.46 Fax: +41-22 372.61.98
[EMAIL PROTECTED] / http://www.hcuge.ch
--------------------------------------------------------------------
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]
--------------------------------------------------------------------