In Element there is the following function:
def get_peer_name(self) -> str:
"""
Returns a string representation of peer simulator or control system
"""
return "None" if self._peer is None else f"{self._peer.__class__.__name__}:{self._peer.name()}"
If I understand correctly peer is an ElementHolder but ElementHolder doesn't seem to have a function name or any other attributes/functions related to name. Is this a bug?
Also, is this function really needed since there is also a property for peer so if peer has an attribute name can't you just get it with peer.name without needing a dedicated function for it in the Element class?
In
Elementthere is the following function:If I understand correctly
peeris anElementHolderbutElementHolderdoesn't seem to have a functionnameor any other attributes/functions related to name. Is this a bug?Also, is this function really needed since there is also a property for
peerso ifpeerhas an attribute name can't you just get it with peer.name without needing a dedicated function for it in theElementclass?