File Format: TXT

The TXT format is the currently most used file format for storing events. It consists of a plain text file with the following header:

T_GBL   VEH_ID  LEG_NR  LINK_ID   FROM_NODE_ID    EVENT_FLAG      DESCRIPTION
  • T_GBL is the time of the event, in seconds after midnight
  • VEH_ID corresponds to the agent-id (there's no such thing like a vehicle-id yet!)
  • LEG_NR unused, set to 0
  • LINK_ID the link of the id the event took place. If not used, set to 0
  • FROM_NODE_ID unused, to to 0
  • EVENT_FLAG the id of the event-type (see Event Types)
  • DESCRIPTION unused, usually set to the name of the event-type (see Event Types)

The fields are separated with tabs. Make sure to also include a tab between EVENT_FLAG and DESCRIPTION, even if the DESCRIPTION is empty!

The following is an example, how an event-file could look like:

T_GBL   VEH_ID  LEG_NR  LINK_ID  FROM_NODE_ID    EVENT_FLAG      DESCRIPTION
21610   1       0       2        0               8               actend h
21620   2       0       3        0               6               departure
21630   3       0       4        0               4               wait2link
21640   4       0       5        0               2               left link
21650   5       0       6        0               5               entered link
21660   6       0       7        0               0               arrival
21670   7       0       8        0               7               actstart w
21680   8       0       9        0               3               stuckAndAbort

 


Warning: Table 'watchdog' is read only query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;sessions&amp;#039; is read only\nquery: UPDATE sessions SET uid = 0, cache = 0, hostname = &amp;#039;38.107.179.234&amp;#039;, session = &amp;#039;&amp;#039;, timestamp = 1328354663 WHERE sid = &amp;#039;e972b2ab7dd755a2094beea8ac708f02&amp;#039;</em> in <em>/home01/vsp_access/matsimwww/includes/database.mysql.inc</em> on line <em>174</em>.', 2, '', 'http://matsim.org/node/284', '', '38.107.179.234', 1328354663) in /home01/vsp_access/matsimwww/includes/database.mysql.inc on line 174