ExpressionReader
ptolemy.actor.lib.io.ExpressionReader

This actor reads a file or URL, one line at a time, evaluates each line as an expression, and outputs the token resulting from the evaluation. The first line in the file determines the data type of the output. All other lines must contain expressions that evaluate to the same type or a subtype, or a run-time type error will occur. The file or URL is specified using any form acceptable to FileParameter. If an end of file is reached, then prefire() and postfire() will both return false.

Author(s): Edward A. Lee
Version:$Id: ExpressionReader.java,v 1.24 2006/04/16 16:27:35 eal Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (liuj)