Made with
ConceptDraw
DIAGRAM 18

Finite State Machine

A finite-state machine can be known as “FSM, “finite-state automaton” (or “FSA”), “finite automaton” or a “state machine”. It is simply a mathematical model of computation, being an abstract machine in exactly one of a finite number of so called “states” at any time. The finite-state machine can change from one state to another. It is usually done in response to some external inputs. The so called “transition” is simply the change from one state to another. Any “FSM” can be defined by a list of its states as well as by its initial state and the conditions for each of the transitions.

The behaviour of each of the state machines can be observed in many devices. In modern society it can perform a predetermined sequence of actions, which depends on a sequence of events they are presented with. As an example, the vending machines can be mentioned. They simply dispense the products when the proper combination of coins is deposited. Another example can be elevators, whose sequence of stops is usually determined by the floors requested by its riders. The traffic lights are also a good example for the state machine as they change sequence when the cars are waiting on the road. The well-known combination locks are also the finite state machines, requiring the input of combination numbers, which all have to be input in the proper, definite order.

The finite state machines are studied in the more general field of “automata theory” knowing to be having less computational power to compare it to some other models of computation (for example, the “Turing machine”). The so called “computational power distinction” means there are some computational tasks which a “Turing machine” can do but a “FSM” cannot. The reason for this is because a finite state machine's memory is limited by the number of the states it already has.

A term “state” is a description of the status of a system, waiting for executing a so called “transition”, known to be a set of actions executed once a condition is fulfilled. Sometimes it can also be executed when an event is received. As an example: while using some audio system for listening to the radio, the receiving of the "next" stimulus results in moving to the next station. In this mentioned case the system is known to be in the so called "radio" state. Once the system is in the so called "CD" state, then the "next" stimulus ends in moving to the very next track. The identical stimuli trigger different the actions, which depends on the state taking place at the very this moment.

Sometimes, in some of the representations of the finite-state machines, the actions can be simply associated with a state. The so called “entry action” is known to be performing while entering the state and an “exit action” is performed while exiting the state.

The Unified Modelling Language has a notation for describing state machines, overcoming the limitations of traditional “finite state machines” during retaining their most main benefits as well as introducing the new concepts of orthogonal regions and hierarchically nested states. At the same time the notion of “actions” is being extended. To understand what exactly the term of “actions” means, we have to mention that once the so called “event instance” is dispatched, the state machine responds by these so called “performing actions”, which can be involved in changing a variable, invoking a function, generating some other event instance, changing to another state or performing I/O.

In the so called “extended state machines”, a transition can have a “guard”, meaning that the transition can "fire" only in case the guard evaluates to “TRUE”.

A state is known to be having many transitions in response to the same trigger, but there’s always a chance that this situation can create even more problems in the sequence of evaluation of the guards once the common trigger occurs. The “UML specification” intentionally does not stipulate any particular order, meaning that the guard expressions should have no side effects left.

UML state machines are popular for having the characteristics of “Moore machines” as well as “Mealy” ones. They are known to be supporting actions, depending on the so called “triggering event” and “the state of the system” as in Mealy machines. They also support the “entry” and “exit” actions, associated with states, not transitions (as in Moore machines).

Thus, the finite state machines are significant in many different areas, being subdivided into acceptors, transducers, sequencers and classifiers. They are being widely used in such fields of business activities, as linguistics, computer science, electrical engineering, philosophy, mathematics, logic, biology, etc. They are a class of automata studied in so called “automata theory” as well as the “theory of computation”. Finite state machines are used in computer science for modelling of application behaviour, software engineering, designing of hardware digital systems, network protocols, compilers as well as the study of languages and computation.

Once you need to create a Finite State Machine (FSM) diagram, one of the best tools may be ConceptDraw DIAGRAM diagramming and drawing software extended with ConceptDraw STORE application, where all the pre-made solutions full of the examples and templates as well as stencil libraries are. You can always download ConceptDraw DIAGRAM software as well as ConceptDraw STORE application, find the “Specification and Description Language (SDL) Solution” from the last mentioned product of CS Odessa to be able to create any needed diagrams within the Description Language field of business activity, including the finite state machine’s ones, within only an hour or so having all the needed tools, such as design elements of SDL Connectors from the stencil library and the pre-made templates of the SDL Diagrams which can be always used as drafts for your own smart as well as professionally looking drawings.

Finite State Machine *

Example 1. Design Elements. Finite State Machine Diagram
for Apple OS X and Windows

To design the Finite State Machine Diagram from the beginning in new ConceptDraw document, use the predesigned connectors and SDL design elements offered in quantity of 71 objects by 2 libraries of Specification and Description Language (SDL) Solution. The predesigned vector objects give the possibility easily draw any FSM Diagrams you want.

Thanks to the Specification and Description Language (SDL) Solution we also have a variety of SDL and FSM diagrams samples in ConceptDraw STORE. Each of them can be opened in ConceptDraw DIAGRAM and used as is or changed according to your needs.

Specification and Description Language (SDL) Solution in ConceptDraw STORE

Example 2. Specification and Description Language (SDL) Solution in ConceptDraw STORE

The Finite State Machine diagram you see on this page was created in ConceptDraw DIAGRAM software using the objects from the libraries of Specification and Description Language (SDL) Solution. An experienced user spent 25 minutes creating this sample in ConceptDraw DIAGRAM

Use the Specification and Description Language (SDL) Solution for ConceptDraw DIAGRAM software to create your own professional looking SDL and FSM diagrams quick, easy and effective.

