<!DOCTYPE aesl-source>
<network>
    <event name="e1" />
    <event name="e2" />
    <event name="e3" />
    <event name="start" />
    <event name="stop" />
    <node name="left motor" >var isRunning = 0

ontimer
if isRunning == 1 then
	emit e1
end

onevent start
isRunning = 1

onevent stop
isRunning = 0</node>
    <node name="right motor" >onevent e1
emit e2</node>
    <node name="proximity sensors" >onevent e2
emit e3</node>
    <node name="distance sensors" ></node>
</network>
