public class AntRMainLoopCallbacks extends java.lang.Object implements REngineCallbacks, REngineOutputInterface
Modifier and Type | Field and Description |
---|---|
private MessageListener |
listener
The message listener that grabs the messages
|
Constructor and Description |
---|
AntRMainLoopCallbacks() |
Modifier and Type | Method and Description |
---|---|
void |
RFlushConsole(REngine eng)
Call the flush method of the associated message listener
|
void |
RShowMessage(REngine eng,
java.lang.String text)
Send the message to the message listener
|
void |
RWriteConsole(REngine eng,
java.lang.String text,
int oType)
called when R prints output to the console.
|
void |
setMessageListener(MessageListener listener)
Set the message listener (typically a instance of
RTask ) |
private MessageListener listener
public void RWriteConsole(REngine eng, java.lang.String text, int oType)
RWriteConsole
in interface REngineOutputInterface
eng
- calling enginetext
- text to display in the consoleoType
- output type (0=regular, 1=error/warning)public void RShowMessage(REngine eng, java.lang.String text)
RShowMessage
in interface REngineOutputInterface
eng
- calling enginetext
- text to display in the messagepublic void RFlushConsole(REngine eng)
RFlushConsole
in interface REngineOutputInterface
eng
- calling enginepublic void setMessageListener(MessageListener listener)
RTask
)listener
- a message listenerCopyright © 2009, Romain Francois francoisromain@free.fr