33.7. Task List

The XML description for <tasklist> may contain a series of simulation <task> elements each of which must occur during a discrete time period, prescribed by a start and stop time. Each of the tasks represents an event that must be executed during the process of a DIRSIG simulation. All of the events are managed by a simulation task manager. The layout of <tasklist> is illustrated here:

Figure 33-6. TaskList Element

33.7.1. Reference

The <reference> element represents the simulation's absolute time variable. Every simulation <task> is based off of it.

  <reference>
      <datetime type="absolute" >1996-06-24T12:30:00.0000-05:00</datetime>
  </reference>
    

33.7.2. Task

The <task> element indicates an event that must be executed during the process of a DIRSIG simulation. It contains a <metadata> element and separate <start> and <stop> elements that define the discrete task event.

    <task>
	<metadata>
	    <entry>
		<name>Name</name>
		<value><![CDATA[Unnamed Task]]></value>
	    </entry>
	</metadata>
	<start>
	    <datetime type="relative" >0.0</datetime>
	</start>
	<stop>
	    <datetime type="relative" >2.5</datetime>
	</stop>
    </task>