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

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

Simulation.Aivika.Experiment.WebPageRenderer

Description

Tested with: GHC 7.8.3

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

A renderer that depends on the provided parameter.

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.