aivika-experiment-5.2: Simulation experiments for the Aivika library

CopyrightCopyright (c) 2012-2017 David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Simulation.Aivika.Experiment.Base.WebPageRenderer

Description

Tested with: GHC 8.0.1

It defines a renderer that creates a web page when running the simulation experiment.

Synopsis

Documentation

data WebPageRenderer a Source #

It defines the web page renderer for simulation Experiment.

Constructors

WebPageRenderer a ExperimentFilePath

A renderer that depends on the provided parameter and a directory path, where the simulation results are saved in.

Instances

ExperimentView FinalStatsView (WebPageRenderer a) Source # 
ExperimentView FinalTableView (WebPageRenderer a) Source # 
ExperimentView InfoView (WebPageRenderer a) Source # 
ExperimentView LastValueView (WebPageRenderer a) Source # 
ExperimentView TableView (WebPageRenderer a) Source # 
ExperimentView TimingStatsView (WebPageRenderer a) Source # 
ExperimentView ExperimentSpecsView (WebPageRenderer a) Source # 
ExperimentRendering (WebPageRenderer a) Source #

Rendering a web page with results when running the simulation experiment.

data ExperimentContext (WebPageRenderer a) Source # 
type ExperimentEnvironment (WebPageRenderer a) Source # 
type ExperimentMonad (WebPageRenderer a) Source # 

data WebPageWriter Source #

It replies to the requests made by the web page renderer.

Constructors

WebPageWriter 

Fields

  • reporterWriteTOCHtml :: Int -> HtmlWriter ()

    Return a TOC (Table of Contents) item for the HTML index file after the finalisation function is called, i.e. in the very end. The agument specifies the ordered number of the item.

    You should wrap your HTML in writeHtmlListItem.

  • reporterWriteHtml :: Int -> HtmlWriter ()

    Return an HTML code for the index file after the finalisation function is called, i.e. in the very end. The agument specifies the ordered number of the item.

type WebPageGenerator a = ExperimentGenerator (WebPageRenderer a) Source #

A convenient type synonym for describing a web page generator.