Class RCommandRReportItem
java.lang.Object
de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.AbstractRReportItem
de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.AbstractGeneratedTextRReportItem
de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.RCommandRReportItem
- All Implemented Interfaces:
IReportItem
- Direct Known Subclasses:
SummaryReportItem
Report item used to display statistical values. The last result returned from R is considered to
be the value of interest.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The R command which execution yields to the required value.protected org.rosuda.JRI.REXP
The value returned from R after executing the provided command.Fields inherited from class de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.AbstractRReportItem
DEFAULT_DESCRIPTION
-
Constructor Summary
ConstructorDescriptionRCommandRReportItem
(String rCommands, String description) Initializes a new report item. -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateData
(RConnection rConnection) Used to calculate the data in R.getText()
void
visit
(IReportRenderingVisitor renderingVisitor) Used by the visitor to display the report item.Methods inherited from class de.uka.ipd.sdq.sensorframework.visualisation.rvisualisation.reportitems.AbstractRReportItem
getDescription
-
Field Details
-
returnedValue
protected org.rosuda.JRI.REXP returnedValueThe value returned from R after executing the provided command. -
rCommands
The R command which execution yields to the required value.
-
-
Constructor Details
-
RCommandRReportItem
Initializes a new report item.- Parameters:
rCommands
- R commands that lead to the calculation of the statistical value.description
- Description of this report item.
-
-
Method Details
-
getText
- Specified by:
getText
in classAbstractGeneratedTextRReportItem
- Returns:
- The textual representation of this report item.
-
visit
Used by the visitor to display the report item. Used to render the report item.- Specified by:
visit
in interfaceIReportItem
- Specified by:
visit
in classAbstractGeneratedTextRReportItem
- Parameters:
renderingVisitor
- Visitor used for rendering the content of each item.
-
generateData
Used to calculate the data in R. Initializes the generation of data for the report item.- Specified by:
generateData
in interfaceIReportItem
- Specified by:
generateData
in classAbstractGeneratedTextRReportItem
- Parameters:
rConnection
- connection to the R engine used for the generation
-