示例#1
0
    def __init__(self, address, links=None):
        """ Constructor for Host

        :param address: unique address of this Node
        :param links: list of Links (objects) this Node is connected to
        """
        super(self.__class__, self).__init__(address, links)
        self.flows = dict()
        self.flowrecipients = dict()
        self.stats = HostStats(address)