i would use a single port on A and a single port on B.
However, for the provided and required interfaces i would use the interfaces of ports p_B1 and p_B2 as superclasses for the interface of p_B (iow i_B1 and i_B2 are superclasses of i_B). the same for ports p_A, p_A1, p_A2\i_A, i_A1 and i_A2.
see the attached example
this gets a bit more complicated when you start using required and provided interfaces, but has the advantage that you neither lose information, nor add superfluous ports which may inhibit alternate designs in the future (and generally add mess on the higher levels.)
- Daniel
> Date: Fri, 6 Nov 2009 05:09:51 -0800
> Subject: [SysML Forum] Ports and (Internal) block diagrams
> From:
frederic....@gmail.com> To:
sysml...@googlegroups.com