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
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:9, Ensure that it is not possible to connect a port with two other ports owned by the same component
13 ** @verdict pass reject
14 ** @configuration port:broadcast
15 ***************************************************/
17 /*NOTE: see Figure 7(a): MyCompA has 3 ports and A2 shall not be connected to A1 and A3 both
20 module NegSem_0901_Communication_ports_003{
22 type charstring address;
24 type port IntegerInputPortType message {
26 } with {extension "internal"}
28 type component MycompA { // MyCompA has 3 ports
29 port IntegerInputPortType messagePortA1,messagePortA2,messagePortA3
32 testcase TC_NegSem_0901_Communication_ports_003() runs on MycompA {
34 connect(mtc:messagePortA1,mtc:messagePortA2);
35 connect(mtc:messagePortA2,mtc:messagePortA3); // Error: this is not allowed
39 execute(TC_NegSem_0901_Communication_ports_003());