معرفی شرکت ها


fsm-finite-state-machine-0.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Finite State Machine
ویژگی مقدار
سیستم عامل -
نام فایل fsm-finite-state-machine-0.1.0
نام fsm-finite-state-machine
نسخه کتابخانه 0.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده André Rodrigues Almeida <dralm3ida.dev@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/fsm-finite-state-machine/
مجوز MIT License Copyright (c) 2022 André Rodrigues Almeida Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Finite State Machine <!-- [![Latest Release](https://img.shields.io/pypi/v/finite-state-machine)]() --> [![Version](https://img.shields.io/badge/version-v0.1.0-orange.svg)](https://github.com/dralm3ida/finite-state-machine) [![Supports Python 3.8+](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org/download/releases/) [![License](https://img.shields.io/github/license/dralm3ida/finite-state-machine.svg)](LICENSE) Object-oriented finite state machine implementation using python #### Table of Contents <!-- TOC --> - [Installation](#installation) - [Usage](#usage) - [Examples](#examples) <!-- /TOC --> ## Installation Download source code and run the following commands to install and uninstall the package: ```console pip install . pip uninstall fsm_finite_state_machine ``` ## Usage There are 3 main classes in this package to be used: 1. `State` - Contains the definition of the state machine state as a string key 2. `Transition` - Contains the definition of a state machine transition, such as transition name, the source state and the destination state 3. `FSM` - Is the definition of the Finite State Machine which must be instatiated with the following arguments: - `model` - The entity model which contains the state value, the state value setters and the transition triggers execution methods. - `states` - Its a dictionary of states that the state machine will use to operate - `transitions` - Contains the list of transitions definitions - `currentStateValue` - Corresponds to the initial state or current state values to be passed to the state machine After defining the `states` and the `transitions` the state machine can be used by: 1. Instantiating a state machine object; 2. Triggering a state machine transition, so the machine knows to which state it will jump next. In this step it is also possible to pass arguments to be used by the transition trigger methods. These arguments are optional; 3. And finally by executing the state machine itself, which will execute the transition trigger methods. Code example: ```python fsm = FSM(model, STATES, TRANSITIONS, stateValue) fsm.triggerTransition(transitionName, data1, data2, ...) fsm.execute() ``` ## Examples Check the following link: [examples](./examples/README.md)


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl fsm-finite-state-machine-0.1.0:

    pip install fsm-finite-state-machine-0.1.0.whl


نصب پکیج tar.gz fsm-finite-state-machine-0.1.0:

    pip install fsm-finite-state-machine-0.1.0.tar.gz