def __init__(self, netid=None, port=None):<EOL>
self._ams_addr = SAmsAddr()<EOL>if netid is not None:<EOL><INDENT>self.netid = netid<EOL><DEDENT>if port is not None:<EOL><INDENT>self.port = port<EOL><DEDENT>
Create a new AmsAddr object by a given netid and port.

        :param netid: NetId of an ADS device
        :param port: port of an ADS device