Class ExpressionReader

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    @Deprecated
    public class ExpressionReader
    extends LineReader
    Deprecated.
    Use LineReader and ExpressionToToken.
    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.
    Since:
    Ptolemy II 2.2
    Version:
    $Id$
    Author:
    Edward A. Lee
    See Also:
    ExpressionWriter, FileParameter
    Pt.AcceptedRating:
    Red (liuj)
    Pt.ProposedRating:
    Yellow (eal)