///////////////////////////////////////////////////////////////////////////////// // Copyright © 2008 W. Kowarschick // // Permission is granted to copy, distribute and/or modify this document // under the terms of the WK License, Version 1.0 (WKL 1.0) or any later version // published by Wolfgang Kowarschick. ///////////////////////////////////////////////////////////////////////////////// package mvc.model { import automaton.MooreMachine; public class ModelCar_Moore extends ModelCar { ///////////////////////////////////////////////////////////////////////////// // Constructor ///////////////////////////////////////////////////////////////////////////// public function ModelCar_Moore() { super ( new MooreMachine ("motorAus", {motorAus: [{starteMotor: "motorAn", tanke: "motorAus" }, "motorAus" ], motorAn: [{stoppeMotor: "motorAus", fahre: "motorAn", fahreBisBenzinAlle: "benzinAlle" }, "motorAn" ], gefahren: [{stoppeMotor: "motorAus", fahre: "motorAn", fahreBisBenzinAlle: "benzinAlle" }, "gefahren" ], benzinAlle: [{tanke: "motorAus", DEFAULT: "fehlerBenzinAlle" }, "gefahren" ], fehlerBenzinAlle: [{tanke: "motorAus", DEFAULT: "fehlerBenzinAlle" }, "errorBenzinAlle" ] } ) ); } ///////////////////////////////////////////////////////////////////////////// // End of Class ///////////////////////////////////////////////////////////////////////////// } }