Weitere ähnliche Inhalte
Mehr von manssandstrom (20)
Använder du rätt verktyg - Johan Hernefeldt och Emil Nordling
- 1. Använder du rätt verktyg? Att verktyga eller inte verktyga, det är frågan! Presentation på Agila Sverige 2009
- 3. X == A X == B Tillståndsmaskin (ändlig) Presentation på Agila Sverige 2009 1 3 2
- 5. Kaffemaskinen Presentation på Agila Sverige 2009 #inputs: i, j #prototype: FSM(type1 i, type2 j) #stateprefix: CoffeeMakerFSM_ digraph FSM { Initialize -> Idle [label="Init_Ok"]; Idle -> No_coffee_grounds_error [label="There_is_no_coffee_grounds"]; Idle -> No_water_error [label="There_is_no_water"]; Idle -> Heat_water [label="User_has_requested_coffee"]; Heat_water -> Broken_heater_or_thermometer_error [label="Water_not_warm_after_2_mins"]; Heat_water -> Dispense_coffee_grounds [label="Water_is_warm"]; Dispense_coffee_grounds -> Pour_water [label ="Grounds_dispensed"]; Pour_water -> Stop_pouring_water [label="Poured_2_deciliters_of_water"]; Stop_pouring_water -> Idle [label="No_further_user_requests"]; }
- 9. Kaffemaskinen Presentation på Agila Sverige 2009 #inputs: i, j #prototype: FSM(type1 i, type2 j) #stateprefix: CoffeeMakerFSM_ digraph FSM { Initialize -> Idle [label="Init_Ok"]; Idle -> No_coffee_grounds_error [label="There_is_no_coffee_grounds"]; Idle -> No_water_error [label="There_is_no_water"]; Idle -> Heat_water [label="User_has_requested_coffee"]; Heat_water -> Broken_heater_or_thermometer_error [label="Water_not_warm_after_2_mins"]; Heat_water -> Dispense_coffee_grounds [label="Water_is_warm"]; Dispense_coffee_grounds -> Pour_water [label ="Grounds_dispensed"]; Pour_water -> Stop_pouring_water [label="Poured_2_deciliters_of_water"]; Stop_pouring_water -> Idle [label="No_further_user_requests"]; Stop_pouring_water -> Pour_milk [label ="User_has_requested_milk"]; Pour_milk -> Stop_pouring_milk [label="Poured_1_centiliter_of_milk"]; Stop_pouring_milk -> Idle [label="No_further_user_requests"]; }