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
FieldsModifier and TypeFieldDescriptionprotected StringThe R command which execution yields to the required value.protected org.rosuda.JRI.REXPThe 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
ConstructorsConstructorDescriptionRCommandRReportItem(String rCommands, String description) Initializes a new report item. -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateData(RConnection rConnection) Used to calculate the data in R.getText()voidvisit(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:
getTextin 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:
visitin interfaceIReportItem- Specified by:
visitin 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:
generateDatain interfaceIReportItem- Specified by:
generateDatain classAbstractGeneratedTextRReportItem- Parameters:
rConnection- connection to the R engine used for the generation
-