Package org.jamesii.resultreport

Examples of org.jamesii.resultreport.ResultReportSection


   */
  protected abstract void experimentFinished();

  @Override
  public final ResultReportSection createReportSection() {
    ResultReportSection reportSection =
        new ResultReportSection(name, description);
    addContent(reportSection);
    return reportSection;
  }
View Full Code Here


    for (IExperimentReportElement reportElement : reportElements) {
      reportElement.executeExperiment();
      // TODO: Implement graceful failure handling and dependencies
      // between report elements
      if (reportElement.isSuccessful()) {
        ResultReportSection perfByModelHeading =
            reportElement.createReportSection();
        report.addSection(perfByModelHeading);
      } else {
        SimSystem.report(Level.SEVERE,
            "Report element '" + reportElement.toString()
View Full Code Here

    return true;
  }

  @Override
  public ResultReportSection createReportSection() {
    ResultReportSection aggregatedSection =
        new ResultReportSection(name, description);
    for (IExperimentReportElement subElement : subElements) {
      aggregatedSection.addSubSection(subElement.createReportSection());
    }
    return aggregatedSection;
  }
View Full Code Here

   *           Signals that an I/O exception has occurred.
   */
  public void testTutorialReport() throws IOException {
    ResultReport tutorialReport =
        new ResultReport("Test Report 2", "This is a simple test report.");
    ResultReportSection testSection =
        new ResultReportSection("Test Section", "This is a test section.");
    tutorialReport.addSection(testSection);

    testSection.addDataView(new ScatterPlotDataView(new Double[][] {
        testData[0], testData[3] }, "The scatter plot data view.",
        "This is a title for the scatter plot", new String[] { "Bogus X Label",
            "Bogus Y Label" }));

    testSection.addDataView(new BoxPlotDataView(testData,
        "The box plot data view.", "A box plot", new String[] {
            "The variables", "The quantity" }, new String[] { "Variable One",
            "Var. 2", "Var. III", "Var. Four" }));

    testSection.addDataView(new HistogramDataView(testData[1],
        "The histogram data view.", "The title", "The x-label", "The y-label"));

    testSection.addDataView(new LineChartDataView(testData,
        "The line chart data view.", "A line chart", new String[] { "The time",
            "The observed value" }, new String[] { "Variable One", "Var. 2",
            "Var. III" }));

    ResultReportRenderer tutorialRenderer = new RTexResultReportRenderer();
View Full Code Here

   * @throws Exception
   *           the exception
   */
  public void testReportGenerator() throws Exception {

    ResultReportSection testChapter =
        new ResultReportSection("Test Chapter", "This is a test chapter.");
    ResultReportSection testSection =
        new ResultReportSection("Test Section", "This is a test section.");
    ResultReportSection testSubSection =
        new ResultReportSection("Test Subsection", "This is a test subsection.");
    ResultReportSection testSubSubSection =
        new ResultReportSection("Test Subsubsection",
            "This is a test subsubsection.");
    testChapter.addSubSection(testSection);
    testSection.addSubSection(testSubSection);
    testSubSection.addSubSection(testSubSubSection);

    ResultReportSection secondChapter =
        new ResultReportSection(
            "Second Test Chapter",
            "This is another test chapter (just to see if document structure is mapped correctly).");

    generateAndCheckReportExistence(testChapter, secondChapter);
  }
View Full Code Here

   * @throws Exception
   *           the exception
   */
  public void testDataViews() throws Exception {

    ResultReportSection testChapter =
        new ResultReportSection("Dataview Test Chapter",
            "This is a chapter that contains examples for all supported data views.");

    addScatterPlot(testChapter);
    addBoxPlot(testChapter);
    addHistogram(testChapter);
View Full Code Here

   * @throws Exception
   */
  public void testReportWithManyDataViews() throws Exception {

    // Generate long report
    ResultReportSection testChapter =
        new ResultReportSection("Test Chapter with Many Views",
            "This is a chapter that contains many data views.");
    for (int i = 0; i < NUM_OF_VIEWS_SCALABILITY; i++) {
      addLineChart(testChapter);
    }

View Full Code Here

   *          the observer
   */
  private void createReport(ParamILSObserver ilsObserver) {
    ResultReport paramILSReport =
        new ResultReport(getReportName(), "Performance results for ParamILS.");
    ResultReportSection testSection = new ResultReportSection("ParamILS", "");
    paramILSReport.addSection(testSection);

    reportLastMinimum(testSection, ilsObserver);
    reportMinDataPlot(testSection, ilsObserver);
    reportHillClimbingPerformancePlot(testSection, ilsObserver);
View Full Code Here

      SimSystem.report(Level.WARNING,
          "Skipped report section on discovered minima; none recorded.");
      return;
    }
    String res = ilsObserver.getOverallBestConfiguration().getFirstValue();
    ResultReportSection minimum =
        new ResultReportSection("Last minimum discovered", res);
    section.addSubSection(minimum);
  }
View Full Code Here

    String thetaVal = "";
    for (Integer i : ilsObserver.getCalledThetas()) {
      thetaVal += i + " ";
    }

    ResultReportSection theta =
        new ResultReportSection("Called Thetas", thetaVal);
    section.addSubSection(theta);
  }
View Full Code Here

TOP

Related Classes of org.jamesii.resultreport.ResultReportSection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.