KeplerImageReader
util.KeplerImageReader

This actor reads an Image from a FileParameter, and outputs it as an AWTImageToken.

This actor is a minor variation on the Ptolemy ImageReader _image is 'flush()' to avoid the caching behavior that keeps showing the same cached image when a workflow is run several times. (The caching fails to show a 'new' version of a graphics file created by the workflow when 'getImage' is used and a file (but not the name of the file) is changed. Change only appears after JVM is shut down an restarted.) Dan Higgins(DFH) - higgins@nceas.ucsb.edu Sept 27, 2004 The original PT ImageReader used URLs rather than local files. This creates a problem when the image file is dynamically created and does not exist at the start of the workflow execution. Modifications were thus made to check for file existence; if it does not exist, an empty file is created in the attributeChanged method. This change makes the use of remote URLs for the image source invalid - Dan Higgins 2 Oct 2004

Author(s): Christopher Hylands, changes by Dan Higgins NCEAS UCSB
Version:$Id: KeplerImageReader.java,v 1.5 2006/03/20 21:52:40 higgins Exp $
Pt.Proposed Rating:Red (cxh)
Pt.Accepted Rating:Red (cxh)




fileOrURL
The file name or URL from which to read. This is a string with any form accepted by File Attribute.