Skip to content

Commit

Permalink
Started the documentation index
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbagneris committed Jun 16, 2009
1 parent 9c15ece commit 63a9f8d
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 1 deletion.
78 changes: 78 additions & 0 deletions docs/en/config.txt
@@ -1,3 +1,5 @@
.. index:: configuration

.. _config:

=============================
Expand All @@ -7,6 +9,9 @@ FMS experiments configuration
FMS needs a detailed description of an experiment before being able able to run
it. The experiment configuration file contains this description.

.. index::
pair: configuration file; name of

The experiment configuration file name might be whatever you want (provided your
operating system allows it) but should have an '.yml' extension for FMS to know
how to parse it (other formats such as XML exist for compatibility reasons, even
Expand All @@ -18,13 +23,19 @@ their required parameters: world, engines/markets, agents.

.. _YAML: http://www.yaml.org/

.. index::
pair: configuration file; syntax

Configuration file syntax
=========================

Configuration files are provided in the ``examples`` directory, which is located
in the main documentation directory [1]_. It is strongly recommanded to study
those before writing your own (see `examples provided`_ below).

.. index::
pair: configuration file; example

A minimal configuration file might be::

--- # Experiment
Expand All @@ -47,6 +58,11 @@ An FMS YAML configuration file should contain one and only one YAML *document*,
i.e. only one section delimited by ``---``. The parameters it describes are as
follows:

.. index::
pair: outputfilename; parameter
pair: transaction; filename
pair: output; filename

.. _outputfilename:

outputfilename
Expand All @@ -71,6 +87,10 @@ outputfilename
Then the resulting transactions will be output to
``/home/mydir/fmsdata/myexperiments/exp01output.csv``

.. index::
pair: orderslogfilename; parameter
pair: filename; orders

orderslogfilename
Name of (and optional path to) order log file (optional)

Expand All @@ -83,6 +103,10 @@ orderslogfilename
will be relative to the experiment configuration file directory. See
:ref:`outputfilename <outputfilename>` above for an example.

.. index::
pair: repeat; parameter
pair: experiment; repeat

repeat
Number of times the experiment should be repeated (optional, default 1)

Expand All @@ -92,6 +116,9 @@ repeat
repeated twice, it will result in two output files, named `myoutput-001.csv`
and `myoutput-002.csv`.

.. index::
pair: randomseed; parameter

randomseed
Seed of the pseudo-ramdom numbers generator (optional)

Expand All @@ -102,6 +129,11 @@ randomseed
this). As this library accepts an optional seed parameter, you may specify
it here.

.. index::
single: comma separated value
pair: delimiter; csv file
pair: csvdelimiter; parameter

csvdelimiter
Delimiter used in the comma separated value files (optional)

Expand All @@ -110,25 +142,43 @@ csvdelimiter
spreadsheets. Accepted values are semicolon ``;``, comma ``,``, tab, space,
colon ``:``, pipe ``|``, dash ``-``, exclamation mark ``!``, slash ``/``.

.. index::
pair: unique_by_agent; parameter
pair: agent; order

unique_by_agent
Should orders in books be unique per agent ? (optional, default ``True``)

If this parameter is ``True`` or missing, any order placed by an agent
replaces any previous order from the same agent.

.. index::
pair: show_books; parameter
pair: display; books

show_books
Should FMS show 5 best limits of order books on each step ? (optional, default
``False``)

If this parameter is ``False`` or missing, best limits of order books are
not printed on each step (tick).

.. index::
pair: timer; parameter
pair: display; timer

timer
Should FMS show a timer while running (optional, default ``False``)

If this parameter is ``True``, a day:time timer is displayed while the
experiment is running.

.. index::
pair: world; parameter
pair: world; class name
pair: world; arguments
pair: world; configuration

world
World class information (required)

Expand All @@ -146,6 +196,20 @@ world

Any arguments required by or optional to the world class.

.. index::
pair: engines; parameter
pair: engine; class name
pair: engine; arguments
pair: engine; configuration
pair: market; parameter
pair: market; class name
pair: market; arguments
pair: market; configuration
pair: days; parameter
pair: parameter; days (number of)
pair: clearbooksateod; parameter
pair: daylength; parameter

engines
Engine classes information (required)

Expand Down Expand Up @@ -206,6 +270,17 @@ engines

Any arguments required by or optional to the engine class.

.. index::
pair: agents; parameter
pair: agent; class name
pair: agent; arguments
pair: agent; configuration
pair: parameter; agents (number of)
pair: parameter; agents (wealth)
pair: parameter; money
pair: parameter; agents (stocks)
pair: parameter; stocks

agents
Agents classes information (required)

Expand Down Expand Up @@ -248,6 +323,9 @@ agents

Any arguments required by or optional to the agent class.

.. index::
pair: configuration file; example

Examples provided
=================

Expand Down
7 changes: 6 additions & 1 deletion docs/en/index.txt
Expand Up @@ -7,6 +7,8 @@ FMS, an agent based Financial Market Simulator
FMS is (c) 2008,2009 Jean-Charles Bagneris. See the LICENSE file in the
distribution bundles for redistribution information and usual disclaimer.

.. index:: about

What is FMS ?
=============

Expand Down Expand Up @@ -46,6 +48,8 @@ not be in the foreseeable future):
.. [1] Although FMS intention is not primarily pedagogical, it *might* be useful
in classroom environment with PhD students, for an example.

.. index:: history, rationale

Rationale and history
=====================

Expand Down Expand Up @@ -124,6 +128,7 @@ Index, tables and search
========================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

.. * :ref:`modindex`

2 changes: 2 additions & 0 deletions docs/en/install.txt
@@ -1,3 +1,5 @@
.. index:: installation, download

.. _install:

=============================
Expand Down
2 changes: 2 additions & 0 deletions docs/en/startfms.txt
Expand Up @@ -2,6 +2,8 @@
startfms
========

.. index:: manpage, startfms

--------------------------------
the startfms.py launching script
--------------------------------
Expand Down
2 changes: 2 additions & 0 deletions docs/en/tutorial.txt
@@ -1,3 +1,5 @@
.. index:: tutorial

.. _tutorial:

============
Expand Down

0 comments on commit 63a9f8d

Please sign in to comment.