rohd
rohd copied to clipboard
`PairInterface` should enable receiving/driving all sub-interfaces as well
Motivation
When you add a sub-interface to a PairInterface, then if you ever use receiveAll or driveAll, it won't apply to all the subInterfaces. It would be nice if it did (maybe optionally?).
Desired solution
Something sort of like this:
void receiveOther(PairInterface other, Iterable<PairDirection> tags) {
super.receiveOther(other, tags);
subInterfaces.forEach((subIntfName, subIntf) {
subIntf.receiveOther(other.subInterfaces[subIntfName]!, tags);
});
}
Alternatives considered
No response
Additional details
No response