Class RTextConsole
java.lang.Object
de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.utils.RTextConsole
- All Implemented Interfaces:
org.rosuda.JRI.RMainLoopCallbacks
Text console adapter for R engines. This text console adapter is used to log inputs, outputs and
the history for a corresponding R engine.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the last message displayed on the R console.void
rBusy
(org.rosuda.JRI.Rengine re, int which) rChooseFile
(org.rosuda.JRI.Rengine re, int newFile) void
rFlushConsole
(org.rosuda.JRI.Rengine re) void
rLoadHistory
(org.rosuda.JRI.Rengine re, String filename) rReadConsole
(org.rosuda.JRI.Rengine re, String prompt, int addToHistory) void
rSaveHistory
(org.rosuda.JRI.Rengine re, String filename) void
rShowMessage
(org.rosuda.JRI.Rengine re, String message) void
rWriteConsole
(org.rosuda.JRI.Rengine re, String text) Used if text is written to the console.void
rWriteConsole
(org.rosuda.JRI.Rengine arg0, String message, int arg2)
-
Constructor Details
-
RTextConsole
public RTextConsole()Construct a new console.
-
-
Method Details
-
rWriteConsole
Used if text is written to the console.- Parameters:
re
- Connected R engine.text
- Console output.
-
rBusy
public void rBusy(org.rosuda.JRI.Rengine re, int which) - Specified by:
rBusy
in interfaceorg.rosuda.JRI.RMainLoopCallbacks
-
rReadConsole
- Specified by:
rReadConsole
in interfaceorg.rosuda.JRI.RMainLoopCallbacks
-
rShowMessage
- Specified by:
rShowMessage
in interfaceorg.rosuda.JRI.RMainLoopCallbacks
-
rChooseFile
- Specified by:
rChooseFile
in interfaceorg.rosuda.JRI.RMainLoopCallbacks
-
rFlushConsole
public void rFlushConsole(org.rosuda.JRI.Rengine re) - Specified by:
rFlushConsole
in interfaceorg.rosuda.JRI.RMainLoopCallbacks
-
rLoadHistory
- Specified by:
rLoadHistory
in interfaceorg.rosuda.JRI.RMainLoopCallbacks
-
rSaveHistory
- Specified by:
rSaveHistory
in interfaceorg.rosuda.JRI.RMainLoopCallbacks
-
rWriteConsole
- Specified by:
rWriteConsole
in interfaceorg.rosuda.JRI.RMainLoopCallbacks
-
getLastMessage
Returns the last message displayed on the R console.- Returns:
- the last message on the R console.
-