• No results found

Designing Animation Facilities for gCSP

N/A
N/A
Protected

Academic year: 2021

Share "Designing Animation Facilities for gCSP"

Copied!
1
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Communicating Process Architectures 2008 P.H. Welch et al. (Eds.)

IOS Press, 2008 c

2008 The authors and IOS Press. All rights reserved.

447

Designing Animation Facilities for gCSP

Hans T.J. VAN DER STEEN, Marcel A. GROOTHUIS and Jan F. BROENINK

Control Engineering, Faculty EEMCS, University of Twente,

P.O. Box 217 7500 AE Enschede, The Netherlands.

{T.T.J.vanderSteen , M.A.Groothuis , J.F.Broenink} @utwente.nl

Abstract. To improve feedback on how concurrent CSP-based programs run, the graphical CSP design tool (gCSP [3,2]) has been extended with animation facilities. The state of processes, constructs, and channel ends are indicated with colours both in the gCSP diagrams and in the composition tree (hierarchical tree showing the structure of the total program). Furthermore, the contents of the channels are also shown. In the Fringe session, we will present and demonstrate this prototype animation facility, being the result of the MSc project of Hans van der Steen [5], and ask for feedback. Keywords. graphical CSP tools, IDE, code generation.

Outline

The CTC++ run time library [1,4] has been augmented, such that it generates the status

infor-mation gCSP needs. The content of the ready queue of the scheduler is also made available.

The animation is controlled from within the gCSP design tool. Breakpoints and the

ani-mation speed can be set. Choosing the aniani-mation speed between about 0.2 and 1 s (i.e. time

duration between two state changes of processes, constructs or channel ends) allows the user

to follow the behaviour of the program. The execution history (the stream of status events

coming from the running CSP program) is shown in a log window. The stream of status events

can be filtered, to focus on those parts of the program one is interested in. The contents of the

channels and of the ready queue are shown in a separate log window.

Tests were performed on the practical use of animation, the execution behavior of gCSP

models and the C++ code generator of gCSP. Using a prototype version in our MSc class on

real-time software development showed that this animation helps the students’ understanding

of concurrency. At least, significantly fewer questions were asked during the lab exercises.

References

[1] G.H. Hilderink, A.W.P. Bakkers, and J.F. Broenink. A Distributed Real-Time Java System Based on CSP. In The third IEEE International Symposium on Object-Oriented Real-Time Distributed Computing ISORC 2000, pages 400–407. IEEE, Newport Beach, CA, 2000.

[2] D.S. Jovanovic. Designing dependable process-oriented software, a CSP approach. PhD thesis, University of Twente, Enschede, NL, 2006.

[3] Dusko S. Jovanovic, Bojan Orlic, Geert K. Liet, and Jan F. Broenink. gCSP: A Graphical Tool for De-signing CSP systems. In Ian East, Jeremy Martin, Peter H. Welch, David Duce, and Mark Green, editors, Communicating Process Architectures 2004, pages 233–251. IOS press, Oxford, UK, 2004.

[4] Bojan Orlic and Jan F. Broenink. Redesign of the C++ Communicating Threads library for embedded control systems. In Frank Karelse, editor, 5th PROGRESS Symposium on Embedded Systems, pages 141– 156. STW, Nieuwegein, NL, 2004.

[5] T.T.J. van der Steen. Design of animation and debug facilities for gCSP. MSc Thesis 020CE2008, Univer-sity of Twente, 2008.

Referenties

GERELATEERDE DOCUMENTEN

In the results relating to this research question, we will be looking for different F2 vowel values for trap and dress and/or variability in isolation that does not occur (yet)

Furthermore, the local systolic and diastolic blood pressure can be measured directly in the brachial artery while ultrasound measurements can be performed in the main conduit

Kuil 6 in sleuf 3 heeft een wandscherf opgeleverd die naar alle waarschijnlijkheid midden neolithisch is 34. De magering van de scherf bestaat uit hoekige brokjes

Recently in [ 15 ], a compensation scheme has been proposed that can decouple the frequency selective receiver IQ imbalance from the channel distortion, resulting in a

Both the state and the contents of a channel can be used for analysis and prediction of the behavior of the processes, which makes it useful information while analyzing the

This pattern also requires the addition of accessor methods for attributes when functionality from one logic specification requires access to an attribute defined in another

It is consistently seen that reductionist worldviews, political interests and insufficiency of the institutional framework are common threads in the way interactions

For any connected graph game, the average tree solution assigns as a payoff to each player the average of the player’s marginal contributions to his suc- cessors in all