Both sides previous revision
Poprzednia wersja
Nowa wersja
|
Poprzednia wersja
Nowa wersja
Both sides next revision
|
pl:miw:miw08_bizrulesvocabularies2 [2008/06/10 10:23] miw |
pl:miw:miw08_bizrulesvocabularies2 [2008/06/14 13:42] gjn |
====== Opis ====== | ====== Opis ====== |
| __**Projekt zakończony**__ |
| |
Magdalena, Pluta, <mpluta@wp.pl> | Magdalena, Pluta, <mpluta@wp.pl> |
| |
===== 080527 ===== | ===== 080527 ===== |
* w.w. opis | * w.w. opis |
| |
| |
| |
| |
| |
=== opis thermostatu w SBVR === | === opis thermostatu w SBVR === |
* [[hekate:hekate_case_thermostat|thermostat]] | |
* [[miw:miw08_bizrulesvocabularies2:thermostat|thermostat sbvr]] | * [[pl:miw:miw08_bizrulesvocabularies2:thermostat|thermostat sbvr]] |
| |
| |
| |
SBVR SE wykorzystuje zwroty i wyrażenia języka angielskiego do opisu słownictwa oraz definiowania reguł. | SBVR SE wykorzystuje zwroty i wyrażenia języka angielskiego do opisu słownictwa oraz definiowania reguł. |
| |
| |
| |
| |
* Modal Operations | * Modal Operations |
| |
^^ Modal Operations^^ | ^^ Modal Operations^^ |
|it is obligatory that p |obligation formulation| | |it is obligatory that p |obligation formulation| |
| |
===== Opis termostatu w SBVR ===== | ===== Opis termostatu w SBVR ===== |
| |
| |
| |
==== Opis słownika i reguł ==== | ==== Opis słownika i reguł ==== |
| |
{{:pl:miw:miw08_bizrulesvocabularies2:thermostat1.jpg|thermostat}} | {{:pl:miw:miw08_bizrulesvocabularies2:thermostat1.jpg|thermostat}} |
| |
| |
| |
==== Zapis thermostatu w ARD ==== | ==== Zapis thermostatu w ARD ==== |
| |
| |
{{:pl:miw:miw08_bizrulesvocabularies:thermostatard.png|thermostatard}} | {{:pl:miw:miw08_bizrulesvocabularies2:ard.jpg|thermostatard}} |
| |
===== Proponowany algorytm zamiany SBVR <-> ARD ===== | |
| |
| Wykresy zostały sporządzone przy pomocy graficznego programu Dia. |
| |
| |
| |
| |
| |
| ===== Algorytm zamiany SBVR <-> ARD ===== |
| |
| Na podstawie oryginalnych [[hekate:hekate_case_thermostat|reguł]] opisujących działanie termostatu zostały zapisane reguły w SBVR. Tak zapisane reguły zostały przedstawione w sposób graficzny przy pomocy diagramu SBVR. |
| |
| Te same oryginalne reguły stały się punktem wyjścia dla stworzenie diagramu ARD. |
| |
| Porównując oba diagramy nasuwa się wniosek, że są one niemalże identyczne. Po usunięciu elementów dotyczących szczegółowego opisu sezonu, pór roku, dni tygodni w tym dni pracujących i wolnych, otrzymujemy diagram identyczny z diagramem ARD. Reguły SBVR opisujące tę część diagramu ograniczają się do reguł: |
| |
| * It is necessary that in spring on business_hours thermostat_setting is ’20 degree’. |
| * It is necessary that in spring on not_on_business_hours thermostat_setting is ’15 degree’. |
| * It is necessary that in summer on business_hours thermostat_setting is ’24 degree’. |
| * It is necessary that in summer on not_on_business_hours thermostat_setting is ’27 degree’. |
| * It is necessary that in autumn on business_hours thermostat_setting is ’20 degree’. |
| * It is necessary that in autumn on not_on_business_hours thermostat_setting is ’16 degree’. |
| * It is necessary that in winter on business_hours thermostat_setting is ’18 degree’. |
| * It is necessary that in winter on not_on_business_hours thermostat_setting is ’14 degree’. |
| |
| |
===== Trudności i ograniczenia ===== | |
| |
Zaletą zapisu reguł i słownika w SBVR jest duża elastyczność i intuicyjność zapisu. Język ten jest łatwy do odczytu również przez osoby nie posiadające doświadczenia w tej dziedzinie, jednakże w przypadku próby stworzenia skutecznego algorytmu przekształcenia SBVR do ARD i na odwrót czynność ta może dostarczyć dość dużych trudności i może okazać się dość skomplikowana. | |
| |
====== Materiały ====== | ====== Materiały ====== |