[kepler-dev] modification of MonitorValue and ImageDisplay to use interfaces similar to Display.
Christopher Brooks
cxh at eecs.berkeley.edu
Fri Jul 20 17:05:33 PDT 2012
Hi Jianwu,
Thanks!
I folded in your changes.
There seems to be a problem with VQ though.
Could you take a look at
kepler/ptolemy/src/ptolemy/domains/sdf/demo/HTVQ/HTVQ.xml
ptolemy.kernel.util.InternalErrorException: Input is not an ImageToken.
It is:
[6, 16 <followed by *lots* of numbers*
It seems to be coming from actor/lib/image/ImageDisplayJavaSE.java:
private void _display(Token in) {
if (!(in instanceof ImageToken)) {
throw new InternalErrorException(
"Input is not an ImageToken. It is: " + in);
}
Thanks,
_Christopher
On 7/20/12 3:55 PM, Jianwu Wang wrote:
> Hi Christopher,
>
> Since you said you don't have time modify the codes, I did the
> modifications here. I don't have write permission for ptolemy svn, so
> I attached the codes. As shown below, some are added and others are
> changed.
>
> The code works for me in Kepler. But I hasn't thoroughly tested
> them yet. For the codes in ptolemy/domains/sdf/lib/vq/, I don't know
> how to test them. Would you please have a check and see whether they
> work for your tests? I hope they can be checked into Ptolemy after
> your tests. Thanks.
>
> I also build corresponding implementation classes for batch mode
> execution, I'll check them into Kepler after you check these classes
> in Ptolemy.
>
> kepler:src jianwu$ svn status
> ? ptolemy/domains/sdf/lib/vq/ImageDisplayJavaSE.java
> ? ptolemy/domains/sdf/lib/vq/ImageDisplayInterface.java
> M ptolemy/domains/sdf/lib/vq/ImageDisplay.java
> M ptolemy/actor/ActorModule.properties
> ? ptolemy/actor/lib/image/ImageDisplayJavaSE.java
> ? ptolemy/actor/lib/image/ImageDisplayInterface.java
> M ptolemy/actor/lib/image/ImageDisplay.java
> M ptolemy/actor/lib/gui/TextFieldContainerInterface.java
> M ptolemy/actor/lib/gui/MonitorValue.java
> M ptolemy/actor/lib/gui/TextFieldContainerJavaSE.java
>
--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670
More information about the Kepler-dev
mailing list