You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

FEWS Game scenario configuration

What

scenario_config.xml

Description

Configuration of a scenario in the FEWS Game

schema location

scenario_config.xsd

In a scenario configuration, the start and end time of a scenario, and events for a scenario are specified. A scenario must be a directory in the scenario database in which files relevant for that scenario are collected.

Schema definition overview

The global structure of the XML-schema for the scenario configuration is as follows:

The Name-key is an optional identifier for the scenario. The start and end date/time for the scenario have to be specified using the following schema:

where the values are all integers. The events and forecasts for a scenario are explained below.

Events

Forecasts

Example

Example of scenario configuration
<Scenario xmlns="http://localhost" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost ../../xml-schemas/scenario_config.xsd">
   <Name>storm surge March 10-13</Name>
   <Start>
      <Year>2008</Year>
      <Month>3</Month>
      <Day>12</Day>
      <Hour>4</Hour>
      <Minute>0</Minute>
      <Second>0</Second>
   </Start>
   <Stop>
      <Year>2008</Year>
      <Month>3</Month>
      <Day>12</Day>
      <Hour>18</Hour>
      <Minute>0</Minute>
      <Second>0</Second>
   </Stop>
   <Events>
      <Event>
         <Title lang="NL">Volgende activiteit</Title>
         <Title lang="EN">Next event</Title>
         <Type>dynamic</Type>
         <Continue/>
      </Event>
      <Event>
         <Title lang="NL">Start zitting</Title>
         <Title lang="EN">Session start</Title>
         <Type>static and dynamic</Type>
         <Time>
            <Year>2008</Year>
            <Month>3</Month>
            <Day>12</Day>
            <Hour>4</Hour>
            <Minute>0</Minute>
            <Second>5</Second>
         </Time>
         <File lang="NL">start_zitting_NL.txt</File>
         <File lang="EN">start_zitting_EN.txt</File>
      </Event>
      <Event>
         <Title lang="NL">KNMI weeranalyse 12 maart, 0:00 uur</Title>
         <Title lang="EN">KNMI analysis March 12, 12:00 midnight</Title>
         <Type>dynamic</Type>
         <Time>
            <Year>2008</Year>
            <Month>3</Month>
            <Day>12</Day>
            <Hour>4</Hour>
            <Minute>0</Minute>
            <Second>5</Second>
         </Time>
         <File lang="NL">weerkaart_12maart_00uur.pdf</File>
         <File lang="EN">weerkaart_12maart_00uur.pdf</File>
      </Event>
      <Event>
         <Title lang="NL">KNMI weeranalyse 12 maart, 12:00 uur</Title>
         <Title lang="EN">KNMI analysis March 12, 12:00 noon</Title>
         <Type>dynamic</Type>
         <Time>
            <Year>2008</Year>
            <Month>3</Month>
            <Day>12</Day>
            <Hour>4</Hour>
            <Minute>0</Minute>
            <Second>5</Second>
         </Time>
         <File lang="NL">weerkaart_12maart_12uur.pdf</File>
         <File lang="EN">weerkaart_12maart_12uur.pdf</File>
      </Event>
      <Event>
         <Title lang="NL">KNMI weeranalyse 13 maart, 0:00 uur</Title>
         <Title lang="EN">KNMI analysis March 13, 12:00 midnight</Title>
         <Type>dynamic</Type>
         <Time>
            <Year>2008</Year>
            <Month>3</Month>
            <Day>12</Day>
            <Hour>4</Hour>
            <Minute>0</Minute>
            <Second>5</Second>
         </Time>
         <File lang="NL">weerkaart_13maart_06uur.pdf</File>
         <File lang="EN">weerkaart_13maart_06uur.pdf</File>
      </Event>
      <Event>
         <Title lang="NL">Telefoon KNMI</Title>
         <Title lang="EN">Telephone call KNMI</Title>
         <Type>static and dynamic</Type>
         <Time>
            <Year>2008</Year>
            <Month>3</Month>
            <Day>12</Day>
            <Hour>4</Hour>
            <Minute>10</Minute>
            <Second>0</Second>
         </Time>
         <File lang="NL">telefoon_knmi_bericht1_NL.txt</File>
         <File lang="EN">telefoon_knmi_bericht1_EN.txt</File>
      </Event>
      <Event>
         <Title lang="NL">Opdracht 1</Title>
         <Title lang="EN">Exercise 1</Title>
         <Type>static and dynamic</Type>
         <Time>
            <Year>2008</Year>
            <Month>3</Month>
            <Day>12</Day>
            <Hour>4</Hour>
            <Minute>11</Minute>
            <Second>0</Second>
         </Time>
         <File lang="NL">opdracht1_NL.txt</File>
         <File lang="EN">opdracht1_EN.txt</File>
      </Event>
   </Events>
   <Forecasts>
      <TimeZone>GMT</TimeZone>
      <Forecast>
         <Sector>Schelde</Sector>
         <Station>Vlissingen</Station>
         <AstroDateTime>
            <Year>2008</Year>
            <Month>3</Month>
            <Day>12</Day>
            <Hour>17</Hour>
            <Minute>16</Minute>
            <Second>0</Second>
         </AstroDateTime>
         <AstroWaterLevel>237</AstroWaterLevel>
      </Forecast>
      <Forecast>
         <Sector>West Holland</Sector>
         <Station>Hoek van Holland</Station>
         <AstroDateTime>
            <Year>2008</Year>
            <Month>3</Month>
            <Day>12</Day>
            <Hour>18</Hour>
            <Minute>1</Minute>
            <Second>0</Second>
         </AstroDateTime>
         <AstroWaterLevel>122</AstroWaterLevel>
      </Forecast>
   </Forecasts>
</Scenario>
  • No labels