All source documents are vector graphic documents. They are available for reviewing, modifying, or converting to a variety of formats (PDF file, MS PowerPoint, MS Visio, and many other graphic formats) from the ConceptDraw STORE. The Specification and Description Language (SDL) Solution is available for all ConceptDraw DIAGRAM users.




TEN RELATED HOW TO's:
Garrett IA diagrams are used at development of Internet-resources, in particulars at projecting of interactions of web-resource elements. The diagram of information architecture of the web resource which is constructed correctly with necessary details presents to developers the resource in comprehensible and visual way.Garrett IA Diagrams with ConceptDraw DIAGRAM  *
Picture: Garrett IA Diagrams with ConceptDraw DIAGRAM
Few other areas benefited as much from the development of advanced digital drawing software as interior design. Previously only done by professionals, nowadays it is made available to virtually anyone with the help of software such as ConceptDraw DIAGRAM. You can design whatever you want - a living room, an office, a garage, a school layout - design elements provided by ConceptDraw DIAGRAM fit all of these purposes. All you need to get started is your creativity and the right software tools. This library of vector graphic objects includes images of different school furniture and equipment related to school or training classes interior. These graphical elements are embedded into the ConceptDraw School and Training Plans solution. You can use them when designing interior layout of classroom or training office.Organization of the learning environment is an important element of a students learning. By using ConceptDraw DIAGRAM you can easily visualize and present your ideas related to any classes layout.Interior Design. School Layout — Design Elements *
Picture: Interior Design. School Layout — Design Elements
Related Solution:
UML Sequence Diagram can be created using ConceptDraw DIAGRAM diagramming software contains rich examples and template. ConceptDraw is perfect for software designers and software developers who need to draw UML Sequence Diagrams.UML Sequence Diagram *
Picture: UML Sequence Diagram
Every corporate network is unique, though there are guidelines and best practices in developing networks. As it is quite difficult to implement a pure topology within a company, using a hybrid network topology is considered a better solution. As a rule, such network assembles advantages and features of source topologies. This diagram is an example of the Hybrid network. This type of network topology means a conjunction of other network topologies. Such as star-bus, ring-mesh topologies, etc. It should be obviously diverse networks. The final computer network inherits both advantages and disadvantages of its ingredients. Using the ConceptDraw Computer and Networks solution including vector graphic libraries and templates one can develop professional custom network diagrams of any topology and complexity.Hybrid Network Topology *
Picture: Hybrid Network Topology
Related Solution:
You need design the Functional Block Diagram and dream to find the useful tools to draw it easier, quickly and effectively? ConceptDraw DIAGRAM offers the Block Diagrams Solution from the Diagrams Area which will help you!Functional Block Diagram *
Picture: Functional Block Diagram
Related Solution:
When describing any computer network, we imagine a set of devices and nodes, arranged in some way. Talking about network structures, we should distinguish physical and logical network topologies, as physical topology is about devices location and logical topology illustrates data flow. In the same time, they do not have to match, and some devices, such as repeaters, may have a physical star layout, but a bus logical topology. There are two main types of computer network topologies: Physical topology that show the physical organization of a network - equipment and types of connections. Star network topology involves a set of devices that is connected to a single hub (router). Ring network topology means that, devices connected according this topology have two connections, connecting with nearby devices to make a loop. Bus network topology is the topology presented at the current diagram. It is similar to a ring topology. The difference is that data moves up and down a linear connection, copying itself where network equipment works as bus-stations along the way. This network topology can be used for small network, or when adding an extra device into a network.Network Topologies
Picture: Network Topologies
Related Solution:
Drawing the diagrams we try to find in help the powerful software and now we have the ConceptDraw DIAGRAM. The ability easily create the SDL diagrams is made possible thanks to unique Specification and Description Language (SDL) Solution from the Industrial Engineering Area of ConceptDraw Solution Park. This solution extends ConceptDraw DIAGRAM 2 libraries - SDL Connectors and SDL Diagrams that contain 70 predesigned SDL flowchart symbols.SDL Flowchart Symbols *
Picture: SDL Flowchart Symbols
Related Solution:
ConceptDraw gives the ability to draw simple diagrams like flowcharts, block diagrams, bar charts, histograms, pie charts, divided bar diagrams, line graphs, area charts, scatter plots, circular arrows diagrams, Venn diagrams, bubble diagrams, concept maps, and others.Simple Drawing Applications for Mac *
Picture: Simple Drawing Applications for Mac
Related Solution:
There are many ways to track the system in a critical situation. To model a system behavior, uml notation is widely used. Usually, an UML diagram consists of elements such as actor and a case. This diagram represents the structure of UML notations. Unified Modeling Language (UML) is used in software engineering to depict graphically the software modeling process. UM Language uses graphic notations for developing models of object-oriented systems. These notations displays requirements, sub-systems, logical and physical elements, etc. We created this diagram using ConceptDraw DIAGRAM reinforced with Rapid UML solution. It can be helpful for students on software engineering, when learning UML.UML Notation *
Picture: UML Notation
Related Solution:
Matrix organizational structure is one of the main forms of structures which is actively used by organizations to carry forth the functions of a company visually and effectively. Now we have ConceptDraw DIAGRAM diagramming and vector drawing software extended with 25 Typical Orgcharts solution from the Management area of ConceptDraw Solution Park which will help easy represent matrix organizational structure of any degree of complexity.Matrix Organization Structure *
Picture: Matrix Organization Structure
Related Solution:
ConceptDraw
DIAGRAM 18