How & Why use Gray Code A gray counter is a binary counter where only one bit changes at a time. Gray code is mostly used to send values across clock domains (this way it has an uncertainty of only 1). The easiest way to create a Gray counter is to f…
What is a State Machine? Any device that changes its state from one to another due to some actions are defined to be state machines. For example an ATM machine, traffic signal, remote control, the computer itself, etc. Most software applications also…
Contents [hide] 1 Description 2 Components 3 C# - FSMSystem.cs 4 Example Description This is a Deterministic Finite State Machine framework based on chapter 3.1 of Game Programming Gems 1 by Eric Dybsend. Therea are two classes and two enums. Includ…
State Machine,即为状态机,是Qt中一项非常好的框架.State Machine包括State以及State间的Transition,构成状态和状态转移.通过状态机,我们可以很方便地实现很多东西.Qt的Animation框架也是基于状态机的. 在Qt自带的帮助文档中搜索State Machine,会有一篇官方的说明文档.笔者的Qt5.2自带的文档如下: The State Machine Framework The State Machine framework provides c…
[翻译]What is State Machine Diagram(什么是状态机图)? 写在前面 在上一篇学习类图的时候将这个网站上的类图的一篇文章翻译了出来,感觉受益良多,今天来学习UML状态机图,在网站找了很多的博客,但是都有些雷同的现象,所以又计划从该网站上学习UML状态机图,翻译出来以供大家参考.下面是原文链接: https://www.visual-paradigm.com/guide/uml-unified-modeling-language/what-is-state-machin…