You are right.  I'm checking in this fix.
Thanks!
Edward

At 07:50 AM 4/6/2006, Adriana Ricchiuti wrote:
Hi all,
I discovered a strange behaviour of ExpressionReader actor, because the value of _expressionEvaluator variable isn't removed between one execution and another. So, if the past execution failed, the variable value is setted to wrong value; in the next execution, the variable value remains on wrong value even if right values has been introduced. In this way, the evaluation of variable value, in method validate() of Variable.java, failed before reading a new file row. This problem will be resolved by adding the wrapup() method to ExpressionReader.java class.

public void wrapup() throws IllegalActionException {
       super.wrapup();
       _expressionEvaluator.setExpression("");
   }

So, the _expressionEvaluator value will be reset.

Thanks,
Adriana

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
[EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to