Package eu.simuline.octave.exec

Classes related with executing octave. The central class is OctaveExec creating (i.e. opening), closing and executing an octave script in its main method OctaveExec.evalRW(WriteFunctor, ReadFunctor). It uses an OctaveWriterCallable to write a script to octave and an OctaveReaderCallable to read back the output from octave. OctaveExec.evalRW(WriteFunctor, ReadFunctor).

The basic interfaces are ReadFunctor and WriteFunctor reading from a reader and writing to a writer, respectively. The sole implementations in this package are ReaderWriteFunctor which is a WriteFunctor writing to a writer what is read from a wrapped reader and WriterReadFunctor which is a ReadFunctor reading from a reader and writing to a wrapped writer.

Note that eu.simuline.octave.io.DataReadFunctor is the other implementation of ReadFunctor and eu.simuline.octave.io.DataWriteFunctor is the other implementation of WriteFunctor the two reading and writing octave objects.

The classes OctaveWriterCallable and OctaveReaderCallable are required in OctaveExec.evalRW(WriteFunctor, ReadFunctor) only. The first one writes a command to octave, whereas the second one reads the result back.