Package jline.io

Class LINE2MATLAB

java.lang.Object
jline.io.LINE2MATLAB

public final class LINE2MATLAB extends Object
Writes the MATLAB script of a model, dispatching on its type.

Port of matlab/src/io/LINE2MATLAB.m: a Network goes to QN2MATLAB and a LayeredNetwork to LQN2MATLAB, in both cases under the model's own name.

  • Method Details

    • write

      public static void write(Object model)
      Writes the generated script to standard output.
    • write

      public static void write(Object model, PrintStream out)
      Writes the generated script to a stream, which is flushed but not closed.
    • write

      public static void write(Object model, String filename)
      Writes the generated script to filename, overwriting it.
    • generate

      public static String generate(Object model)
      Returns the generated script.