1 /******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 ******************************************************************************/
10 import from Test338A all;
12 type boolean MyBooleanType2
14 // AS A CONSTANT *********************************************
15 const MyBooleanType2 myBooleanValue2 := myBooleanValue1
17 type port MyPort message
20 } with { extension "internal" }
27 template MyType myMessage(boolean par_boolean) :=
32 type component MyMainComponent
37 type component MyParallelComponent
42 function handle_msg_on_ptc() runs on MyParallelComponent
45 // AS A PARAMETER *********************************************
46 P_PCO.receive (myMessage(myBooleanValue1))
50 testcase Test() runs on MyMainComponent
53 // AS A VARIABLE *********************************************
54 var MyBooleanType2 myBooleanValue3 := myBooleanValue1
56 var MyParallelComponent myparallelcomponent := MyParallelComponent.create;
57 connect ( mtc:M_PCO, myparallelcomponent: P_PCO );
58 myparallelcomponent.start(handle_msg_on_ptc());
60 // AS A PARAMETER *********************************************
61 M_PCO.send(myMessage(myBooleanValue1))
62 myparallelcomponent.done;