Hi all,
First off, many thanks to Wolfgang for the temporal solution. It works a treat, and i should learn to read the wiki more closely.
Sadly though my rocket ship is not up up an away yet ;-)

I am looking for a little info on the JESS inheritance model.

I have an alarm deftemplate derived from my Alarm class.
I would like jess to analyse these incoming alarms and highlight the important ones. So the output from jess is Super_Alarm. Both classes share many slots / fields.

Now the question.
If i have *deftemplate* Super_Alarm *from class* Super_Alarm *extends* Alarm :

A) Can i cast an alarm to a super alarm and fill in the new fields

B) What is JESS's mechanism for doing this (in comparison to performance of the solution below)

currently i pass the alarm Object slot into the constructor of Super_Alarm which is full of : this.setX(alarm.getX() );

Thanks
Gary





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