source: trunk/t3q-examples/CodeFormatting/altsteps.ttcn3 @ 22

Last change on this file since 22 was 4, checked in by phdmakk, 15 years ago
File size: 682 bytes
Line 
1module altsteps {
2//altstep skeleton without parameters
3altstep a_sample ()
4        runs on R3Comp {
5}
6
7//altstep with full body, multiple parameters, with passing modes and a runs on clause
8
9altstep a_sample2 ( template R3Msg p_radiusAccntReq, inout template R3Msg p_radiusAccntRsp )
10        runs on R3Comp {
11
12                []      r3Port.receive ( m_r3MonitorInd ( p_radiusAccntReq ) ) {
13                v_ret := e_success;
14        }
15        [] r3Port.receive ( m_r3MonitorInd (
16                          e_RadiusAccountingRequest,
17                          p_radiusAccntReq ) ) {
18                v_ret := e_success;
19        }
20 }
21
22
23//altstep skeleton with a single parameter
24altstep a_sample1 (template R3Msg p_radiusAccntReq) {
25}       
26}
Note: See TracBrowser for help on using the repository browser.