1 /******************************************************************************
2 * Copyright (c) 2000-2014 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 Test342A all;
12 type float MyRealType2
14 // AS A CONSTANT *********************************************
15 const MyRealType2 myRealValue2 := myRealValue1
17 type port MyPort message
20 } with { extension "internal" }
27 template MyType myMessage(float par_float) :=
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(myRealValue1))
50 testcase Test() runs on MyMainComponent
53 // AS A VARIABLE *********************************************
54 var MyRealType2 myRealValue3 := myRealValue1
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(myRealValue1))
62 myparallelcomponent.done;