External Transition Function
function ext input st s; input Real e; input Integer bag; input Real v; input Real t; output st sout; end ext;