Package eu.simuline.octave.exec
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.
-
Interface Summary Interface Description ReadFunctor Function object that will execute reads on a Reader.WriteFunctor Function object that will execute writes to a Writer. -
Class Summary Class Description OctaveExec The object connecting to the octave process.OctaveReaderCallable Callable
that reads from the octave process.OctaveWriterCallable Callable
that writes scripts to the octave process.ReaderWriteFunctor Reads all from the reader and writes it to the writer.WriterReadFunctor Reads all from the reader and writes it to the writer.