actor/lib/Reader.java will read tokens from URL or from standard in.
actor/lib/FileWriter.java will write tokens to standard out.

I use FileWriter all the time for tests and code generation.  However,
these actors are not in sources.xml or sinks.xml because there are a
few design issues around the current implementations of Reader and
FileWriter:

Reader should read in expressions and serialized tokens.

FileWriter should not declare its input type to be token, but should
rather let the type system resolve to the most specific type.

We need ASCII & Serialized formats, and perhaps
a MATLAB format. Really, a complete redo is necessary perhaps using
serialized token. In preinitialize, we could: 
    1.open a file 
    2.figure out the type of the token 
    3.declare the output 
Of course, the writer would write the type first. 

-Christopher
--------

    
    I would like to use Ptolemy II to create a filter that reads from
    standard input, and creates output on standard output.
    Are there  specialized sources and sinks for this purpose?
    
    Greg Rohling
    
    
    
    
    ---------------------------------------------------------------------------
   -
    Posted to the ptolemy-hackers mailing list.  Please send administrative
    mail for this list to: [EMAIL PROTECTED]
--------

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

Reply via email to