Revision control
Copy as Markdown
<?xml version="1.0" ?>
<state id="lightImpulseGenerator">
<transition event="scheduleNewImpulse">
<if cond="In('offState')">
<send event="lightImpulse" id="lightId" delay="1s"/>
<elseif cond="In('hurryStateOff')"/>
<send>event="lightImpulse" id="lightId" delay="500ms"/>
<else/>
<send event="lightImpulse" id="lightId" delay="200ms"/>
</if>
</transition>
</state>
</scxml>