Ana-WAG User Guide

Table of content


Purpose

The ana-wag device, for “Analyse Wat-A-Game” (WAG), is a computer version of the Wat-A-Game “paper and pebbles” modelling and simulation tool for water management (See Abrami et al., 2012 1 ). It enables to perform the three activities below.

  1. Build up a Wat-A-Game model representing a watershed or an irrigated scheme.
  2. Simulate the model by playing it as a network-game in an experimental design.
  3. Simulate the model with computer agents instead of players.

The aim is to make possible to perform experiments in the understanding of contextualized experimental economics, in which subjects can build “role playing game” models as the one built during participatory processes and then play to the model they built. In this actual version, ANA-WAG is designed to realize the specific experiment presented in a scientific paper under review 2 . However it is already quite generic and can be easily reused for academic purposes for instance.

Entities, state variables and scales of the WAG model

Entities of ana-wag device model correspond to the entities that exist in the WAG role playing game and in a watershed system in general:

The conceptual model of entities and their state variables is presented in an UML class diagram in Figure below.

Ana-WAG Main Entities and state variables

Conceptual class diagram

There are three main levels of spatial scale in the WAG modelling language.

The temporal resolution is the year or the time to execute an Activity. It corresponds to a “turn” of the game. The temporal extent is the number of turns.

Structure of the Ana-WAG device

We distinguish two kinds of users of the Ana-WAG device:

Setting experimental parameters (Experimenter)

The first feature enables the experimenter to set up the parameters of a session (group numbers, duration, water supply parameters) and to choose activity to perform (modelling, simulation or network game). The corresponding interface is the general interface displayed below opened when the file is open.

Ana-WAG Main Inferface: Set parameters and choose activity

Main interface

Parameters to set are the following:

Define the context

Define the natural water parameter

Choose activity
See the three possible activities in next sessions:

Modeling (Experimenter): Design a watershed model

The Modeling feature enables to realise the model of an irrigated scheme model as presented in (Bonte et al., Under review 2 ). Figure below presents the interface in which an experimenter already started to draw a water shed with 4 players/ agents, a field, a river reach and a water source (visible in the drawing area). The user may load or save his watershed and modify existing watersheds.

Ana-WAG Modeling Inferface: Draw your watershed

Modeling interface

-Click on “RUN” button to start the activity
- Draw your watershed by drog and droping elements from the tool area to the drawing area, eventual opions will be proposed when you install elements (owner of the fields, kind of the water sources, …).
- Save or load your wartershed with corresponding buttons

Play (Experimenter): Organise and run a network game

The Play activity enables to realise the network game model activity, organised as a client server architecture based on HubNet in which:

Starting a network session window

Starting hubnet interface

Managing client connexions with HubNet control center interface

HubNet control interface

Ana-WAG Play Inferface (experimenter): Manage a game session

Play interface (experimenter)

Play (Player): Participate to a network game

The players manage their client interface with which a player can at each round: monitor his own activities and status, choose his participation to the public infrastructure and change the activities to implement on his plots by clicking on a plot and choosing an activity card in the legend.

Connexion with HubNet client connexion interface

Client connexion interface

Client game interface

Game interface client

Simulate (Experimenter): Run simulations with computerized players

The experimenter can test his watersheds models by running simulations where human players are replaced by computer agents. An inference engine has been built to model agents’ behaviours but at the moment given rules are very simple so agent behariour is erratic. However it enables to watch a simulation when you do not want to play all the players (see Figure below).

Simulation interface

Simulation interface

Download and Installation of Ana-WAG

All sofwares used are free of charge and open-source (Platform: NetLogo 5.3.1, Programming Language: NetLogo, Operating System: Platform Independent, Model code licensed Under: GNU GPL, Version 3).
In order to use Ana-WAG you must:
- firstly download and install NetLogo 5.3.1 ( NetLogo download page ),
- secondly download the extra-widget extension v1.1.0
( ExtraWidget extension page ) and install it as an extension in your NetLogo installation as explained in the extension guide of NetLogo (just put the downloaded file in the rigth foler of your NetLogo install).

Mzpping of the WAG model in the NetLogo world

The conceptual model of ANA-WAG presented in Figure the conceptual class diagram has been mapped to the NetLogo meta-model in order to implement the model in the NetLogo platform (See Figure below).

Mapping of the WAG conceptual model used in ANA-WAG into the NetLogo meta-model

Main interface

Process overview and scheduling of the WAG model

In the ana-wag device, the simulation corresponds to the network game feature or to a simulation with computer agents. When it is a network game, it is managed by a specific user of the device called the experimenter that starts each turn when all players are ready. Once the turn is started, the Players (or agents) choose the activities they want to install on each of their fields, as well as the investment they want to put in the artificial source of water. Then the Waterpath entities distribute water through each Field and the Activities entities determine if they succeed (get enough resources) or not. An UML sequence diagram presents the scheduling in the WAG model used in ANA-WAG in Figure below.

Sequence diagram of the WAG model used in ANA-WAG

Sequence diagram


  1. Abrami, G., Ferrand, N., Morardet, S., Murgue, C., Popova, A., De Fooij, H., Aquae-Gaudi, W., 2012. Wat-a-game, a toolkit for building role-playing games about integrated water management. In: R. Seppelt, A.A. Voinov, S. Lange, D. Bankamp (Eds.) (2012): International Environmental Modelling and Software Society (iEMSs) 2012 International Congress on Environmental Modelling and Software. Managing Resources of a Limited Planet: Pathways and Visions under Uncertainty, Sixth Biennial Meeting, Leipzig, Germany.

  2. Bonte et al under review.