In reply to sharvil111:
Absolutely, as associative array index is string and get_full_name() would be index of associative array of connected imp ports. Thus leaf level component doesn’t have information about at which index which component’s implementation port is connected.
Eventually , somehow Agent1 requires routing hook up information to make it aware about connection index.
Due to this limitation , we usually use analysis port/import to let implementer (Target) decide whether packet is required for its component or not :).
setting default implementation by considering a get_full_name() of objects seemed a bit bewildering to me.
Connected implementation port’s index string should not be identical, if it is identical then, it would be hazardous. I can recall only one thing which does not give identical value i.e get_full_name() , Thus they have used get_full_name() in index to ensure that array should not override previous pointer value of implementation port.
Hope, it should be clear. If you have an idea about index type to overcome this limitation , feel free to suggest better option. :)