On Jan 25, 2008 12:41 PM, Olivier Lefevre <[EMAIL PROTECTED]> wrote: > Thanks. Two questions: > 1) in a scenario where Java is in charge, where does something > like the existing java package fit in?
I'm not sure I understand what you mean. Could you be more explicit? > 2) I fear starting Octave and communicating with it will be the > lesser of my problems, in the end: I also need to share data > structures, so as not to copy incessantly (otherwise better > use sockets or Runtime.exec, which gives you the benefit of > isolation as a bonus) and for that I'd need to understand > Octave internals... It depends on what you want to exchange. Making java code to access octave data directly is not possible, because octave C++ data is not part of the java-managed memory space. You need to do some conversion; the java package provides the functions box/unbox to convert the basic types (strings, scalars, and even matrices [using the Matrix.java class]). Any octave object that cannot be converted (struct, cell array) is stored internally by the java package code, and given to JVM as an OctaveReference object. If you want to make the octave code able to access the Java data, you can do this using the java package (through the octave_java C++ class, which acts as a "reference to a java object" that can be manipulated from octave). Michael. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev