Suppose I create instances of the following object and map them into Jess
using definstance. The intent is that the creation of this fact will
trigger one or more rules which would use
delegate on the LHS and RHS, in effect importing a CORBA reference into Jess
so that its properties can be used in rules.
When I ran my test code, I did see a fact asserted on the fact list, but I
did not see a slot for the "delegate" value in the fact--only a slot for the
Class and a slot for OBJECT, both of which pointed to external adresses. I
expected to see a slot for delegate, and to be able to things similar to
what is done in the pumps example. Where am I going wrong/what am I
missing?
public class JessBean {
org.omg.CORBA.Object m_delegate;
public JessBean() {
}
public JessBean(org.omg.CORBA.Object delegate) {
m_delegate = delegate;
}
org.omg.CORBA.Object getDelegate() {
return m_delegate;
}
protected PropertyChangeSupport m_pcs = new
PropertyChangeSupport(this);
public void addPropertyChangeListener(PropertyChangeListener pcl)
{
m_pcs.addPropertyChangeListener(pcl);
}
public void removePropertyChangeListener(PropertyChangeListener pcl)
{
m_pcs.removePropertyChangeListener(pcl);
}
} // JessBean
---------------------------------------------------------------------
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]
---------------------------------------------------------------------