File: GlpkTerminalListener.java

package info (click to toggle)
glpk-java 1.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 3,580 kB
  • sloc: sh: 3,609; java: 1,794; xml: 259; makefile: 154; ansic: 35
file content (27 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.gnu.glpk;

/**
 * Terminal Listener
 * <p>GLPK will call method {@link GlpkTerminal#callback(String)
 * GlpkTerminal.output} before producing terminal output. A listener can
 * inhibit the terminal output by returning <code>false</code> in the
 * {@link #output(String) output} routine.
 * <p>If a {@link GlpkException GlpkExeption} has occured it is necessary to
 * call<pre>
 * GLPK.glp_term_hook(null, null);</pre>
 * to reenable listening to terminal output.
 * @see GlpkTerminal
 * @see GlpkException
 * @see GLPK#glp_term_hook(SWIGTYPE_p_f_p_void_p_q_const__char__int,
 * SWIGTYPE_p_void)
 */
public interface GlpkTerminalListener {
    /**
     * Receive terminal output.
     * <p>The return value controls, if the mesage is displayed in the
     * console.
     * @param str output string
     * @return true if terminal output is requested
     */
    boolean output(String str);
}