I am new to JESS and I got two questions when I read through Pump examples.
 
First of all, according to the JESS manual, "dynamic" should be declared on creation of JavaBeans object, if the definstance facts stay up-to-date. However, there is no "dynamic" in the pumps.clp at all. The only possible explanation would be that "dynamic" feature is a default behavior. Is it true?
 
Second, this question is about how to make a JavaBean support PropertyChangeListener. The Pump and Tank java classes first define PropertyChangeSupport data member and then implement addPropertyChangeListener() and removePropertyChangeListener() methods. There is no code adding the existing knowledge base to these JavaBeans. I guess that (definstance tank (bind ?tank (new Tank "MAIN"))) construct do all these works behind scenes. Is it a correct understanding?
 
Thanks in advance.
 
Young-Jin Lee
 

Reply via email to