Re: removing and readding actors to a model

2003-11-24 Thread Edward A Lee
Ah, this sounds like an extremely useful capability... Java has a hot-swap capability... This is used, for example, by Eclipse when you modify and recompile a piece of code while the debugger is running. So to some extent, you get this for free if you use Eclipse as the development environment.

Re: removing and readding actors to a model

2003-11-24 Thread Matt Jones
Chad, I think that you need to consider the classloader issues in order to be able to do this. The JVM loads a class using the default ClassLoader -- which I think caches the class so that it needn't load it again. So...even if you get it reinserted into the Ptolemy hierarchy, the JVM will

Re: removing and readding actors to a model

2003-11-24 Thread Stephen Andrew Neuendorffer
I think it makes more sense to use Java's classloader to do this (as Matt suggests) rather than hot-swap. With hot-swap, the classes are expected to be consistent with one another (as with a debugger, for instance) Since there is no way to ensure this, an exception will likely result. We've