begin name demoModelAllFunctionality end name begin reactions v1 {1.0}$s = {1.0}x v2 {1.0}x = {1.0}$p end reactions begin rate equations v1 = mult*func[Vm, km1, s] v2 = mult*func[Vm, km1, x[t]] end rate equations begin parameters Vm = 1.0 Vm1 = 1.0 Vm2 = 10.0 a = 2.0 b = 0.5 mult = 0.5 p = 0.0 s = 10.0 default = 1.0 end parameters begin initial conditions x[0] = xi end initial conditions begin initial values xi = 0.0 end initial values begin assignment rules km1 := a*b end assignment rules begin function definitions func[Vm_,ks_,s_] := (s*Vm)/(ks + s) end function definitions begin events 1 = (t > 5, {Vm -> Vm2}, 0) 2 = (x[t] > 5, {x[t] -> 0}, 0) end events begin process annotations end process annotations begin species annotations end species annotations begin units end units