1 /******************************************************************************
2 * Copyright (c) 2000-2016 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
13 ******************************************************************************/
16 import from Test344A all;
18 type objid MyObjectIdentifierType2
20 // AS A CONSTANT *********************************************
21 const MyObjectIdentifierType2 myObjectIdentifierValue2 := myObjectIdentifierValue1
23 type port MyPort message
26 } with { extension "internal" }
33 template MyType myMessage(objid par_objid) :=
38 type component MyMainComponent
43 type component MyParallelComponent
48 function handle_msg_on_ptc() runs on MyParallelComponent
51 // AS A PARAMETER *********************************************
52 P_PCO.receive (myMessage(myObjectIdentifierValue1))
56 testcase Test() runs on MyMainComponent
59 // AS A VARIABLE *********************************************
60 var MyObjectIdentifierType2 myObjectIdentifierValue3 := myObjectIdentifierValue1
62 var MyParallelComponent myparallelcomponent := MyParallelComponent.create;
63 connect ( mtc:M_PCO, myparallelcomponent: P_PCO );
64 myparallelcomponent.start(handle_msg_on_ptc());
66 // AS A PARAMETER *********************************************
67 M_PCO.send(myMessage(myObjectIdentifierValue1))
68 myparallelcomponent.done;