[kepler-dev] graph dependency on kernel.util

Christopher Brooks cxh at eecs.berkeley.edu
Fri Jun 6 16:03:12 PDT 2008


Currently, the ptolemy.graph depends on kernel.util
for the exceptions and it uses NamedObj in one
place to for a better error message.

This morning, I tried changing ptolemy.graph so that
it used ptolemy.graph.GraphActionException and
GraphInvalidStateException.

Both these exceptions currently extend similar exceptions
in kernel.util but I thought that if this worked out, I would
consider breaking the dependency.

Anyway, it turns out that there are a bunch of methods
in Variable, TypedIOPort, type.MonotonicFunction, 
actor.lib.RecordUpdater type.FunctionType and many
other places where we have inner classes that extend
the graph classes like InequalityTerm.  The problem
is that these are all declared to throw IllegalActionException.

Is it worth making these changes and cleaning up the
dependency?  I don't mind doing the work, but it does
mean that old code will likely break.

_Christopher


More information about the Kepler-dev mailing list