Next: Cannot bind two wildcards, Previous: port is bound more than once, Up: Well-formedness – System [Contents][Index]
The directions of the left and right port mentioned in the binding do not match. The following constructs are allowed:
interface ihello
{
in bool hello ();
behavior {on hello:{}}
}
component hello
{
provides ihello p;
requires ihello r;
behavior {}
}
component world
{
provides ihello p;
behavior {}
}
component instance_port_not_bound
{
provides ihello p;
system
{
hello h;
world w;
p <=> h.r;
h.p <=> w.p;
}
}
This results in the following error messages:
binding-mismatch-direction.dzn:27:5: error: cannot bind provides port
`p' to requires port `r'
binding-mismatch-direction.dzn:22:3: info: port `p' defined here
binding-mismatch-direction.dzn:10:3: info: port `r' defined here
binding-mismatch-direction.dzn:28:5: error: cannot bind provides port
`p' to provides port `p'
binding-mismatch-direction.dzn:16:3: info: port `p' defined here
binding-mismatch-direction.dzn:9:3: info: port `p' defined here