1module Altsteps 2{ 3 4 altstep alt_guard () runs on CoffeeMachine 5 { 6 [] guard.timeout { setverdict( fail ) } 7 } 8 9 altstep alt_catchAnything () 10 runs on CoffeeMachine 11 { 12 [] CoffeePort.receive(?) { 13 setverdict( fail ) 14 } 15 } 16 17 function activateAltsteps () 18 runs on CoffeeMachine 19 { 20 activate(alt_guard()) 21 activate(alt_catchAnything()) 22 } 23 24} 25