<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//TaxonX//DTD Taxonomic Treatment Publishing DTD v0 20100105//EN" "../../nlm/tax-treatment-NS0.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tp="http://www.plazi.org/taxpub" article-type="research-article" dtd-version="3.0" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">78</journal-id>
      <journal-id journal-id-type="index">urn:lsid:arphahub.com:pub:3845C6FC-D117-5A0E-B63F-122CB98024F9</journal-id>
      <journal-title-group>
        <journal-title xml:lang="en">Food and Ecological Systems Modelling Journal</journal-title>
        <abbrev-journal-title xml:lang="en">FESMJ</abbrev-journal-title>
      </journal-title-group>
      <issn pub-type="epub">2815-3197</issn>
      <publisher>
        <publisher-name>Pensoft Publishers</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.3897/fmj.5.121215</article-id>
      <article-id pub-id-type="publisher-id">121215</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Methods</subject>
        </subj-group>
        <subj-group subj-group-type="biological_taxon">
          <subject>Animalia</subject>
        </subj-group>
        <subj-group subj-group-type="scientific_subject">
          <subject>Agricultural ecology</subject>
          <subject>Computer &amp; Information sciences</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>ALMaSS Landscape and Farming Simulation: software classes and methods</article-title>
      </title-group>
      <contrib-group content-type="authors">
        <contrib contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Topping</surname>
            <given-names>Christopher John</given-names>
          </name>
          <email xlink:type="simple">cjt@ecos.au.dk</email>
          <uri content-type="orcid">https://orcid.org/0000-0003-0874-7603</uri>
          <xref ref-type="aff" rid="A1">1</xref>
          <role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
          <role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing - original draft</role>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/software/">Software</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Duan</surname>
            <given-names>Xiaodong</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0003-2345-4155</uri>
          <xref ref-type="aff" rid="A1">1</xref>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
          <role content-type="http://credit.niso.org/contributor-roles/software/">Software</role>
        </contrib>
      </contrib-group>
      <aff id="A1">
        <label>1</label>
        <addr-line content-type="verbatim">Social-Ecological Systems Simulation Centre, Department of Ecoscience, Aarhus University, Aarhus, Denmark</addr-line>
        <institution>Aarhus University</institution>
        <addr-line content-type="city">Aarhus</addr-line>
        <country>Denmark</country>
      </aff>
      <author-notes>
        <fn fn-type="corresp">
          <p>Corresponding author: Christopher John Topping (<email xlink:type="simple">cjt@ecos.au.dk</email>)</p>
        </fn>
        <fn fn-type="edited-by">
          <p>Academic editor: Leonardo Candela</p>
        </fn>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2024</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>27</day>
        <month>06</month>
        <year>2024</year>
      </pub-date>
      <volume>5</volume>
      <elocation-id>e121215</elocation-id>
      <uri content-type="arpha" xlink:href="http://openbiodiv.net/4AA31857-5505-5271-AD90-6F3DA4F22E41">4AA31857-5505-5271-AD90-6F3DA4F22E41</uri>
      <history>
        <date date-type="received">
          <day>19</day>
          <month>02</month>
          <year>2024</year>
        </date>
        <date date-type="accepted">
          <day>14</day>
          <month>06</month>
          <year>2024</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>Christopher John Topping, Xiaodong Duan</copyright-statement>
        <license license-type="creative-commons-attribution" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
          <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
        </license>
      </permissions>
      <abstract>
        <label>﻿Abstract</label>
        <p>This article describes the landscape model for the Animal Landscape and Man Simulation System (<abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EHD">ALMaSS</abbrev>). The article itself provides an overall description of the software classes and functions, with examples of use. In addition, there are links for code access, executable directory and code documentation for the model. These provide access to model details.</p>
        <p>The descriptions cover the landscape class, its internal data, and the class hierarchy primarily associated with the landscape simulation. They also cover the timing and scheduling of actions and provide an overview of the landscape class interface. The Farm and Farm Manager classes responsible for simulating farming activities are presented together with descriptions of crop classes for crop management and weather and calendar classes.</p>
      </abstract>
      <kwd-group>
        <label>Key words:</label>
        <kwd>ALMaSS</kwd>
        <kwd>OOP</kwd>
        <kwd>Vegetation Growth Modelling</kwd>
      </kwd-group>
      <funding-group>
        <funding-statement>This work was partially supported by DeiC National HPC (UCloud, GenomeDK, LUMI) (g.a. DeiC-AU-N1-000025, DeiC-AU-L5-0011 and DeiC-AU-N2-2023015) and by the EcoStack project funded by the European Union's Horizon 2020 research and innovation programme under Grant Agreement no. 773554.</funding-statement>
      </funding-group>
    </article-meta>
    <notes>
      <sec sec-type="Citation" id="SECID0ESD">
        <title>Citation</title>
        <p>Topping CJ, Duan X (2024) ALMaSS Landscape and Farming Simulation: software classes and methods. Food and Ecological Systems Modelling Journal 5: е121215. <ext-link xlink:type="simple" ext-link-type="doi" xlink:href="10.3897/fmj.5.121215">https://doi.org/https://doi.org/10.3897/fmj.5.121215</ext-link></p>
      </sec>
    </notes>
  </front>
  <body>
    <sec sec-type="﻿Introduction" id="SECID0EBE">
      <title>﻿Introduction</title>
      <p>The Animal Landscape and Man Simulation System (<abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EHE">ALMaSS</abbrev>) (<xref ref-type="bibr" rid="B17">Topping et al. 2003</xref>) was developed in 1996 and first used in Danish projects in 2000. <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EPE">ALMaSS</abbrev> was a response to a request from the Danish Ministry for Energy and Environment to be able to answer unspecified questions related to the impact of human management on wildlife (<xref ref-type="bibr" rid="B16">Topping 2022</xref>). The underlying design of the landscape and associated classes has been rather constant over time and has been referenced in part in several publications over the years (e.g. <xref ref-type="bibr" rid="B17">Topping et al. 2003</xref>; <xref ref-type="bibr" rid="B25">Topping et al. 2018</xref>). However, a full description covering the landscape simulation components has not been provided, and recent updates to the system provide an opportunity to rectify this. The landscape and associated classes are large, and implementation in code is not trivial; as such, the descriptions provided in this overview are quite general. The aim is to communicate the approach rather than the details, which can be seen in the open-source code available from GitLab and linked to Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref>.</p>
      <p>In <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EFF">ALMaSS</abbrev>, the Landscape class essentially provides the environment into which other models can be run. It can, however, be used as a model in its own right, for example, to generate pesticide use maps. As a consequence of its role, the landscape must be able to supply all information needed by any other model in space and time. Other models thus define the role of the landscape class, but equally, this means that the full range of detailed data and mechanisms is beyond the scope of a single paper.</p>
      <p>There are two parts of the landscape model where two approaches can be taken. These areas are the implementation of pesticide use and its fate and the implementation of farm management. In these cases, the functionality described here is the basic functionality normally used when neither the pesticides nor the farm management are the objects of study, i.e. typical <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ELF">ALMaSS</abbrev> use. Specific cases of detailed pesticide implementation and use (e.g. <xref ref-type="bibr" rid="B24">Topping and Luttik 2017</xref>; <xref ref-type="bibr" rid="B25">Topping et al. 2018</xref>; <xref ref-type="bibr" rid="B30">Ziółkowska et al. 2021</xref>) and detailed farm management behaviour (e.g. <xref ref-type="bibr" rid="B12">Malawska et al. 2014</xref>; <xref ref-type="bibr" rid="B10">Malawska and Topping 2016</xref>, <xref ref-type="bibr" rid="B11">2018</xref>) can be consulted for details of these approaches. The pesticide implementation in <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EHG">ALMaSS</abbrev> is described by (<xref ref-type="bibr" rid="B14">Poulsen et al. 2023</xref>).</p>
      <p>In this paper, we describe the steps in linking external data to the internal representation in <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ERG">ALMaSS</abbrev>, the class structure implemented, and the processes covered by the core components of the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EVG">ALMaSS</abbrev> landscape model.</p>
    </sec>
    <sec sec-type="methods" id="SECID0EZG">
      <title>﻿Methods</title>
      <sec sec-type="﻿Overall design considerations" id="SECID0E4G">
        <title>﻿Overall design considerations</title>
        <p><abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EDH">ALMaSS</abbrev> needs to simulate landscapes of areas up to 50 × 50 km, with a typical size of 10 × 10 km, and at 1 m<sup>2</sup> resolution. The <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EJH">ALMaSS</abbrev> system and the landscape simulation part should support multiple models running simultaneously, and the modelled entities can be in the order of 50 million concurrent agents. Hence, computational efficiency in both memory and CPU speed is critical. However, at the same time, the system must be flexible to support the needs of models ranging from simple insects to human decision-making. To achieve efficiency and flexibility, <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ENH">ALMaSS</abbrev> uses a strong object-oriented paradigm (<abbrev xlink:title="object-oriented paradigm" id="ABBRID0ERH">OOP</abbrev>) in developing the code and relies on C++ development using relatively low-level programming code for efficient coding of algorithms and data structures. The <abbrev xlink:title="object-oriented paradigm" id="ABBRID0EVH">OOP</abbrev> paradigm also confers an important additional benefit: facilitating the management of a huge code structure. <abbrev xlink:title="object-oriented paradigm" id="ABBRID0EZH">OOP</abbrev> in C++ relies on the definition of classes to describe the behaviour of entities in the code. From these classes, descendent classes can be created, inheriting the functionality of the parents. This compartmentalises the code and allows modification of the classes without interfering with the functioning of the wider program. Classes interact with other entities through defined interfaces; thus, this is the only part of the class that needs to be cleanly integrated with the rest of the program. This approach also means new classes can be added without needing a major rewrite, either by extension of previous classes or modification of the interfaces of related components to allow their integration. In the following description, we refer to this class hierarchy to describe the major parts of the landscape simulation.</p>
      </sec>
      <sec sec-type="﻿The Landscape class" id="SECID0E4H">
        <title>﻿The Landscape class</title>
        <p>The Landscape Class is a fundamental component of <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EEAAC">ALMaSS</abbrev>, providing the interface for all environmental information required to run agent-based and subpopulation models. It effectively separates external data inputs from the implementation and internal Landscape interface.</p>
      </sec>
      <sec sec-type="﻿Landscape initialisation" id="SECID0EIAAC">
        <title>﻿Landscape initialisation</title>
        <p>The Landscape Class is initialised at the start of any <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EOAAC">ALMaSS</abbrev> simulation. This initialisation process sets up the primary data structures and classes used by the simulation, playing a crucial role in the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ESAAC">ALMaSS</abbrev> simulation system. The key aspects of this initialisation process include:</p>
        <list list-type="order">
          <list-item>
            <p>Map Representation - Creating an internal representation of the map and associated classes to manage spatial data and relationships efficiently.
</p>
          </list-item>
          <list-item>
            <p>FarmManager Setup - Establishing the FarmManager class and initialising all farm-related information, including farm locations, characteristics, and management practices.
</p>
          </list-item>
          <list-item>
            <p>Behavioural Functions - Implementing miscellaneous functions associated with agent behaviour, such as movement patterns, resource utilisation, and interactions with other agents and the environment.
</p>
          </list-item>
          <list-item>
            <p>Data Modification and Output Generation - Providing functionalities to modify input data as needed during the simulation and generate output data for subsequent analysis and visualisation.
</p>
          </list-item>
        </list>
        <p>The Landscape Class is the backbone of the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E5AAC">ALMaSS</abbrev> simulation environment, ensuring that all agents and subpopulations can access the necessary environmental information and interact realistically within the simulated landscape.</p>
      </sec>
      <sec sec-type="﻿Creation of internal map data structure" id="SECID0ECBAC">
        <title>﻿Creation of internal map data structure</title>
        <p>The method used to represent the data as a map inside <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EIBAC">ALMaSS</abbrev> uses the flyweight design pattern (<xref ref-type="bibr" rid="B5">Gamma et al. 1994</xref>). This algorithm saves a great deal of space in <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EQBAC">ALMaSS</abbrev> by representing the landscape as a set of internally homogenous polygons (e.g., a 1 Ha field). Thus, the flyweight implementation avoids complex polygon calculations, e.g., for the movement of animals, by mapping the polygons on a raster. Each element of the raster map is then a reference to the polygon where the complex descriptive data is stored. Thus, a 1Ha field, it would use 100 × 100 cells in the raster, each with a value pointing to that field’s data; this is one reference per m<sup>2</sup>. The field data would contain multiple elements such as the vegetation type, height, cover, biomass, farm manager, spilt grain etc.. Storing all this data at each raster element would be highly memory-consumptive since all data would be duplicated at every m<sup>2</sup>. Efficiency is further improved because the field polygon data is stored only in one place; therefore, updating this is efficient in CPU time. The class structure used to support this is presented in detail below. In this structure, each polygon is an instance of a class derived from the <abbrev xlink:title="Landscape Element" id="ABBRID0EYBAC">LE</abbrev> Class (Landscape Element). <abbrev xlink:title="Landscape Element" id="ABBRID0E3BAC">LE</abbrev> is part of a class hierarchy, so a polygon can exhibit specific behaviour depending upon its descendent type (e.g., the Field class inherits vegetative characteristics from the Veg_Element class, which inherits all behaviour common to all landscape elements from the <abbrev xlink:title="Landscape Element" id="ABBRID0EACAC">LE</abbrev> class, then it adds specific field polygon behaviour).</p>
        <p>The map structure is created based on the information passed from the <abbrev xlink:title="polygon reference" id="ABBRID0EGCAC">PolyRef</abbrev> and .lsb files resulting from the external data handling procedure.</p>
        <p>The .lsb file is a landscape binary format file that lists the size and location of the landscape map and holds the reference number to the polygon that covers the majority of the cell for every 1 m<sup>2</sup> cell. This number is linked to the <abbrev xlink:title="polygon reference" id="ABBRID0EOCAC">PolyRef</abbrev> file. The .lsb file, therefore, provides the topographic map of the landscape and is read into <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ESCAC">ALMaSS</abbrev> to create the flyweight data structure described above.</p>
        <p>The format of the <abbrev xlink:title="polygon reference" id="ABBRID0EYCAC">PolyRef</abbrev> file is to list one row for each polygon in the landscape and for the area covered by these to have 100% coverage for the rectangle describing the landscape. An example of the top of a <abbrev xlink:title="polygon reference" id="ABBRID0E3CAC">PolyRef</abbrev> file is shown in Table <xref ref-type="table" rid="T1">1</xref>. Example of a polygon reference (<abbrev xlink:title="polygon reference" id="ABBRID0EEDAC">PolyRef</abbrev>) file input from a Danish landscape denoted by DK in the first row which is followed by the location (Latitude and Longitude) of the NE corner of the landscape that this file refers to. The second row is the number of polygons defined in the file. Polytype is a standard <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EIDAC">ALMaSS</abbrev> code for this polygon type. PolyRefNum is a unique identifier for the polygon in this map. Area is the area in m<sup>2</sup>. FarmRef is a reference to the farm that owns the polygon, if any (or -1 if there is not farm associated with it). Unsprayed Margin Ref indicates the <abbrev xlink:title="polygon reference" id="ABBRID0EODAC">PolyRef</abbrev> for the associated unsprayed margin, if any (or -1). Soiltype is the soil type under the polygon as the most common type, or -1 if not known. Centroid X and Centroid Y are the coordinates of the centroid of the polygon. Openness, Elevation, Slope and Aspect are not used in this example but can be included if needed.1. The PolyType denotes the TypeOfLandscaleElement (<abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0ESDAC">TOLE</abbrev>) class this polygon belongs to, and the PolyRefNum is a unique (for this map) identifier for this polygon. Normally, after an initial <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EWDAC">ALMaSS</abbrev> load and run, these will be renumbered automatically to be 0 to one less than the number of polygons. All other columns are attributes of the particular polygon. The FarmRef is of key importance. This reference indicates either -1 if this polygon is not part of a farm or a reference number of a farm to which the polygon belongs and is managed. UnSprayedMarginRef indicates whether the polygon (if it is a field) has an unsprayed field margin, and SoilType denotes the soil type as an integer reference (Table <xref ref-type="table" rid="T2">2</xref>. <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E5DAC">ALMaSS</abbrev> soil types as referenced inside <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ECEAC">ALMaSS</abbrev> code with their FAO classification, agricultural usage and class for management of crop management.2). The other attributes denote its elevation, slope and aspect, and openness. Openness is a measure of distance to the nearest tall or large artificial object from the polygon’s centre point (CentroidX &amp; CentroidY). These values are optional, but <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EGEAC">ALMaSS</abbrev> will always create the centre point on the first run for a new landscape. The PolyRefNum becomes the values (starting from 0) stored in the raster to support the flyweight algorithm. The .lsb file is essentially a raster map of PolyRefNum at 1-m resolution in binary format. Thus, when loading the files a representation of the landscape map is loaded to memory and internally linked, via the PolyRefNum, to an object representing each polygon. This object will be descended from the Landscape Element (<abbrev xlink:title="Landscape Element" id="ABBRID0EKEAC">LE</abbrev>) class (see below), the type dependent upon the <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0EOEAC">TOLE</abbrev> value it contains.</p>
        <table-wrap id="T1" position="float" orientation="portrait">
          <label>Table 1.</label>
          <caption>
            <p>Example of a polygon reference (<abbrev xlink:title="polygon reference" id="ABBRID0E2EAC">PolyRef</abbrev>) file input from a Danish landscape denoted by DK in the first row which is followed by the location (Latitude and Longitude) of the NE corner of the landscape that this file refers to. The second row is the number of polygons defined in the file. Polytype is a standard <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E6EAC">ALMaSS</abbrev> code for this polygon type. PolyRefNum is a unique identifier for the polygon in this map. Area is the area in m<sup>2</sup>. FarmRef is a reference to the farm that owns the polygon, if any (or -1 if there is not farm associated with it). Unsprayed Margin Ref indicates the <abbrev xlink:title="polygon reference" id="ABBRID0EFFAC">PolyRef</abbrev> for the associated unsprayed margin, if any (or -1). Soiltype is the soil type under the polygon as the most common type, or -1 if not known. Centroid X and Centroid Y are the coordinates of the centroid of the polygon. Openness, Elevation, Slope and Aspect are not used in this example but can be included if needed.</p>
          </caption>
          <table id="TID0EZQAG" rules="all">
            <tbody>
              <tr>
                <th rowspan="1" colspan="12">DK Latitude 57.3801 Longitude 9.83159</th>
              </tr>
              <tr>
                <th rowspan="1" colspan="12">41058</th>
              </tr>
              <tr>
                <th rowspan="1" colspan="1">PolyType</th>
                <th rowspan="1" colspan="1">PolyRefNum</th>
                <th rowspan="1" colspan="1">Area</th>
                <th rowspan="1" colspan="1">Farm Ref</th>
                <th rowspan="1" colspan="1">UnSprayed Margin Ref</th>
                <th rowspan="1" colspan="1">SoilType</th>
                <th rowspan="1" colspan="1">Openness</th>
                <th rowspan="1" colspan="1">CentroidX</th>
                <th rowspan="1" colspan="1">CentroidY</th>
                <th rowspan="1" colspan="1">Elevation</th>
                <th rowspan="1" colspan="1">Slope</th>
                <th rowspan="1" colspan="1">Aspect</th>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">123</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">165</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">260</td>
                <td rowspan="1" colspan="1">17</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">130</td>
                <td rowspan="1" colspan="1">1</td>
                <td rowspan="1" colspan="1">311</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">3</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">366</td>
                <td rowspan="1" colspan="1">44</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">130</td>
                <td rowspan="1" colspan="1">2</td>
                <td rowspan="1" colspan="1">195</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">421</td>
                <td rowspan="1" colspan="1">23</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">13</td>
                <td rowspan="1" colspan="1">3</td>
                <td rowspan="1" colspan="1">1805</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">3</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">442</td>
                <td rowspan="1" colspan="1">647</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">13</td>
                <td rowspan="1" colspan="1">4</td>
                <td rowspan="1" colspan="1">25</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">430</td>
                <td rowspan="1" colspan="1">9</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">210</td>
                <td rowspan="1" colspan="1">5</td>
                <td rowspan="1" colspan="1">289</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">438</td>
                <td rowspan="1" colspan="1">14</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">210</td>
                <td rowspan="1" colspan="1">6</td>
                <td rowspan="1" colspan="1">313</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">536</td>
                <td rowspan="1" colspan="1">31</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">98</td>
                <td rowspan="1" colspan="1">7</td>
                <td rowspan="1" colspan="1">224</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">656</td>
                <td rowspan="1" colspan="1">11</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">207</td>
                <td rowspan="1" colspan="1">8</td>
                <td rowspan="1" colspan="1">55</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">654</td>
                <td rowspan="1" colspan="1">13</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">210</td>
                <td rowspan="1" colspan="1">9</td>
                <td rowspan="1" colspan="1">8606</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">3</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">731</td>
                <td rowspan="1" colspan="1">23</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">110</td>
                <td rowspan="1" colspan="1">10</td>
                <td rowspan="1" colspan="1">1172</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">-1</td>
                <td rowspan="1" colspan="1">3</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">874</td>
                <td rowspan="1" colspan="1">13</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">0</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <table-wrap id="T2" position="float" orientation="portrait">
          <label>Table 2.</label>
          <caption>
            <p><abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E2DAE">ALMaSS</abbrev> soil types as referenced inside <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E6DAE">ALMaSS</abbrev> code with their FAO classification, agricultural usage and class for management of crop management.</p>
          </caption>
          <table id="TID0E6FBG" rules="all">
            <tbody>
              <tr>
                <th rowspan="1" colspan="1">Agricultural Usage</th>
                <th rowspan="1" colspan="1"><abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EPEAE">ALMaSS</abbrev> Code SoilType</th>
                <th rowspan="1" colspan="1">FAO Texture Code</th>
                <th rowspan="1" colspan="1">Description</th>
                <th rowspan="1" colspan="1">Crop management types</th>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">None</td>
                <td rowspan="1" colspan="1">0</td>
                <td rowspan="1" colspan="1">-</td>
                <td rowspan="1" colspan="1">Water</td>
                <td rowspan="1" colspan="1">-</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">None</td>
                <td rowspan="1" colspan="1">1</td>
                <td rowspan="1" colspan="1">S</td>
                <td rowspan="1" colspan="1">Sand (unspecified)</td>
                <td rowspan="1" colspan="1">Light (sandy type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Poor</td>
                <td rowspan="1" colspan="1">2</td>
                <td rowspan="1" colspan="1">LS</td>
                <td rowspan="1" colspan="1">Loamy swand</td>
                <td rowspan="1" colspan="1">Light (sandy type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Poor</td>
                <td rowspan="1" colspan="1">3</td>
                <td rowspan="1" colspan="1">SL</td>
                <td rowspan="1" colspan="1">Sandy loam</td>
                <td rowspan="1" colspan="1">Light (sandy type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Average</td>
                <td rowspan="1" colspan="1">4</td>
                <td rowspan="1" colspan="1">SCL</td>
                <td rowspan="1" colspan="1">Sandy clay loam</td>
                <td rowspan="1" colspan="1">Light (sandy type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Average</td>
                <td rowspan="1" colspan="1">5</td>
                <td rowspan="1" colspan="1">SiL</td>
                <td rowspan="1" colspan="1">Silt loam</td>
                <td rowspan="1" colspan="1">Average (silty loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">6</td>
                <td rowspan="1" colspan="1">SiCL</td>
                <td rowspan="1" colspan="1">Silty clay loam</td>
                <td rowspan="1" colspan="1">Average (silty loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">7</td>
                <td rowspan="1" colspan="1">CL</td>
                <td rowspan="1" colspan="1">Clay loam</td>
                <td rowspan="1" colspan="1">Heavy (clay &amp; loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">8</td>
                <td rowspan="1" colspan="1">L</td>
                <td rowspan="1" colspan="1">Loam</td>
                <td rowspan="1" colspan="1">Heavy (clay &amp; loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">9</td>
                <td rowspan="1" colspan="1">Si</td>
                <td rowspan="1" colspan="1">Silt</td>
                <td rowspan="1" colspan="1">Average (silty loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">10</td>
                <td rowspan="1" colspan="1">SC</td>
                <td rowspan="1" colspan="1">Sandy clay</td>
                <td rowspan="1" colspan="1">Heavy (clay &amp; loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">11</td>
                <td rowspan="1" colspan="1">SiC</td>
                <td rowspan="1" colspan="1">Silty clay</td>
                <td rowspan="1" colspan="1">Heavy (clay &amp; loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">12</td>
                <td rowspan="1" colspan="1">C</td>
                <td rowspan="1" colspan="1">Clay</td>
                <td rowspan="1" colspan="1">Heavy (clay &amp; loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">13</td>
                <td rowspan="1" colspan="1">HC</td>
                <td rowspan="1" colspan="1">Heavy Clay</td>
                <td rowspan="1" colspan="1">Heavy (clay &amp; loam type)</td>
              </tr>
              <tr>
                <td rowspan="1" colspan="1">Good</td>
                <td rowspan="1" colspan="1">14</td>
                <td rowspan="1" colspan="1">O</td>
                <td rowspan="1" colspan="1">Organic &amp; peat</td>
                <td rowspan="1" colspan="1">Organic &amp; peat</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec sec-type="﻿Landscape class Scheduling" id="SECID0EMMAE">
        <title>﻿Landscape class Scheduling</title>
        <p>The basic timestep for landscape operations is one day. This means that several operations must be carried out at the start of each simulation day. These collectively update the landscape simulation so the other <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ESMAE">ALMaSS</abbrev> models can access the data specific to that day on completion. These operations fall into four main types, 1) updating the calendar, 2) updating the weather, 3) updating the farming, and 4) updating the polygon internal behaviour (through updating all <abbrev xlink:title="Landscape Element" id="ABBRID0EWMAE">LE</abbrev> objects). Each of these four areas are detailed below. Date and weather are controlled by the Calendar and Weather classes, respectively, and are described in their respective sections. Farming is a complex subject area of the landscape simulation and is detailed below (See Farm, FarmManager and Crop classes), however, the landscape is responsible for calling the FarmManager class daily and asking it to update all the farms. The Landscape controls the link between updating the polygons and the Landscape class by calling the ‘Tick’ function for each polygon. The Tick function can be implemented differently for different base <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0E1MAE">TOLE</abbrev> types within the <abbrev xlink:title="Landscape Element" id="ABBRID0E5MAE">LE</abbrev> class hierarchy but is executed correctly by <abbrev xlink:title="object-oriented paradigm" id="ABBRID0ECNAE">OOP</abbrev> polymorphism.</p>
      </sec>
      <sec sec-type="﻿The Landscape class interface" id="SECID0EGNAE">
        <title>﻿The Landscape class interface</title>
        <p>The Landscape Class has an extensive interface function set, which provides the rest of the simulation with access to landscape data or data from <abbrev xlink:title="Landscape Element" id="ABBRID0EMNAE">LE</abbrev> instances or Farms. Using this interface rather than direct access to the data simplifies the maintenance of the code by allowing the implementation within the Landscape and associated classes to be altered without affecting the rest of the simulation models.</p>
      </sec>
      <sec sec-type="﻿LE class hierarchy" id="SECID0EQNAE">
        <title>﻿LE class hierarchy</title>
        <p>The <abbrev xlink:title="Landscape Element" id="ABBRID0EWNAE">LE</abbrev> class (Landscape Element) is the base class for describing polygons in the landscape. Descendent classes implement specific behaviour for different <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0E1NAE">TOLE</abbrev> types. This hierarchy (Fig. <xref ref-type="fig" rid="F1">1</xref>: The landscape element class hierarchy based on the <abbrev xlink:title="Landscape Element" id="ABBRID0ECOAE">LE</abbrev> base class. All types of landscape element are classified as being in one of these classes. Those with specific behaviour are placed in the lowest tier whilst those represented by generic types only differing in attribute values are placed in the NonVegElement and VegElement class.1) uses the polymorphism concept of <abbrev xlink:title="object-oriented paradigm" id="ABBRID0EGOAE">OOP</abbrev>, with most of the functionality of the descendent classes being implemented in base classes but specific details implemented in descendants. However, relying on this class structure and the <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0EKOAE">TOLE</abbrev> types limits efficiency as the total number of <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0EOOAE">TOLE</abbrev> types is quite high (currently 117, with multiple <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0ESOAE">TOLE</abbrev> types represented by individual <abbrev xlink:title="Landscape Element" id="ABBRID0EWOAE">LE</abbrev> descendent classes). Consequently, many class definitions, bloating code, and relatively long conditional statements would be required to use the <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0E1OAE">TOLE</abbrev> type or class type as a viable way to work with habitats in the landscape.</p>
        <fig id="F1" position="float" orientation="portrait">
          <object-id content-type="doi">10.3897/fmj.5.121215.figure1</object-id>
          <object-id content-type="arpha">3D030364-EEE4-5B6E-ACC3-A8C39826EFA7</object-id>
          <label>Figure 1.</label>
          <caption>
            <p>The landscape element class hierarchy based on the <abbrev xlink:title="Landscape Element" id="ABBRID0EGPAE">LE</abbrev> base class. All types of landscape element are classified as being in one of these classes. Those with specific behaviour are placed in the lowest tier whilst those represented by generic types only differing in attribute values are placed in the NonVegElement and VegElement class.</p>
          </caption>
          <graphic xlink:href="fmj-05-e121215-g001.jpg" position="float" orientation="portrait" xlink:type="simple" id="oo_1080621.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1080621</uri>
          </graphic>
        </fig>
        <p>The problem of multiple types is avoided by adding classificatory attributes and the relatively short class hierarchy in Fig. <xref ref-type="fig" rid="F1">1</xref>. The main classificatory attribute is the <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0EVPAE">TOLE</abbrev> type, thus a CorkOakForest would be a <abbrev xlink:title="Landscape Element" id="ABBRID0EZPAE">LE</abbrev>-&gt;VegElement-&gt;ForestElement class, with the attribute of type CorkOakForest. Creating and assigning further attributes is flexible, but standard attributes denote wooded vegetation, forest, grassland, urban, and tall vegetation. This classification based on <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0E4PAE">TOLE</abbrev> attributes is continued with a further detailing of vegetation types. TOVs (Type of Vegetation) are used to identify the vegetation type present on a polygon. For some types this is fixed e.g., a grazed permanent grassland will always be derivative of TOV PermanentGrassGrazed, but for others it is the management that decides the vegetation type (e.g., for arable fields with crop rotation). Similar to TOVs, classification attributes are used for TOVs (of which there are currently 321) to make identification of particular types easy, e.g., grassland, cereal, maize. These attributes allow, e.g., a vole model, to interrogate a polygon to determine if it is a potentially suitable habitat by asking if it’s grassland, rather than having to ask whether the polygon is each type of grassland included in the <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0EBQAE">TOLE</abbrev> and TOV types.</p>
        <p>Flexibility is further increased through ‘user-defined’ attributes that individual models can use to create specific combinations of <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0EHQAE">TOLE</abbrev> and TOVs. For efficiency, these attributes are defined at run-time and written into the attributes of polygons on creation of the Landscape instance. The <abbrev xlink:title="Landscape Element" id="ABBRID0ELQAE">LE</abbrev> and descendent classes have a wide range of functionality. For example, the road classes can represent the traffic loads at any given point in time.</p>
        <p>A major part of the <abbrev xlink:title="Landscape Element" id="ABBRID0ERQAE">LE</abbrev> functionality is modelling vegetation growth (see below). Other <abbrev xlink:title="Landscape Element" id="ABBRID0EVQAE">LE</abbrev> functionality is targeted at supporting specific other models. There is a sub-model for general insect biomass, others for decay rates of spilled grain and good forage resources, digestibility of vegetation, and a new set of functionality under development for supporting pollinator resource modelling. The design here relies on the sensible inclusion of only those functionalities actually in use for any given simulation, following the concept of avoiding false inclusions but also false exclusions (<xref ref-type="bibr" rid="B23">Topping et al. 2015</xref>). This means that if a field vole simulation is running there is no need to calculate the insect biomass, but that calculation of vegetation digestibility is needed instead. This behaviour is a dynamic choice taken by the simulation based on the number and types of models extant after start-up.</p>
        <p>As mentioned above, some <abbrev xlink:title="Landscape Element" id="ABBRID0E6QAE">LE</abbrev> descendent classes have special behaviours. These are largely related to management activities, such as mowing roadside verges or cutting grass. Of these, the Field class has a specific role in providing functionality related to rotational crops. This functionality includes recording the current, past and planned next crop and some special behaviour simulating the creation of tramlines when the tractor drives into the field and their subsequent closure as vegetation grows.</p>
      </sec>
      <sec sec-type="﻿Vegetation growth modelling" id="SECID0EDRAE">
        <title>﻿Vegetation growth modelling</title>
        <p>One key part of implementing the external data in the simulation is the simulation of vegetation growth. Any class with VegElement as the base class will simulate vegetation development on a daily basis. The underlying method is described by (<xref ref-type="bibr" rid="B19">Topping and Olesen 2005</xref>) and relates the development of vegetation in terms of height and leaf area index (<abbrev xlink:title="leaf area index" id="ABBRID0ENRAE">LAI</abbrev>) to the day-degrees experienced since sowing (or the beginning of the year). Both green <abbrev xlink:title="leaf area index" id="ABBRID0ERRAE">LAI</abbrev> and total <abbrev xlink:title="leaf area index" id="ABBRID0EVRAE">LAI</abbrev> are calculated. Multiple vegetation curves are defined for <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EZRAE">ALMaSS</abbrev>, each represented by a set of consecutive inflection points and gradients of change per day degree between each of these points.</p>
        <p>Further flexibility is obtained by creation of different growth phases, describing different periods of the plant growth or responses to external influences. Five phases are currently implemented, and can be used when defining a growth curve as needed. These are 1) From January 1<sup>st</sup>; 2) From Sowing; 3) From March 1<sup>st</sup>; 4) After Harvest/cut; 5) After Second Harvest/cut. Complex patterns can be simulated by combining the growth curve phases differently. For example, an autumn sown wheat crop might have: From sowing in September, followed by January to March, followed by From March, followed by After Harvest. Each TOV type has to have an associated plant growth curve, but this curve may be used by multiple TOVs (e.g., most variants of barley have the same growth curve). During the simulation, major management events such as harvest or cutting events will trigger an immediate jump to a different growth phase. In this way the flexible timing of the crop management can be taken into account.</p>
        <p><abbrev xlink:title="leaf area index" id="ABBRID0EFSAE">LAI</abbrev> is converted to cover through application of Beer’s Law to calculate vegetation cover. The equation using Beer’s law to calculate the cover (<italic>C</italic>) <italic>C</italic> = 1−exp(−<italic>k</italic>*<abbrev xlink:title="leaf area index" id="ABBRID0EPSAE">LAI</abbrev>) where <italic>k</italic> is the light extinction coefficient and is assumed for cover to be 0.6, and <abbrev xlink:title="leaf area index" id="ABBRID0EVSAE">LAI</abbrev> is the total <abbrev xlink:title="leaf area index" id="ABBRID0EZSAE">LAI</abbrev>. This value is towards the high end of the range for winter wheat (Soleymani 2016) and was chosen as a reasonable estimate for most vegetation. Change in biomass is implemented as described by (<xref ref-type="bibr" rid="B19">Topping and Olesen 2005</xref>) using the green <abbrev xlink:title="leaf area index" id="ABBRID0EBTAE">LAI</abbrev>, the amount of radiation and a <italic>k</italic> of 0.4. Biomass, height, and <abbrev xlink:title="leaf area index" id="ABBRID0EHTAE">LAI</abbrev> values are also further used to determine species-specific properties of vegetation, e.g., the vegetation digestibility experienced by a hare (<xref ref-type="bibr" rid="B20">Topping et al. 2010</xref>). Deviations in vegetation biomass due to other interventions e.g., grazing, result in a slow regrowth of the vegetation towards the point it would have reached with no intervention.</p>
      </sec>
      <sec sec-type="﻿Farm, FarmManager and Crop classes" id="SECID0EPTAE">
        <title>﻿Farm, FarmManager and Crop classes</title>
        <p>Agricultural simulation is a large part of the Landscape functionality. This is achieved by defining a hierarchy of interacting objects starting with a FarmManager class which controls all the lists of farms and their scheduling, the Farm class which represents instances of individual farms, and the Crop class which defines the management of each crop grown on farm fields.</p>
      </sec>
      <sec sec-type="﻿The Farm Manager class" id="SECID0EUTAE">
        <title>﻿The Farm Manager class</title>
        <p>This class is an administrative class controlling the list of farms and is involved in scheduling farming actions. This is called once per day from the Landscape as part of the daily updating of the landscape simulation. The FarmManager is created with the Landscape class from the FarmRefs.txt file generated during the external data handling process. This file contains a list of all farms together with a reference for their farm type, e.g., conventional arable farm, and is used by the FarmManager to create and populate the list of farm objects in the simulation. After the creation of the farms the FarmManager creates a centre point for each farm (centroid) which can be used by other objects in the simulation. The FarmManager class itself has no further functionality but acts as an interface to farm information, providing lists and data as necessary to support simulation elsewhere in <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E1TAE">ALMaSS</abbrev>, often using the farm reference number from the FarmRefs.txt as an index to the farm of interest.</p>
      </sec>
      <sec sec-type="﻿The Farm class" id="SECID0E5TAE">
        <title>﻿The Farm class</title>
        <p>The Farm Class is the organising class for each individual farm and its data. The Farm object is created, and its management is initialised by the FarmManager on start-up. Each farm consists primarily of a list of fields for which it is the owner/manager. Some of these fields may be designated as permanent crops (e.g. pasture or trees such as orchards), and others will be fields in a crop rotation. Depending on the level of information present in the external data sources, permanent crops may be identified individually and exist as separate TOLEs in the map or may be represented by a proportion of the farm area. In the latter case, the allocation of permanent crops is made to the farm fields to best match the proportion of area under those crops reported to the CAP subsidy scheme used to create the underlying data. On construction, the farm object will be linked to all its fields via a list of pointers. The farm will also be allocated a Farmer object, but this class is not needed to run the standard <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EEUAE">ALMaSS</abbrev> landscape simulation.</p>
        <p>After the management’s initialisation, the Farm object will allocate a crop to each field. Permanent crops have a fixed vegetation type, but rotational crops must be chosen. In the rotational case, each field will be randomly allocated one crop from the crop rotation for the farm (which is a function of the farm type). This rotation is typically 100 crops long and represents the area covered by each crop type in one-percentage blocks. The crop rotation needs to be specified by the user and associated with the farm type. This is not an automatic process but uses external data as the basis for developing a ‘.rot’ file, i.e., the list of crops in the rotation. Before a simulation can be run a .rot file must exist and be associated with each farm type present in the landscape.</p>
        <p>Each crop type (at TOV) has a specific management that is defined by a crop management code file. This management causes the execution of farm activities such as ploughing. These farm activities (called FarmToDo in <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ELUAE">ALMaSS</abbrev>) are a property of the Farm class. Each FarmToDo has the following basic behaviour when called:</p>
        <list list-type="bullet">
          <list-item>
            <p>Check whether conditions are suitable for the operation, if not exit
</p>
          </list-item>
          <list-item>
            <p>Apply any changes to vegetation structure e.g., remove it for ploughing, cut to 10 cm for harvest.
</p>
          </list-item>
          <list-item>
            <p>Apply any mortalities to the general insect population model that may be needed
</p>
          </list-item>
          <list-item>
            <p>Record that this type of operation was carried out on the field polygon in a history of events
</p>
          </list-item>
          <list-item>
            <p>Record that this was the last FarmToDo carried out
</p>
          </list-item>
          <list-item>
            <p>Repeat these measures for any associated unsprayed field margins (counted as separate polygons).
</p>
          </list-item>
        </list>
        <p>Storing the last FarmToDo as an easily accessible ‘last event’ and a traced history provides maximum flexibility for other models to access management history.</p>
      </sec>
      <sec sec-type="﻿Crop classes" id="SECID0EYUAE">
        <title>﻿Crop classes</title>
        <p>Crop classes hold the information necessary to manage a farmed crop. This may be an arable crop in rotation or a permanent crop, including grazed grassland. The basis for the development of a crop class is a table of events and a resulting flow diagram which describes farming operations with conditions for implementation (e.g., related to weather or crop growth) and periods during which they are implemented. The diagram follows 100% of farmers starting from any post-harvest operations from the previous crop until the end of harvest or any post-harvest operations for this crop. At each decision branch, a certain proportion of farmers will be allocated to each possible path. If this allocation is based on probability, the overall consistency over time is maintained, meaning that if 100% of farmers start, 100% will also reach the end of the plan.</p>
        <p>There is only one instance of each crop class. This is done to encapsulate the field polygon information in the <abbrev xlink:title="Landscape Element" id="ABBRID0E6UAE">LE</abbrev> class instance (i.e., the field where the crop is grown). In this way, duplicate data is avoided, and it is clear that any cropping information needed is accessed via the <abbrev xlink:title="Landscape Element" id="ABBRID0EDVAE">LE</abbrev> class interface. All functions of the crop class are contained in the single instance of that class, which means that all necessary data to run each crop on each field must be passed to this crop object each time it is called. This data is passed using an event queue containing pointers to the farm owner object and the field through which the data can be accessed. When a crop is started on a field, an initiation event is sent to the queue; this is a timed event that may be for the next time step or months or more. When this event is triggered, the crop management code starts. The farm management to be carried out then generates new events placed on the stack in the same way; they can also fork multiple events from a single point. The management plan is thus very flexible and runs as a multi-threaded program. Only one thread (designated the main thread) reaches the end of the plan’s execution, returning a ‘Done’ signal on completion, which then triggers choosing the next crop in the rotation for that field and sending a new initiation event to the queue. The other threads may end or re-join the main thread (Fig. <xref ref-type="fig" rid="F2">2</xref>). Very complex management plans can be constructed using this method. Each farm event may have a probability of being applied and multiple dependencies on field information, such as soil or the history of events for that field and season. This control structure results in the crop management becoming dynamic depending on the farming context, which changes during the simulation run.</p>
        <fig id="F2" position="float" orientation="portrait">
          <object-id content-type="doi">10.3897/fmj.5.121215.figure2</object-id>
          <object-id content-type="arpha">E1B6F9E8-F5AF-5F24-BEBF-149F29162A31</object-id>
          <label>Figure 2.</label>
          <caption>
            <p>A simple example crop management scheme with parallel threads of execution, one of which is dependent on farm type (arable or stock farms). The watering thread terminates and all other threads lead to harvest.</p>
          </caption>
          <graphic xlink:href="fmj-05-e121215-g002.jpg" position="float" orientation="portrait" xlink:type="simple" id="oo_1080622.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1080622</uri>
          </graphic>
        </fig>
        <p>The range of conditions related to branching in the crop is large. These may link to the farm type as in the example in Fig. <xref ref-type="fig" rid="F2">2</xref>: A simple example crop management scheme with parallel threads of execution, one of which is dependent on farm type (arable or stock farms). The watering thread terminates and all other threads lead to harvest.2, but equally may be related to vegetation characteristics, weather conditions, soil conditions, simple probability or a combination of these. A common controlling structure is to use conditions based on whether previous operations have been done e.g., if pesticide was just sprayed do not water, or if ‘herbicide treatment 1’ was carried out, consider ‘herbicide treatment 2’. The overall result is a very flexible and descriptive program structure.</p>
        <p>There is an interplay between the vegetation growth curves and management plans. Some events, such as harvest, will trigger a change in the vegetation growth phase, thus altering crop growth.</p>
      </sec>
      <sec sec-type="﻿Weather and Calendar classes" id="SECID0E5VAE">
        <title>﻿Weather and Calendar classes</title>
        <p><abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EEWAE">ALMaSS</abbrev> does not simulate weather, but instead, it’s an input. Weather data consists of hourly mean temperature, precipitation, wind speed, wind direction, soil temperature, snow depth, humidity, and radiation. Weather is based on a historical record for an area and is part of the external data procedure needed for <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EIWAE">ALMaSS</abbrev>. Because it is a historical record, it is usually looped for long simulations. Consequently, models in the system can request weather information for periods during the simulation, even for the future. For example, a crop code may trigger a farm management event requiring five days without rain before execution.</p>
        <p>The Weather Class interface provides access to all weather data as immediate weather data (at the point in time the function is called), at a date, particular hour, day, or over a specific period. Thus, the weather class can be viewed as a non-dynamic data supplier.</p>
        <p>The Calendar class performs timekeeping for <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EPWAE">ALMaSS</abbrev>. Depending on the time step used (typically 1 day to 10 minutes for animals), the Calendar class will provide the current time, as well as general functionality related to the number of days per month and indexing for time-dependent function calls (e.g., supplying rain over a period of time). The calendar class is a critical part of the crop management functionality since it supplies Julian days and the simulation date, both used in the Crop Class codes.</p>
        <p>The Calendar class has a detailed set of functions for calculating the sunrise and sunset time. This calculation is done automatically from the latitude and longitude supplied during the landscape generation process. This position is used to calculate the time at which the sun drops below or comes above the horizon based on an angle (90° for official and 108° for astronomical).</p>
      </sec>
    </sec>
    <sec sec-type="﻿Outcomes" id="SECID0EUWAE">
      <title>﻿Outcomes</title>
      <p><abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E1WAE">ALMaSS</abbrev> landscape simulation attempts to find a balance between the inclusion of necessary detail to support the other system models, flexibility to change or include more, and efficiency at run-time. A further consideration is that <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E5WAE">ALMaSS</abbrev> was designed for ecologists, not software engineers, and the majority of contributors to the models are not professional programmers. Consequently, code should be written as simply as possible to maximise understanding.</p>
      <p>Using the approach described above allows <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EEXAE">ALMaSS</abbrev> to simulate a landscape in considerable detail. A 10 × 10 km landscape in Denmark typically has upwards of 40,000 polygons and 150–200 farms represented. Simulation run-time for the landscape with no animals is fast, approximately one year per second on an average PC. During this year, all farm operations are carried out daily, and all vegetated elements model their vegetation biomass, <abbrev xlink:title="leaf area index" id="ABBRID0EIXAE">LAI</abbrev>, and height daily, as well as digestibility, insect biomass, and other sub-models daily. RAM is a limiting factor, with landscapes of 50 × 50 km requiring a computer with 64GM RAM to run animal simulations. At 50 × 50 km, the raster map alone requires 20GB of memory. However, there is linear scaling between area and run-time for the landscape simulation.</p>
      <p>The main aim of the landscape is to serve other simulation components with data requirements. Communication is done via interface functions such as SupplyVegPhase(int a_poly), which returns the current vegetation growth phase for an <abbrev xlink:title="Landscape Element" id="ABBRID0EOXAE">LE</abbrev>. Direct polygon calls are the fastest way to access the data with the index to the polygon data array being provided as a_poly. However, direct calls are not always possible, and access has to be via the x,y coordinate system to determine the polygon index. Efficiency here is lower since a_poly must be reached via the raster map using x+(yW), where W is the width of the landscape in m. The need for range checks at run-time for these calls typically results in this being the low-level time-sensitive operation when running an animal model. Despite these problems, <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ESXAE">ALMaSS</abbrev> can cope with millions of concurrent agents and, for some simulations, up to 50 million.</p>
      <p>A key feature of the landscape simulation, as carried out using this modular software process, is the ability to upgrade any component as necessary without compromising the model’s integrity. This design allows for the continued testing and development of the code to be possible.</p>
      <p>Functionally, the design facilitates the evaluation of complex questions such as spatially differentiated management (e.g., by application through farm type) or complex systems dynamics operating through long-chain interactions, resulting in emergent properties. For example, in <xref ref-type="bibr" rid="B11">Malawska and Topping (2018)</xref>, the looped chain sequence of policy-&gt;farmer-&gt;pesticide-&gt;insects-&gt;birds-&gt;farmer-&gt;pesticides…. was implemented.</p>
    </sec>
    <sec sec-type="﻿Discussion" id="SECID0E4XAE">
      <title>﻿Discussion</title>
      <p>The <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EDYAE">ALMaSS</abbrev> landscape model is a highly detailed landscape simulator that is specifically designed to support <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EHYAE">ALMaSS</abbrev> model simulations of species and people. As such it does not have a direct analogue in the scientific literature. <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ELYAE">ALMaSS</abbrev> is designed to represent actual landscape areas, but could be used in conjunction with landscape generators (<xref ref-type="bibr" rid="B9">Langhammer et al. 2019</xref>), and indeed has been used to simulate simple geometric and generated maps (<xref ref-type="bibr" rid="B7">Hoye et al. 2012</xref>; <xref ref-type="bibr" rid="B21">Topping and Lagisz 2012</xref>). In its current form, the model is not designed to predict agricultural yields or work with farm management. For this purpose, there are other specifically designed models or model groups; see <xref ref-type="bibr" rid="B1">Assante et al. (2021)</xref> and <xref ref-type="bibr" rid="B15">Terribile et al. (2024)</xref> for recent examples of decision-support systems with multiple models supported. Other simulation software systems exist; the SWARM system launched just before <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EDZAE">ALMaSS</abbrev> was created (<xref ref-type="bibr" rid="B13">Minar et al. 1996</xref>). However, SWARM and similar systems are aimed at a lower level of development than <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ELZAE">ALMaSS</abbrev>, providing the tools and classes to build simulations.</p>
      <p>In terms of supporting <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ERZAE">ALMaSS</abbrev> species and human models, the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EVZAE">ALMaSS</abbrev> landscape simulation has been robust, flexible, and reliable for over 20 years. However, many aspects could be improved. Some of these are related to the fact that <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EZZAE">ALMaSS</abbrev> has grown beyond its initial design parameters, i.e., representing Danish landscapes (<xref ref-type="bibr" rid="B16">Topping 2022</xref>), and has become a team activity with many programmers not having formal training or long experience. One key characteristic of this development is code bloat, particularly with the crop management codes. With hundreds of crop management codes, the number of separate crop codes increases each time a new crop is needed for any simulated country. Each code and reference to it must be added to <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EB1AE">ALMaSS</abbrev> in a number of places, and each must be separately maintained as other changes are made in the system. A solution to this problem would be to move to a domain-specific language (<abbrev xlink:title="domain-specific language" id="ABBRID0EF1AE">DSL</abbrev>), which exists to describe models for information flow e.g. in precision farming (<xref ref-type="bibr" rid="B6">Groeneveld et al. 2021</xref>). However, this change would require a substantial rewrite as well as defining the <abbrev xlink:title="domain-specific language" id="ABBRID0EN1AE">DSL</abbrev> itself. As such, it will only be possible in a future version, and this change has no deadline.</p>
      <p>A similar issue is connected to the use of the <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0ET1AE">TOLE</abbrev> and TOV types to represent landscape elements and vegetation types. The increasing size of the enumerations for <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0EX1AE">TOLE</abbrev> and TOV types makes using these as control structures less and less efficient. The use of attributes described above goes some way to rectify this, but it is not an easily managed solution. Hence, in future versions, the aim is to create a hierarchical classification system for <abbrev xlink:title="TypeOfLandscaleElement" id="ABBRID0E21AE">TOLE</abbrev> and TOV types. Such a classification will facilitate much faster conditional statement execution by limiting the number of queries to the lowest common denominator. However, for this to work, the underlying classification algorithm must map well to the conditional tests that <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E61AE">ALMaSS</abbrev> models need. This will refer to function rather than topographical classification, see for example (<xref ref-type="bibr" rid="B3">Cullum et al. 2016</xref>). However, the rules for developing this classification are not yet defined.</p>
      <p>In the most recent version of the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EJ2AE">ALMaSS</abbrev> Population_Manager class (<xref ref-type="bibr" rid="B27">Topping and Duan 2024</xref>), there is a change to utilise the power of multi-threaded computation using OpenMP (<xref ref-type="bibr" rid="B2">Chandra 2001</xref>). This has not been extended to the Landscape and associated classes, but many of the landscape functions are quite suitable for multi-threading since there are few interactions between polygons possible. Multi-threading has not been a priority since the landscape simulation is generally not the rate-limiting step, except for detailed pesticide simulations (<xref ref-type="bibr" rid="B14">Poulsen et al. 2023</xref>). However, this feature will be included in future updates.</p>
      <p>The <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E22AE">ALMaSS</abbrev> landscape has been designed to service the needs of <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E62AE">ALMaSS</abbrev> species models, but since it is written in a modular form as a set of linked C++ classes, it could be used as a library to be added to other model systems. However, the easiest way to use it for new models would be to add new models to the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ED3AE">ALMaSS</abbrev> framework. Expanding the models available within the system would provide more building blocks for future modellers.</p>
      <p>Expansion also has another benefit. The <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EJ3AE">ALMaSS</abbrev> system is designed to answer complex questions about landscape, management, and wildlife. These questions are multi-faceted, often requiring the integration of multiple modules. For example, determining the impact of wildlife management options requires integration of landscape and cropping modules with wildlife management options and multiple species (<xref ref-type="bibr" rid="B26">Topping et al. 2019</xref>), and using <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ER3AE">ALMaSS</abbrev> to evaluate the impact of stressors on wildlife requires integration of similar landscape features but also ecotoxicological modules (e.g. <xref ref-type="bibr" rid="B25">Topping et al. 2018</xref>; <xref ref-type="bibr" rid="B30">Ziółkowska et al. 2021</xref>). Development in the direction of multi-modular systems is probably a necessary trend in ecology since the questions being asked are more and more on a systems level, requiring more complex models. There are different ways in which these models can be made, but a key requirement is the compatibility of the components to be linked. One way compatibility can be achieved is through multi-modular systems such as the class approach used by C++ and <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E43AE">ALMaSS</abbrev>, which effectively creates libraries that can be connected through their interfaces. However, to function properly, the libraries need to be well-documented, version controlled and accessible. This level of documentation and standardisation for large systems requires teams of scientists and programmers and long time-frames, which is difficult to achieve in academic projects and institutions. Even for smaller models, this documentation is clearly a problem. <xref ref-type="bibr" rid="B8">Janssen et al. (2020)</xref> evaluated 7500 publications about individual-based and agent-based models. They found that code availability was maximally 18%, and poor or lacking documentation was a common problem, often leading to a lack of transparency and lower citation rates. However, documentation is not a simple matter. Accuracy and completeness are necessary for software documentation but are not sufficient alone (<xref ref-type="bibr" rid="B29">Treude et al. 2020</xref>). To work, documentation must be accessible and carefully designed in appearance and usability. This paper thus lays a foundation for such documentation for the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EJ4AE">ALMaSS</abbrev> landscape classes, which can be built on using more detailed documentation formats. Here, we have produced the code documentation using doxygen.</p>
      <sec sec-type="﻿ALMaSS Landscape model usage" id="SECID0EN4AE">
        <title>﻿ALMaSS Landscape model usage</title>
        <p>The <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ET4AE">ALMaSS</abbrev> landscape simulation model has had significant impacts (over 80 published papers and reports), being successfully utilised in three European H2020 projects: PoshBee, B-GOOD, and EcoStack, and currently supporting the population modelling framework in the Horizon Europe project PollinERA (<xref ref-type="bibr" rid="B28">Topping et al. 2024</xref>). It has been employed to evaluate the impact of landscape structure and source-sink dynamics on non-target arthropod pesticide risk assessments in Germany for the German EPA (<xref ref-type="bibr" rid="B32">Ziółkowska et al. 2024</xref>). The model is being further developed to improve pollen and nectar modelling and pesticide simulations, supported by several European/Danish projects, to develop tools for system-based environmental risk assessments for pesticides. Three examples of the application of <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E64AE">ALMaSS</abbrev> simulation relying on the landscape model are described below.</p>
        <list list-type="order">
          <list-item>
            <p>Policy evaluation (Ziółkowska et al. 2022). The ALMaSS landscape simulation was used to evaluate the effectiveness of policy-driven mitigation measures on carabid beetle populations in Dutch agroecosystems. Three simulation scenarios were created using ALMaSS to simulate mitigation measures, including 1) high, medium, and low toxicity levels of insecticides; 2) different levels of spray drift reduction (50% and 90%); 3) the introduction of 4-meter-wide grassy field margins in 50% of the fields. The beetle species simulation was run on top of these scenarios. The study found that reducing the toxicity of insecticides had the most significant positive impact on beetle populations. Further, the effectiveness of mitigation measures was highly context-specific, influenced by landscape heterogeneity and farming practices.
</p>
          </list-item>
          <list-item>
            <p>Multi-criteria decision-making to support agri-environment schemes (<abbrev xlink:title="agri-environment schemes" id="ABBRID0EI5AE">AES</abbrev>) (<xref ref-type="bibr" rid="B26">Topping et al. 2019</xref>). The effectiveness of the ALMaSS model in evaluating typical AES management practices was achieved by combining species models and landscape models. Through the landscape model, thirteen different management scenarios were tested, demonstrating that landscape context plays a crucial role in the effectiveness of agri-environment schemes. The flexibility and adaptability of ALMaSS landscape models can support the assessment and continuous refinement of AES measures.
</p>
          </list-item>
          <list-item>
            <p>Evaluating consequence of land-use strategies on wildlife populations. This is a typical application for the landscape model. For example, in Jepsen et al. (2005), the impact of converting agricultural land to forest or permanent grass set-aside to increase groundwater protection was evaluated for several species. Positive impacts were observed for carabid beetles and mammal species, while negative impacts were noted for the skylark and spider. Another scenario tested the effect of reducing pesticides by changing the crop composition and management practices. The reduced pesticide mortality led to an increase in carabid beetle, spider, and field vole populations. The results demonstrate the species context dependency of the impacts of the same management.
</p>
          </list-item>
        </list>
        <p>In all three cases, the scenarios evaluated were driven by changes in the configuration of the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ET5AE">ALMaSS</abbrev> landscape model.</p>
      </sec>
      <sec sec-type="﻿Access to and use of the software" id="SECID0EX5AE">
        <title>﻿Access to and use of the software</title>
        <p><abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0E45AE">ALMaSS</abbrev> is intended for use by researchers to develop their own simulations. It is not an out-of-the-box simulation program. The code for the landscape model can be accessed through a GitLab project ALMaSS_Methodology (<ext-link xlink:href="https://gitlab.com/ALMaSS/almass_methodology" ext-link-type="uri" xlink:type="simple">https://gitlab.com/ALMaSS/almass_methodology</ext-link>). This is a complete implementation of the landscape model. But, please note that this is only a running example, as it includes only one artificial farm type and uses only two crops in its crop rotation file (UserDefinedFarm27.rot). The source codes for two Danish crops, spring barley and winter wheat, are included as examples. Procedures to compile the code for Linux are provided in the GitLab project.</p>
        <p>The project also includes a run directory, which contains an executable version of the code for Linux and the required input files for <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EI6AE">ALMaSS</abbrev> simulations. If you choose to compile the code yourself, you need to copy the executable to the run directory. By default, it will run a 1-year simulation for the landscape model. In the “Image” subdirectory under the run directory, you can find several images stored from the simulation showing biomass, vegetation type, landscape element type, soil type, and farm ownership for the fifteenth day of each month, after the simulation is run. Different colours represent either different types or different amounts, such as biomass. As shown in Fig. <xref ref-type="fig" rid="F3">3</xref> for biomass dynamics, in January, the crops had little biomass (dark green); in July, they grew to have more biomass (bright green); and by December, the biomass had disappeared (dark green).</p>
        <fig id="F3" position="float" orientation="portrait">
          <object-id content-type="doi">10.3897/fmj.5.121215.figure3</object-id>
          <object-id content-type="arpha">280BEA9C-59E6-576D-8735-0CC889EBC060</object-id>
          <label>Figure 3.</label>
          <caption>
            <p>Biomass dynamics in January, July, and December.</p>
          </caption>
          <graphic xlink:href="fmj-05-e121215-g003.jpg" position="float" orientation="portrait" xlink:type="simple" id="oo_1080623.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1080623</uri>
          </graphic>
        </fig>
        <p>The vegetation types in January and September are displayed in Fig. <xref ref-type="fig" rid="F4">4</xref> Vegetation types in January and September (winter wheat is represented by pale green while spring barley is displayed as dark red)4. In January, some farm fields had winter wheat (pale green) while others had spring barley (dark red). By September, these fields were switched to the other crop because, in this example, we only have one farm type, and they grow two crops in rotation.</p>
        <fig id="F4" position="float" orientation="portrait">
          <object-id content-type="doi">10.3897/fmj.5.121215.figure4</object-id>
          <object-id content-type="arpha">9F8525E2-1111-5629-A290-785122B97C4F</object-id>
          <label>Figure 4.</label>
          <caption>
            <p>Vegetation types in January and September (winter wheat is represented by pale green while spring barley is displayed as dark red).</p>
          </caption>
          <graphic xlink:href="fmj-05-e121215-g004.jpg" position="float" orientation="portrait" xlink:type="simple" id="oo_1080624.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1080624</uri>
          </graphic>
        </fig>
        <p>The <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ERAAG">ALMaSS</abbrev> landscape simulation is flexible. Different scenarios can be set by changing parameters in the “TIALMaSSConfig.cfg” file. For example, removing the # symbols for the lines below the “TIALMaSSConfig.cfg” will create a monocrop scenario. In this scenario, all the farms will only grow winter wheat as shown in Fig. <xref ref-type="fig" rid="F5">5</xref> Vegetation type in January and September under a mono-crop scenario using winter wheat (pale green in the figures)5.</p>
        <fig id="F5" position="float" orientation="portrait">
          <object-id content-type="doi">10.3897/fmj.5.121215.figure5</object-id>
          <object-id content-type="arpha">7CB436AE-EEA0-574C-AC73-D505126F590E</object-id>
          <label>Figure 5.</label>
          <caption>
            <p>Vegetation type in January and September under a mono-crop scenario using winter wheat (pale green in the figures).</p>
          </caption>
          <graphic xlink:href="fmj-05-e121215-g005.jpg" position="float" orientation="portrait" xlink:type="simple" id="oo_1080625.jpg">
            <uri content-type="original_file">https://binary.pensoft.net/fig/1080625</uri>
          </graphic>
        </fig>
        <p>#FARM_FIXED_CROP_ENABLE (bool) = true</p>
        <p>#FARM_FIXED_CROP_TYPE (int) = 1026</p>
        <p>Another important aspect is the use of the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EJBAG">ALMaSS</abbrev> simulation as a dynamic context for species simulations. The same GitLab project currently provides three artificial species models and a Skylark model, which users can run as examples. Details about these model types can be found in <xref ref-type="bibr" rid="B27">Topping and Duan (2024)</xref>, <xref ref-type="bibr" rid="B4">Duan and Topping (2024)</xref>, <xref ref-type="bibr" rid="B18">Topping and Odderskaer (2004)</xref>, and <xref ref-type="bibr" rid="B22">Topping et al. (2013)</xref>.</p>
        <p>Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref> contains the landscape and associated class documentation generated by doxygen (<ext-link xlink:type="simple" ext-link-type="uri" xlink:href="http://www.doxy.org">www.doxy.org</ext-link>). Suppl. material <xref ref-type="supplementary-material" rid="S1">1</xref> is also available at <ext-link xlink:href="https://almass.gitlab.io/almass_methodology/Landscape.pdf" ext-link-type="uri" xlink:type="simple">https://almass.gitlab.io/almass_methodology/Landscape.pdf</ext-link>.</p>
        <p>Suppl. material <xref ref-type="supplementary-material" rid="S2">2</xref> is the original vegetation growth model (<xref ref-type="bibr" rid="B19">Topping and Olesen 2005</xref>), reproduced here with some minor corrections to provide a secure online location.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ack>
      <title>﻿Acknowledgements</title>
      <p>Many people have contributed to the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EADAG">ALMaSS</abbrev> landscape model over the years. Martin Rehder and Frank Nikolaisen were instrumental in the early design of the model. Geoff Groom, Luna Kondrup Marcussen and Elżbieta Ziółkowska all have made important contributions to aspects of the model as it is today. This work was partially supported by DeiC National HPC (UCloud, GenomeDK, LUMI) (g.a. DeiC-AU-N1-000025, DeiC-AU-L5-0011 and DeiC-AU-N2-2023015) and by the EcoStack project funded by the European Union’s Horizon 2020 research and innovation programme under Grant Agreement no. 773554.</p>
    </ack>
    <sec sec-type="﻿Additional information" id="SECID0EEDAG">
      <title>﻿Additional information</title>
      <sec sec-type="Conflict of interest" id="SECID0EIDAG">
        <title>Conflict of interest</title>
        <p>The authors have declared that no competing interests exist.</p>
      </sec>
      <sec sec-type="Ethical statement" id="SECID0ENDAG">
        <title>Ethical statement</title>
        <p>No ethical statement was reported.</p>
      </sec>
      <sec sec-type="Funding" id="SECID0ESDAG">
        <title>Funding</title>
        <p>This work was partially supported by DeiC National HPC (UCloud, GenomeDK, LUMI) (g.a. DeiC-AU-N1-000025, DeiC-AU-L5-0011 and DeiC-AU-N2-2023015) and by the EcoStack project funded by the European Union's Horizon 2020 research and innovation programme under Grant Agreement no. 773554.</p>
      </sec>
      <sec sec-type="Author contributions" id="SECID0EXDAG">
        <title>Author contributions</title>
        <p>Conceptualization: CJT. Methodology: XD. Software: XD, CJT. Writing - original draft: CJT. Writing - review and editing: XD, CJT.</p>
      </sec>
      <sec sec-type="Author ORCIDs" id="SECID0E3DAG">
        <title>Author ORCIDs</title>
        <p>Christopher John Topping <ext-link xlink:href="https://orcid.org/0000-0003-0874-7603" ext-link-type="uri" xlink:type="simple">https://orcid.org/0000-0003-0874-7603</ext-link></p>
        <p>Xiaodong Duan <ext-link xlink:href="https://orcid.org/0000-0003-2345-4155" ext-link-type="uri" xlink:type="simple">https://orcid.org/0000-0003-2345-4155</ext-link></p>
      </sec>
      <sec sec-type="Data availability" id="SECID0EMEAG">
        <title>Data availability</title>
        <p>All of the data that support the findings of this study are available in the main text or Supplementary Information.</p>
      </sec>
    </sec>
    <ref-list>
      <title>﻿References</title>
      <ref id="B1">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Assante</surname><given-names>M</given-names></name><name name-style="western"><surname>Boizet</surname><given-names>A</given-names></name><name name-style="western"><surname>Candela</surname><given-names>L</given-names></name><name name-style="western"><surname>Castelli</surname><given-names>D</given-names></name><name name-style="western"><surname>Cirillo</surname><given-names>R</given-names></name><name name-style="western"><surname>Coro</surname><given-names>G</given-names></name><name name-style="western"><surname>Fernández</surname><given-names>E</given-names></name><name name-style="western"><surname>Filter</surname><given-names>M</given-names></name><name name-style="western"><surname>Frosini</surname><given-names>L</given-names></name><name name-style="western"><surname>Georgiev</surname><given-names>T</given-names></name><name name-style="western"><surname>Kakaletris</surname><given-names>G</given-names></name><name name-style="western"><surname>Katsivelis</surname><given-names>P</given-names></name><name name-style="western"><surname>Knapen</surname><given-names>R</given-names></name><name name-style="western"><surname>Lelii</surname><given-names>L</given-names></name><name name-style="western"><surname>Lokers</surname><given-names>RM</given-names></name><name name-style="western"><surname>Mangiacrapa</surname><given-names>F</given-names></name><name name-style="western"><surname>Manouselis</surname><given-names>N</given-names></name><name name-style="western"><surname>Pagano</surname><given-names>P</given-names></name><name name-style="western"><surname>Panichi</surname><given-names>G</given-names></name><name name-style="western"><surname>Penev</surname><given-names>L</given-names></name><name name-style="western"><surname>Sinibaldi</surname><given-names>F</given-names></name></person-group> (<year>2021</year>) Realising virtual research environments for the agri-food community: The AGINFRA PLUS experience. Concurrency and Computation: Practice and Experience 33: e6087. <ext-link xlink:href="10.1002/cpe.6087" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1002/cpe.6087</ext-link></mixed-citation>
      </ref>
      <ref id="B2">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Chandra</surname><given-names>R</given-names></name></person-group> (<year>2001</year>) Parallel programming in OpenMP. Morgan kaufmann, 240 pp.</mixed-citation>
      </ref>
      <ref id="B3">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Cullum</surname><given-names>C</given-names></name><name name-style="western"><surname>Rogers</surname><given-names>KH</given-names></name><name name-style="western"><surname>Brierley</surname><given-names>G</given-names></name><name name-style="western"><surname>Witkowski</surname><given-names>ETF</given-names></name></person-group> (<year>2016</year>) <article-title>Ecological classification and mapping for landscape management and science: Foundations for the description of patterns and processes.</article-title><source>Progress in Physical Geography: Earth and Environment</source><volume>40</volume>: <fpage>38</fpage>–<lpage>65</lpage>. <ext-link xlink:href="10.1177/0309133315611573" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1177/0309133315611573</ext-link></mixed-citation>
      </ref>
      <ref id="B4">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Duan</surname><given-names>X</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name></person-group> (<year>2024</year>) A General Subpopulation Model for the Animal Landscape and Man Simulation System (ALMaSS). Food and Ecological Systems Modelling Journal (in review).</mixed-citation>
      </ref>
      <ref id="B5">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Gamma</surname><given-names>E</given-names></name><name name-style="western"><surname>Helm</surname><given-names>R</given-names></name><name name-style="western"><surname>Johnson</surname><given-names>R</given-names></name><name name-style="western"><surname>Vlissides</surname><given-names>J</given-names></name></person-group> (<year>1994</year>) Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, 195 pp.</mixed-citation>
      </ref>
      <ref id="B6">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Groeneveld</surname><given-names>D</given-names></name><name name-style="western"><surname>Tekinerdogan</surname><given-names>B</given-names></name><name name-style="western"><surname>Garousi</surname><given-names>V</given-names></name><name name-style="western"><surname>Catal</surname><given-names>C</given-names></name></person-group> (<year>2021</year>) <article-title>A domain-specific language framework for farm management information systems in precision agriculture.</article-title><source>Precision Agriculture</source><volume>22</volume>: <fpage>1067</fpage>–<lpage>1106</lpage>. <ext-link xlink:href="10.1007/s11119-020-09770-y" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1007/s11119-020-09770-y</ext-link></mixed-citation>
      </ref>
      <ref id="B7">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Hoye</surname><given-names>TT</given-names></name><name name-style="western"><surname>Skov</surname><given-names>F</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name></person-group> (<year>2012</year>) <article-title>Interpreting outputs of agent-based models using abundance-occupancy relationships.</article-title><source>Ecological Indicators</source><volume>20</volume>: <fpage>221</fpage>–<lpage>227</lpage>. <ext-link xlink:href="10.1016/j.ecolind.2012.01.017" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.ecolind.2012.01.017</ext-link></mixed-citation>
      </ref>
      <ref id="B8">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Janssen</surname><given-names>MA</given-names></name><name name-style="western"><surname>Pritchard</surname><given-names>C</given-names></name><name name-style="western"><surname>Lee</surname><given-names>A</given-names></name></person-group> (<year>2020</year>) On code sharing and model documentation of published individual and agent-based models. Environmental Modelling &amp; Software 134: 104873. <ext-link xlink:href="10.1016/j.envsoft.2020.104873" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.envsoft.2020.104873</ext-link></mixed-citation>
      </ref>
      <ref id="B9">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Langhammer</surname><given-names>M</given-names></name><name name-style="western"><surname>Thober</surname><given-names>J</given-names></name><name name-style="western"><surname>Lange</surname><given-names>M</given-names></name><name name-style="western"><surname>Frank</surname><given-names>K</given-names></name><name name-style="western"><surname>Grimm</surname><given-names>V</given-names></name></person-group> (<year>2019</year>) <article-title>Agricultural landscape generators for simulation models: A review of existing solutions and an outline of future directions.</article-title><source>Ecological Modelling</source><volume>393</volume>: <fpage>135</fpage>–<lpage>151</lpage>. <ext-link xlink:href="10.1016/j.ecolmodel.2018.12.010" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.ecolmodel.2018.12.010</ext-link></mixed-citation>
      </ref>
      <ref id="B10">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Malawska</surname><given-names>A</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name></person-group> (<year>2016</year>) <article-title>Evaluating the role of behavioral factors and practical constraints in the performance of an agent-based model of farmer decision making.</article-title><source>Agricultural Systems</source><volume>143</volume>: <fpage>136</fpage>–<lpage>146</lpage>. <ext-link xlink:href="10.1016/j.agsy.2015.12.014" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.agsy.2015.12.014</ext-link></mixed-citation>
      </ref>
      <ref id="B11">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Malawska</surname><given-names>A</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name></person-group> (<year>2018</year>) <article-title>Applying a biocomplexity approach to modelling farmer decision-making and land use impacts on wildlife.</article-title><source>Journal of Applied Ecology</source><volume>55</volume>: <fpage>1445</fpage>–<lpage>1455</lpage>. <ext-link xlink:href="10.1111/1365-2664.13024" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1111/1365-2664.13024</ext-link></mixed-citation>
      </ref>
      <ref id="B12">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Malawska</surname><given-names>A</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Nielsen</surname><given-names>HO</given-names></name></person-group> (<year>2014</year>) Why do we need to integrate farmer decision making and wildlife models for policy evaluation? Land Use Policy 38: 732–740. <ext-link xlink:href="10.1016/j.landusepol.2013.10.025" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.landusepol.2013.10.025</ext-link></mixed-citation>
      </ref>
      <ref id="B13">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Minar</surname><given-names>N</given-names></name><name name-style="western"><surname>Burkhart</surname><given-names>R</given-names></name><name name-style="western"><surname>Langton</surname><given-names>C</given-names></name><name name-style="western"><surname>Askenazi</surname><given-names>M</given-names></name></person-group> (<year>1996</year>) The swarm simulation system: A toolkit for building multi-agent simulations.</mixed-citation>
      </ref>
      <ref id="B14">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Poulsen</surname><given-names>T</given-names></name><name name-style="western"><surname>Duan</surname><given-names>X</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name></person-group> (<year>2023</year>) Modelling dynamic pesticide amounts in multiple environmental compartments at landscape scales in ALMaSS. Food and Ecological Systems Modelling Journal 4: 107849. <ext-link xlink:href="10.3897/fmj.4.107849" ext-link-type="doi" xlink:type="simple">https://doi.org/10.3897/fmj.4.107849</ext-link></mixed-citation>
      </ref>
      <ref id="B15">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Terribile</surname><given-names>F</given-names></name><name name-style="western"><surname>Acutis</surname><given-names>M</given-names></name><name name-style="western"><surname>Agrillo</surname><given-names>A</given-names></name><name name-style="western"><surname>Anzalone</surname><given-names>E</given-names></name><name name-style="western"><surname>Azam-Ali</surname><given-names>S</given-names></name><name name-style="western"><surname>Bancheri</surname><given-names>M</given-names></name><name name-style="western"><surname>Baumann</surname><given-names>P</given-names></name><name name-style="western"><surname>Birli</surname><given-names>B</given-names></name><name name-style="western"><surname>Bonfante</surname><given-names>A</given-names></name><name name-style="western"><surname>Botta</surname><given-names>M</given-names></name><name name-style="western"><surname>Cavaliere</surname><given-names>F</given-names></name><name name-style="western"><surname>Colandrea</surname><given-names>M</given-names></name><name name-style="western"><surname>D’Antonio</surname><given-names>A</given-names></name><name name-style="western"><surname>De Mascellis</surname><given-names>R</given-names></name><name name-style="western"><surname>De Michele</surname><given-names>C</given-names></name><name name-style="western"><surname>De Paoli</surname><given-names>G</given-names></name><name name-style="western"><surname>Della Monica</surname><given-names>C</given-names></name><name name-style="western"><surname>Di Leginio</surname><given-names>M</given-names></name><name name-style="western"><surname>Ferlan</surname><given-names>M</given-names></name><name name-style="western"><surname>Ferraro</surname><given-names>G</given-names></name><name name-style="western"><surname>Florea</surname><given-names>A</given-names></name><name name-style="western"><surname>Hermann</surname><given-names>T</given-names></name><name name-style="western"><surname>Hoenig</surname><given-names>H</given-names></name><name name-style="western"><surname>Jahanshiri</surname><given-names>E</given-names></name><name name-style="western"><surname>Jevsenak</surname><given-names>J</given-names></name><name name-style="western"><surname>Kárpáti</surname><given-names>V</given-names></name><name name-style="western"><surname>Langella</surname><given-names>G</given-names></name><name name-style="western"><surname>Le</surname><given-names>QB</given-names></name><name name-style="western"><surname>Lezzi</surname><given-names>D</given-names></name><name name-style="western"><surname>Loishandl</surname><given-names>H</given-names></name><name name-style="western"><surname>Loudin</surname><given-names>S</given-names></name><name name-style="western"><surname>Manna</surname><given-names>P</given-names></name><name name-style="western"><surname>Marano</surname><given-names>G</given-names></name><name name-style="western"><surname>Marotta</surname><given-names>L</given-names></name><name name-style="western"><surname>Merticariu</surname><given-names>V</given-names></name><name name-style="western"><surname>Mileti</surname><given-names>FA</given-names></name><name name-style="western"><surname>Minieri</surname><given-names>L</given-names></name><name name-style="western"><surname>Misev</surname><given-names>D</given-names></name><name name-style="western"><surname>Montanarella</surname><given-names>L</given-names></name><name name-style="western"><surname>Munafò</surname><given-names>M</given-names></name><name name-style="western"><surname>Neuwirth</surname><given-names>M</given-names></name><name name-style="western"><surname>Orefice</surname><given-names>N</given-names></name><name name-style="western"><surname>Pácsonyi</surname><given-names>I</given-names></name><name name-style="western"><surname>Panagos</surname><given-names>P</given-names></name><name name-style="western"><surname>Perego</surname><given-names>A</given-names></name><name name-style="western"><surname>Huu</surname><given-names>BP</given-names></name><name name-style="western"><surname>Pinto</surname><given-names>F</given-names></name><name name-style="western"><surname>Prebeck</surname><given-names>K</given-names></name><name name-style="western"><surname>Puig</surname><given-names>A</given-names></name><name name-style="western"><surname>Pump</surname><given-names>J</given-names></name><name name-style="western"><surname>Schillaci</surname><given-names>C</given-names></name><name name-style="western"><surname>Simoncic</surname><given-names>P</given-names></name><name name-style="western"><surname>Skudnik</surname><given-names>M</given-names></name><name name-style="western"><surname>Stankovics</surname><given-names>P</given-names></name><name name-style="western"><surname>Tóth</surname><given-names>G</given-names></name><name name-style="western"><surname>Tramberend</surname><given-names>P</given-names></name><name name-style="western"><surname>Vingiani</surname><given-names>S</given-names></name><name name-style="western"><surname>Vuolo</surname><given-names>F</given-names></name><name name-style="western"><surname>Zucca</surname><given-names>C</given-names></name><name name-style="western"><surname>Basile</surname><given-names>A</given-names></name></person-group> (<year>2024</year>) <article-title>The LANDSUPPORT geospatial decision support system (S-DSS) vision: Operational tools to implement sustainability policies in land planning and management.</article-title><source>Land Degradation &amp; Development</source><volume>35</volume>: <fpage>813</fpage>–<lpage>834</lpage>. <ext-link xlink:href="10.1002/ldr.4954" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1002/ldr.4954</ext-link></mixed-citation>
      </ref>
      <ref id="B16">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name></person-group> (<year>2022</year>) The Animal Landscape and Man Simulation System (ALMaSS): a history, design, and philosophy. Research Ideas and Outcomes 8: e89919. <ext-link xlink:href="10.3897/rio.8.e89919" ext-link-type="doi" xlink:type="simple">https://doi.org/10.3897/rio.8.e89919</ext-link></mixed-citation>
      </ref>
      <ref id="B17">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Hansen</surname><given-names>TS</given-names></name><name name-style="western"><surname>Jensen</surname><given-names>TS</given-names></name><name name-style="western"><surname>Jepsen</surname><given-names>JU</given-names></name><name name-style="western"><surname>Nikolajsen</surname><given-names>F</given-names></name><name name-style="western"><surname>Odderskaer</surname><given-names>P</given-names></name></person-group> (<year>2003</year>) <article-title>ALMaSS, an agent-based model for animals in temperate European landscapes.</article-title><source>Ecological Modelling</source><volume>167</volume>: <fpage>65</fpage>–<lpage>82</lpage>. <ext-link xlink:href="10.1016/S0304-3800(03)00173-X" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/S0304-3800(03)00173-X</ext-link></mixed-citation>
      </ref>
      <ref id="B18">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>C</given-names></name><name name-style="western"><surname>Odderskaer</surname><given-names>P</given-names></name></person-group> (<year>2004</year>) <article-title>Modeling the influence of temporal and spatial factors on the assessment of impacts of pesticides on skylarks.</article-title><source>Environmental Toxicology and Chemistry</source><volume>23</volume>: <fpage>509</fpage>–<lpage>520</lpage>. <ext-link xlink:href="10.1897/02-524a" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1897/02-524a</ext-link></mixed-citation>
      </ref>
      <ref id="B19">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>C</given-names></name><name name-style="western"><surname>Olesen</surname><given-names>J</given-names></name></person-group> (<year>2005</year>) Vegetation growth simulation in ALMaSS 4.0. <ext-link xlink:href="https://projects.au.dk/fileadmin/ALMaSSVegetationModelling.pdf" ext-link-type="uri" xlink:type="simple">https://projects.au.dk/fileadmin/ALMaSSVegetationModelling.pdf</ext-link></mixed-citation>
      </ref>
      <ref id="B20">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Hoye</surname><given-names>TT</given-names></name><name name-style="western"><surname>Olesen</surname><given-names>CR</given-names></name></person-group> (<year>2010</year>) <article-title>Opening the black box-Development, testing and documentation of a mechanistically rich agent-based model.</article-title><source>Ecological Modelling</source><volume>221</volume>: <fpage>245</fpage>–<lpage>255</lpage>. <ext-link xlink:href="10.1016/j.ecolmodel.2009.09.014" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.ecolmodel.2009.09.014</ext-link></mixed-citation>
      </ref>
      <ref id="B21">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Lagisz</surname><given-names>M</given-names></name></person-group> (<year>2012</year>) <article-title>Spatial dynamic factors affecting population-level risk assessment for a terrestrial arthropod: An agent-based modeling approach.</article-title><source>Human and Ecological Risk Assessment</source><volume>18</volume>: <fpage>168</fpage>–<lpage>180</lpage>. <ext-link xlink:href="10.1080/10807039.2012.632292" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1080/10807039.2012.632292</ext-link></mixed-citation>
      </ref>
      <ref id="B22">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Odderskaer</surname><given-names>P</given-names></name><name name-style="western"><surname>Kahlert</surname><given-names>J</given-names></name></person-group> (<year>2013</year>) Modelling skylarks (<italic><tp:taxon-name><tp:taxon-name-part taxon-name-part-type="genus">Alauda</tp:taxon-name-part> <tp:taxon-name-part taxon-name-part-type="species">arvensis</tp:taxon-name-part></tp:taxon-name></italic>) to predict impacts of changes in land management and policy: Development and testing of an agent-based model. PLOS ONE 8(6): e65803. <ext-link xlink:href="10.1371/journal.pone.0065803" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1371/journal.pone.0065803</ext-link></mixed-citation>
      </ref>
      <ref id="B23">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Alroe</surname><given-names>HF</given-names></name><name name-style="western"><surname>Farrell</surname><given-names>KN</given-names></name><name name-style="western"><surname>Grimm</surname><given-names>V</given-names></name></person-group> (<year>2015</year>) <article-title>Per aspera ad astra: Through complex population modeling to predictive theory.</article-title><source>American Naturalist</source><volume>186</volume>: <fpage>669</fpage>–<lpage>674</lpage>. <ext-link xlink:href="10.1086/683181" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1086/683181</ext-link></mixed-citation>
      </ref>
      <ref id="B24">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Luttik</surname><given-names>R</given-names></name></person-group> (<year>2017</year>) <article-title>Simulation to aid in interpreting biological relevance and setting of population-level protection goals for risk assessment of pesticides.</article-title><source>Regulatory Toxicology and Pharmacology</source><volume>89</volume>: <fpage>40</fpage>–<lpage>49</lpage>. <ext-link xlink:href="10.1016/j.yrtph.2017.07.011" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.yrtph.2017.07.011</ext-link></mixed-citation>
      </ref>
      <ref id="B25">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Dalby</surname><given-names>L</given-names></name><name name-style="western"><surname>Skov</surname><given-names>F</given-names></name></person-group> (<year>2018</year>) <source>Developing spatio-temporal models for landscape-scale pesticide ERA.</source><publisher-name>Copenhagen</publisher-name>, <publisher-loc>Denmark</publisher-loc>, <size units="page">146 pp</size>.</mixed-citation>
      </ref>
      <ref id="B26">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Dalby</surname><given-names>L</given-names></name><name name-style="western"><surname>Valdez</surname><given-names>JW</given-names></name></person-group> (<year>2019</year>) Landscape-scale simulations as a tool in multi-criteria decision making to support agri-environment schemes. Agricultural Systems 176: 102671. <ext-link xlink:href="10.1016/j.agsy.2019.102671" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.agsy.2019.102671</ext-link></mixed-citation>
      </ref>
      <ref id="B27">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Duan</surname><given-names>X</given-names></name></person-group> (<year>2024</year>) Managing large and complex population operations with agent based models: The ALMaSS Population_Manager. Food and Ecological Systems Modelling Journal 5: 117593. <ext-link xlink:href="10.3897/fmj.5.117593" ext-link-type="doi" xlink:type="simple">https://doi.org/10.3897/fmj.5.117593</ext-link></mixed-citation>
      </ref>
      <ref id="B28">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Bednarska</surname><given-names>AJ</given-names></name><name name-style="western"><surname>Benfenati</surname><given-names>E</given-names></name><name name-style="western"><surname>Chetcuti</surname><given-names>J</given-names></name><name name-style="western"><surname>Delso</surname><given-names>N</given-names></name><name name-style="western"><surname>Duan</surname><given-names>X</given-names></name><name name-style="western"><surname>Focks</surname><given-names>A</given-names></name><name name-style="western"><surname>Laskowski</surname><given-names>R</given-names></name><name name-style="western"><surname>Lombardo</surname><given-names>A</given-names></name><name name-style="western"><surname>Marcussen</surname><given-names>L</given-names></name><name name-style="western"><surname>Metodiev</surname><given-names>T</given-names></name><name name-style="western"><surname>Rubinigg</surname><given-names>M</given-names></name><name name-style="western"><surname>Rundlöf</surname><given-names>M</given-names></name><name name-style="western"><surname>Sgolastra</surname><given-names>F</given-names></name><name name-style="western"><surname>Stoyanova</surname><given-names>C</given-names></name><name name-style="western"><surname>Sušanj</surname><given-names>G</given-names></name><name name-style="western"><surname>Williams</surname><given-names>J</given-names></name><name name-style="western"><surname>Ziółkowska</surname><given-names>EM</given-names></name></person-group> (<year>2024</year>) PollinERA: Understanding pesticide-pollinator interactions to support EU environmental risk assessment and policy. Research Ideas and Outcomes 10: e127485. <ext-link xlink:href="10.3897/rio.10.e127485" ext-link-type="doi" xlink:type="simple">https://doi.org/10.3897/rio.10.e127485</ext-link></mixed-citation>
      </ref>
      <ref id="B29">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Treude</surname><given-names>C</given-names></name><name name-style="western"><surname>Middleton</surname><given-names>J</given-names></name><name name-style="western"><surname>Atapattu</surname><given-names>T</given-names></name></person-group> (<year>2020</year>) Beyond accuracy: Assessing software documentation quality. In: 28<sup>th</sup> ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE). Electr Network, 1509–1512. <ext-link xlink:href="10.1145/3368089.3417045" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1145/3368089.3417045</ext-link></mixed-citation>
      </ref>
      <ref id="B30">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Ziółkowska</surname><given-names>E</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name><name name-style="western"><surname>Bednarska</surname><given-names>AJ</given-names></name><name name-style="western"><surname>Laskowski</surname><given-names>R</given-names></name></person-group> (<year>2021</year>) Supporting non-target arthropods in agroecosystems: Modelling effects of insecticides and landscape structure on carabids in agricultural landscapes. Science of the Total Environment 774: 145746. <ext-link xlink:href="10.1016/j.scitotenv.2021.145746" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1016/j.scitotenv.2021.145746</ext-link></mixed-citation>
      </ref>
      <ref id="B31">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Ziólkowska</surname><given-names>E</given-names></name><name name-style="western"><surname>Tiktak</surname><given-names>A</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name></person-group> (<year>2022</year>) Is the effectiveness of policy-driven mitigation measures on carabid populations driven by landscape and farmland heterogeneity? Applying a modelling approach in the Dutch agroecosystems. PLOS ONE 17: e0279639. <ext-link xlink:href="10.1371/journal.pone.0279639" ext-link-type="doi" xlink:type="simple">https://doi.org/10.1371/journal.pone.0279639</ext-link></mixed-citation>
      </ref>
      <ref id="B32">
        <mixed-citation xlink:type="simple"><person-group><name name-style="western"><surname>Ziółkowska</surname><given-names>E</given-names></name><name name-style="western"><surname>Laskowski</surname><given-names>R</given-names></name><name name-style="western"><surname>Dominic</surname><given-names>AR</given-names></name><name name-style="western"><surname>Stein</surname><given-names>S</given-names></name><name name-style="western"><surname>Wenzel</surname><given-names>B</given-names></name><name name-style="western"><surname>Kehlenbeck</surname><given-names>H</given-names></name><name name-style="western"><surname>Riddervold</surname><given-names>M</given-names></name><name name-style="western"><surname>Topping</surname><given-names>CJ</given-names></name></person-group> (<year>2024</year>) <source>Evaluating the impact of landscape structure and source-sink dynamics on non-target arthropod pesticide risk assessments in Germany.</source><publisher-name>Umweltbundesamt</publisher-name>, <publisher-loc>Dessau-Roßlau, Germany</publisher-loc>, <size units="page">150 pp</size>. <ext-link xlink:href="https://www.umweltbundesamt.de/sites/default/files/medien/11850/publikationen/58_2024_texte_elonta.pdf" ext-link-type="uri" xlink:type="simple">https://www.umweltbundesamt.de/sites/default/files/medien/11850/publikationen/58_2024_texte_elonta.pdf</ext-link></mixed-citation>
      </ref>
    </ref-list>
    <sec sec-type="supplementary-material">
      <title>Supplementary materials</title>
      <supplementary-material id="S1" position="float" orientation="portrait" xlink:type="simple">
        <object-id content-type="doi">10.3897/fmj.5.121215.suppl1</object-id>
        <object-id content-type="arpha">1F9CC880-5003-544E-87E9-DDA857A78B91</object-id>
        <label>Supplementary material 1</label>
        <caption>
          <p>The code documentation for the <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0ECOBG">ALMaSS</abbrev> Landscape Model</p>
        </caption>
        <statement content-type="dataType">
          <label>Data type</label>
          <p>pdf</p>
        </statement>
        <statement content-type="notes">
          <label>Explanation note</label>
          <p>Landscape and associated class documentation generated by doxygen (<ext-link xlink:type="simple" ext-link-type="uri" xlink:href="http://www.doxy.org">www.doxy.org</ext-link>).</p>
        </statement>
        <media xlink:href="fmj-05-e121215-s001.pdf" mimetype="application" mime-subtype="pdf" position="float" orientation="portrait" xlink:type="simple" id="oo_1080626.pdf">
          <uri content-type="original_file">https://binary.pensoft.net/file/1080626</uri>
        </media>
        <permissions>
          <license xlink:type="simple">
            <license-p>This dataset is made available under the Open Database License (http://opendatacommons.org/licenses/odbl/1.0/). The Open Database License (ODbL) is a license agreement intended to allow users to freely share, modify, and use this Dataset while maintaining this same freedom for others, provided that the original source and author(s) are credited.</license-p>
          </license>
        </permissions>
        <attrib specific-use="authors">Christopher John Topping, Xiaodong Duan</attrib>
      </supplementary-material>
      <supplementary-material id="S2" position="float" orientation="portrait" xlink:type="simple">
        <object-id content-type="doi">10.3897/fmj.5.121215.suppl2</object-id>
        <object-id content-type="arpha">8187F6A1-3854-53E9-9F3B-2E5B0FB9388F</object-id>
        <label>Supplementary material 2</label>
        <caption>
          <p>Vegetation growth simulation in <abbrev xlink:title="Animal Landscape and Man Simulation System" id="ABBRID0EGPBG">ALMaSS</abbrev></p>
        </caption>
        <statement content-type="dataType">
          <label>Data type</label>
          <p>pdf</p>
        </statement>
        <statement content-type="notes">
          <label>Explanation note</label>
          <p>Vegetation growth model (<xref ref-type="bibr" rid="B19">Topping and Olesen 2005</xref>), reproduced here with some minor corrections to provide a secure online location.</p>
        </statement>
        <media xlink:href="fmj-05-e121215-s002.pdf" mimetype="application" mime-subtype="pdf" position="float" orientation="portrait" xlink:type="simple" id="oo_1080627.pdf">
          <uri content-type="original_file">https://binary.pensoft.net/file/1080627</uri>
        </media>
        <permissions>
          <license xlink:type="simple">
            <license-p>This dataset is made available under the Open Database License (http://opendatacommons.org/licenses/odbl/1.0/). The Open Database License (ODbL) is a license agreement intended to allow users to freely share, modify, and use this Dataset while maintaining this same freedom for others, provided that the original source and author(s) are credited.</license-p>
          </license>
        </permissions>
        <attrib specific-use="authors">Christopher John Topping, Xiaodong Duan</attrib>
      </supplementary-material>
    </sec>
  </back>
</article>
