[kepler-dev] NIL token
Christopher Brooks
cxh at eecs.berkeley.edu
Wed Mar 29 11:04:25 PST 2006
Hi Jing,
Good question, I was afraid there might be issues surrounding
Nil tokens and types. My previous design had nil-ness being a
property of the token, so we had a DoubleToken that was of
type double and was nil. Now we have just one token which is nil.
Can you construct a small model that has a similar failure?
Also, what's the stack trace of the current failure?
Perhaps where the types are being checked needs to be updated to
handle nilness
_Christopher
--------
hi, Christopher:
According to the changes you made in ptolemy about nil token, I made the
changes in kepler for missing value too.
Since currently we only have one public static variable NIL in Token class
(NIL is a generic type and there is no any other nil in sub token
classes), I think every missing value element should be replaced by the
NIL token no matter what the data type it is. But when I run the workflow
test, I got some error:
Workflow workflows/test/test-ecogrid-eml-gce-data.xml FAILED:
[java] ptolemy.kernel.util.IllegalActionException: Run-time type checking
failed. Token nil with type general is
incompatible with port type: int
So it seems the NIL token is not compatible to int port type. Did I miss
something? How can I make the NIL token to compatible int port type?
Thanks,
Jing
Jing Tao
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Suite 204
Santa Barbara, CA 93101
_______________________________________________
Kepler-dev mailing list
Kepler-dev at ecoinformatics.org
http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
--------
More information about the Kepler-dev
mailing list