possible and locks (“Data Set is not available”) the
other “Writer” and “Reader Tasks”.
Figure 8 depicts the scenarios to describe a
simple solution for the “Readers-Writers Problem”
and the corresponding Petri-Net model.
Figure 8: Readers-Writers Problem Petri-Net Model.
The initial input place “Data Set is available” of
the “Reader” is merged with the initial input place
“Data Set is available” of the “Writer”. The output
place “Data Set is available” of the “Reader” is
merged with the output place “Data Set is
available” of the “Writer”.
6 CONCLUSIONS
This work proposes mapping rules for transforming
a specific natural language-based scenario model
into a Petri-Net model. The resulting Petri-Net
model can be analyzed using available tools (PIPE2,
2014). Such tools are able to identify the following
problems in a Petri Net model: boundedness, safety
and deadlock. As such, if this earlier feedback is
available, it is possible to trace backwards to
scenario descriptions and fix problems earlier on.
The main contributions of this work are
summarized as follows: (1) Describe and update an
abstract and concrete syntax for describing
scenarios. (2) Define mapping rules from Scenario
descriptions to Petri-Nets. (3) Express each mapping
rule in terms of “Data related issues” (Constraints,
Pre-Conditions and Results). (4) Define rules for
integrating Petri-Net models derived from different
scenarios of the application (modularity). (5)
Provide examples considering concurrent scenarios
in order to show the interactions by concurrency.
The contributions of this work provide
convenient ways to make explicit the non-sequential
interactions among scenarios by shared resources.
This fact can be used for further analysis of
properties (like deadlock and conflict) and testing.
Our future research plan will consider the
following tasks: (1) Define criteria to identify
inconsistency, incompleteness and incorrectness for
intra-scenario and inter-scenario relationships based
on analysis of structural and behavioral properties of
Petri-Nets. (2) Investigate strategies, which
automatically traverse the Petri-Net model to
generate the test scenarios based on path analysis
strategies. This strategy will take into account
interactions by “shared resources”.
REFERENCES
Andersson, M., Bergstrand, J., 1995. Formalizing Use
Cases with Message Sequence Charts. Master’s thesis.
Lund Inst. of Technology.
C & L., 2014. Scenarios & Lexicons. Available at:
http://pes.inf.puc-rio.br/cel.
Cockburn, A., 2001. Writing Effective Use Cases.
Addison-Wesley.
Downey, A. B., 2005. The Little Book of Semaphores.
Green Tea Press. Available at http://greenteapress.
com/semaphores.
Gutiérrez, J. J., Clémentine, N., Escalona, M. J., Mejías,
M., Ramos, I. M., 2008. Visualization of Use Cases
through Automatically Generated Activity Diagrams.
In: Czarnecki, K., Ober, I., Bruel, J.-M., Uhl, A.,
Völter, M. (eds.) MODELS. LNCS, volume 5301,
pages 83–96. Springer, Heidelberg.
Hsia, P., Samuel, J., Gao, J., Kung, D., Toyoshima, Y.,
Chen, C., 1994. Formal Approach to Scenario
Analysis. In IEEE Software, pages 33-41.
Lee, W. Cha, S. and Kwon, Y., 1998. Integration and
analysis of Use Cases Using Modular Petri Nets in
Requirements Engineering, In IEEE Transaction on
Software Engineering, volume 24, number 12, pages
1115-1130.
Lee, J., Pan, J. I., and Kuo, J. Y., 2001. Verifying
scenarios with time petri-nets. Inf. Softw. Technol.,
volume 43, number 13, pages 769–781.
Leite, J. C. S. P., Hadad, G., Doorn, J. and Kaplan, G.,
2000. A scenario construction process. Requirements
Engineering Journal, Springer-Verlag London
Limited, volume 5, number 1, pages 38-61.
PIPE2., 2014 Platform Independent Petri net Editor 2,
http://pipe2.sourceforge.net
Reisig, W., 1985. Petri Nets: An Introduction, Springer-
Verlag, Berlin, Heidelberg.
Somé, S., 2007. Petri Nets Based Formalization of Textual
Use Cases. Tech. Report in SITE, TR2007-11, Uni. of
Ottawa.
Zhao, J., Duan, Z., 2009. Verification of use case with
petri nets in requirement analysis. In Gervasi, O.,
Taniar, D., Murgante, B., Laganà, A., Mun, Y.,
Gavrilova, M. L. (eds.) ICCSA 2009, Part II. LNCS,
volume 5593, pages 29-42. Springer, Heidelberg.
MappingTextualScenariostoAnalyzablePetri-NetModels
501