File: REngineOutputInterface.java

package info (click to toggle)
rjava 1.0-14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,188 kB
  • sloc: java: 13,223; ansic: 5,503; sh: 3,776; xml: 325; makefile: 250; perl: 33
file content (21 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.rosuda.REngine;

/** interface defining delegate methods used by {@link REngine} to forward output callbacks from R. */
public interface REngineOutputInterface {
	/** called when R prints output to the console.
	 *  @param eng calling engine
	 *  @param text text to display in the console
	 *  @param oType output type (0=regular, 1=error/warning)
	 */
	public void RWriteConsole(REngine eng, String text, int oType);
	
	/** called when R wants to show a warning/error message box (not console-related).
	 *  @param eng calling engine
	 *  @param text text to display in the message
	 */
	public void RShowMessage(REngine eng, String text);
	
	/** called by R to flush (display) any pending console output.
	 *  @param eng calling engine */
	public void RFlushConsole(REngine eng);
}