def __init__(self, period, simulationTime):
        patterns = []

        measures = (
            "dissemination.newProtocol.message.TableMessage",
            "multicast.search.message.SearchMessage",
            "multicast.search.message.SearchResponseMessage",
            "multicast.search.message.RemoveRouteMessage",
            "multicast.search.message.RemoveParametersMessage",
        )

        for measure in measures:
            pattern = "DEBUG .*?  - Peer .*? sending " + measure + " .*? ([0-9]+) bytes ([0-9]+\,[0-9]+).*?"
            patterns.append(re.compile(pattern))

        patterns.append(
            re.compile(
                "DEBUG .*?  - Peer .*? sending multicast.search.message.RemoteMulticastMessage\(graphcreation.collisionbased.message.ConnectServicesMessage\) .*? ([0-9]+) bytes ([0-9]+\,[0-9]+).*?"
            )
        )
        patterns.append(
            re.compile(
                "DEBUG .*?  - Peer .*? sending multicast.search.message.RemoteMulticastMessage\(graphcreation.collisionbased.message.DisconnectServicesMessage\) .*? ([0-9]+) bytes ([0-9]+\,[0-9]+).*?"
            )
        )
        patterns.append(
            re.compile(
                "DEBUG .*?  - Peer .*? sending multicast.search.message.RemoteMulticastMessage\(graphcreation.collisionbased.message.RemovedServicesMessage\) .*? ([0-9]+) bytes ([0-9]+\,[0-9]+).*?"
            )
        )

        TrafficOverhead.__init__(self, period, simulationTime, measures)

        self.setPatterns(patterns)
	def __init__(self, period, simulationTime):		
		measures = ('dissemination.newProtocol.message.TableMessage', 
				   'multicast.search.message.SearchMessage', 
				   'multicast.search.message.SearchResponseMessage',
				   'multicast.search.message.RemoveRouteMessage',
				   'multicast.search.message.RemoveParametersMessage')
		
		TrafficOverhead.__init__(self, period, simulationTime, measures)
    def __init__(self, period, simulationTime):
        patterns = []
        patterns.append(
            re.compile(
                "DEBUG .*?  - Peer .*? sending multicast.search.message.RemoteMulticastMessage\(graphsearch.forward.message.FCompositionMessage\) .*? ([0-9]+) bytes ([0-9]+\,[0-9]+).*?"
            )
        )
        patterns.append(
            re.compile(
                "DEBUG .*?  - Peer .*? sending multicast.search.message.RemoteMulticastMessage\(graphsearch.backward.message.BCompositionMessage\) .*? ([0-9]+) bytes ([0-9]+\,[0-9]+).*?"
            )
        )
        patterns.append(
            re.compile(
                "DEBUG .*?  - Peer .*? sending multicast.search.message.RemoteMulticastMessage\(graphsearch.bidirectionalsearch.message.CompositionNotificationMessage\) .*? ([0-9]+) bytes ([0-9]+\,[0-9]+).*?"
            )
        )

        TrafficOverhead.__init__(self, period, simulationTime, [])

        self.setPatterns(patterns)