Between Ptolemy II 1.0 and 2.0, the port names in some of the actors changed:
ptolemy.actor.lib.conversions.CartesianToComplex has differences:
3,4c3,4
< public ptolemy.actor.TypedIOPort real;
< public ptolemy.actor.TypedIOPort imag;
---
> public ptolemy.actor.TypedIOPort x;
> public ptolemy.actor.TypedIOPort y;
..
ptolemy.actor.lib.conversions.ComplexToCartesian has differences:
4,5c4,5
< public ptolemy.actor.TypedIOPort real;
< public ptolemy.actor.TypedIOPort imag;
---
> public ptolemy.actor.TypedIOPort x;
> public ptolemy.actor.TypedIOPort y;
7c7
< public final void fire() throws ptolemy.kernel.util.IllegalActionExceptio\
n;
---
> public void fire() throws ptolemy.kernel.util.IllegalActionException;
The idea is to write an xsl file that will update the port names in
$PTII/ptolemy/actor/lib/conversions/test/auto/ComplexToCartesianAndBack.xml
Below are the diffs: