Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Калькулятор поведения #12

Open
mikanoz opened this issue Jun 17, 2014 · 0 comments
Open

Калькулятор поведения #12

mikanoz opened this issue Jun 17, 2014 · 0 comments

Comments

@mikanoz
Copy link
Contributor

mikanoz commented Jun 17, 2014

Нужен сервис, который будет рассчитывать и решать, как вести себя какой-то внешней системе, когда у нее возникает некоторое событие.

Это выглядит примерно так:

image

Или - то же самое событие, но с другими условиями, когда система получает два решения одновременно:

image

Условия задачи таковы, что система "Клиент" является очень "глупой" и не может принять решение даже по самым очевидным действиям.

Калькулятор будет получать события по http-запросу или из сервера очередей.
Входящее событие представляет собой строковый код (sid - уникальное имя события - я на улице), и набор уточняющих данных (я мокрый, идет дождь).

Калькулятор хранит правила, по которым он будет принимать решение. Для последней схемы - на одно и то же событие "я на улице" будет два правила::

// правило первое
| 1 | im_on_street | rain === true | go_home |
// правило второе
| 2 | im_on_street | rain === true AND umbrella === true | use_umbrella |

Выражение rain === true является псевдо-языком, который означает, что "если в данных события есть ключ rain и он равен true".

В данном примере при входящем событии сработают оба правила, следовательно калькулятор должен отправить два сигнала - go_home и use_umbrella.

Предметная область (базовая схема таблиц в базе данных):

image

Условия реализации:

Задача должна быть решена на основе Laravel в виде пакета (http://laravel.com/docs/packages)

mikanoz pushed a commit that referenced this issue Jul 16, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 17, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 17, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 18, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 18, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 18, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 23, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 24, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 24, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 24, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 24, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 25, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 28, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 28, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 29, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 29, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 29, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Jul 31, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 1, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 4, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 5, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 5, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 5, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 6, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 8, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 12, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 12, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 12, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 14, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 14, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 28, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 28, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 29, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 29, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 29, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 29, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 30, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Aug 31, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 2, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 2, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 4, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 5, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 5, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 8, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 8, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 9, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 9, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 10, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 11, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 11, 2014
mikanoz added a commit that referenced this issue Sep 13, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 16, 2014
mikanoz pushed a commit that referenced this issue Sep 17, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 18, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 19, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 19, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 19, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 19, 2014
truetamtam pushed a commit to truetamtam/fintech-fab.ru that referenced this issue Sep 19, 2014
mikanoz added a commit that referenced this issue Sep 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant