inifile.xml 4.11 KB
Newer Older
Mohcine Chraibi's avatar
Mohcine Chraibi committed
1 2 3 4 5 6 7 8 9 10 11 12
<?xml version="1.0" encoding="UTF-8" ?>

<JuPedSim project="JPS-Project" version="0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xsd.jupedsim.org/0.6/jps_ini_core.xsd">

  <!-- seed used for initialising random generator -->
  <seed>12542</seed>
  <!-- geometry file -->
  <geometry>geometry.xml</geometry>
  <max_sim_time>5000</max_sim_time>

  <!-- trajectories file and format -->
  <trajectories format="xml-plain" fps="16" color_mode="final_goal">
Mohcine Chraibi's avatar
Mohcine Chraibi committed
13
            <file location="trajectories.xml" />
Mohcine Chraibi's avatar
Mohcine Chraibi committed
14 15 16 17 18 19 20 21 22 23
    <!-- <socket_ hostname="127.0.0.1" port="8989" /> -->
  </trajectories>

  <!-- where to store the logs -->
  <logfile>log.txt</logfile>

  <!-- traffic information: e.g closed doors or smoked rooms -->
  <traffic_constraints>
    <!-- doors states are: close or open -->
    <doors>
Mohcine Chraibi's avatar
Mohcine Chraibi committed
24
        <!-- <door trans_id="1" caption="exit" state="open" /> -->
Mohcine Chraibi's avatar
Mohcine Chraibi committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
    </doors>
  </traffic_constraints>

  <routing>
    <goals>
      <goal id="3" final="true" caption="goal3">
        <polygon>
          <vertex px="3.2" py="12.0" />
          <vertex px="3.2" py="13.0" />
          <vertex px="5.6" py="13.0" />
          <vertex px="5.6" py="12.0" />
          <vertex px="3.2" py="12.0" />
        </polygon>
      </goal>
      <goal id="1" final="true" caption="goal1">
        <polygon>
          <vertex px="3.6" py="-3.0" />
          <vertex px="3.6" py="-4.0" />
          <vertex px="5.2" py="-4.0" />
          <vertex px="5.2" py="-3.0" />
          <vertex px="3.6" py="-3.0" />
        </polygon>
      </goal>
      <goal id="2" final="true" caption="goal2">
        <polygon>
          <vertex px="18" py="2.8" />
          <vertex px="19" py="2.8" />
          <vertex px="19" py="6.4" />
          <vertex px="18" py="6.4" />
          <vertex px="18" py="2.8" />
        </polygon>
      </goal>
      <goal id="4" final="true" caption="goal4">
        <polygon>
          <vertex px="-3.0" py="2.8" />
          <vertex px="-4.0" py="2.8" />
          <vertex px="-4.0" py="6.4" />
          <vertex px="-3.0" py="6.4" />
          <vertex px="-3.0" py="2.8" />
        </polygon>
      </goal>
    </goals>
  </routing>

  <!--persons information and distribution -->
  <agents operational_model_id="3">
    <agents_distribution>
      <group group_id="0" room_id="0" subroom_id="0" number="20" router_id="1" agent_parameter_id="1" x_min="3" x_max="5" y_min="3" y_max="5" />
    </agents_distribution>

    <agents_sources><!-- frequency in persons/seconds -->
Mohcine Chraibi's avatar
Mohcine Chraibi committed
76 77 78 79 80 81
       <source id="1" frequency="2" agents_max="5" group_id="0" caption="source 1" />
       <source id="2" agent_id="3" time="5" group_id="0" caption="source 2" />
       <source id="3" agent_id="2" time="3" group_id="0" caption="source 3" />
      <source id="4" agent_id="8" time="7" group_id="0" caption="source 4" />
      <source id="5" agent_id="9" time="7" group_id="0" caption="source 5" startX="8" startY="5.4" />
      <source id="6" agent_id="10" time="7" group_id="0" caption="source 6" startX="13" startY="5" />
Mohcine Chraibi's avatar
Mohcine Chraibi committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
    </agents_sources>

  </agents>

  <operational_models>
     <model operational_model_id="3" description="Tordeux2015">
      <model_parameters>
        <solver>euler</solver>
        <stepsize>0.01</stepsize>
        <exit_crossing_strategy>2</exit_crossing_strategy>
        <linkedcells enabled="true" cell_size="2.2" />
        <force_ped a="5" D="0.1" />
        <force_wall a="5" D="0.02" />
      </model_parameters>
      <agent_parameters agent_parameter_id="1">
        <v0 mu="1.0" sigma="0.001" />
        <bmax mu="0.15" sigma="0.00000" /> <!-- this is l, assuming peds are circles with constant radius -->
        <bmin mu="0.15" sigma="0.00000" />
        <amin mu="0.15" sigma="0.00000" />
        <tau mu="0.5" sigma="0.001" />
        <atau mu="0.0" sigma="0.00000" />
        <T mu="1" sigma="0.001" />
      </agent_parameters>
    </model>
  </operational_models>

  <route_choice_models>
    <router router_id="1" description="global_shortest">
      <parameters></parameters>
    </router>
    <router router_id="2" description="quickest">
      <parameters></parameters>
    </router>

  </route_choice_models>

</JuPedSim>