Created
February 11, 2012 06:40
-
-
Save michaelklishin/1797313 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defstates automata :initial :intermediate :final) | |
(deftransition automate to-intermediate | |
:from :initial | |
:to :intermediate | |
;; will raise IllegalStateException if guard returns false | |
:guard-fn valid? | |
;; callbacks | |
:before-fn log-transition :after-fn launch-missles) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment