def __init__(self, period, simulationTime):		
		GenericAvgMeasure.__init__(self, period, simulationTime, Units.SECONDS)
		
		self.__startPattern = re.compile('DEBUG multicast.search.ParameterSearchImpl  - Peer .*? started search for parameters (\[.*?\]) searchID (\(.*?\)) .*? ([0-9]+\,[0-9]+).*?')
		self.__endPattern = re.compile('DEBUG multicast.search.ParameterSearchImpl  - Peer .*? found parameters (\[.*?\]) in node ([0-9]+) searchID (\(.*?\)) .*? ([0-9]+\,[0-9]+).*?')							 
		
		self.__currentSearches = {}
	def __init__(self, period, simulationTime):		
		GenericAvgMeasure.__init__(self, period, simulationTime, Units.SECONDS)
		
		self.__foundPattern = re.compile('DEBUG .*?  - Peer [0-9]+ received composition for search (\(.*?\)).*?([0-9]+\,[0-9]+).*?')
		self.__lostPattern = re.compile('DEBUG .*?  - Peer [0-9]+ received invalid composition for search (\(.*?\)).*?([0-9]+\,[0-9]+).*?')
		
		self.__searches = {}
	def __init__(self, period, simulationTime):		
		GenericAvgMeasure.__init__(self, period, simulationTime, Units.SECONDS)
		
		self.__addedRoute = re.compile('DEBUG multicast.search.unicastTable.UnicastTable  - Peer ([0-9]+) added route to ([0-9]+) ([0-9]+\,[0-9]+).*?')
		self.__removedRoute = re.compile('DEBUG multicast.search.unicastTable.UnicastTable  - Peer ([0-9]+) removed route to ([0-9]+) ([0-9]+\,[0-9]+).*?')		
		
		self.__addedRoutes = {}
	def __init__(self, period, simulationTime):		
		GenericAvgMeasure.__init__(self, period, simulationTime, Units.SECONDS)
		
		self.__startPattern = re.compile('DEBUG multicast.search.ParameterSearchImpl  - Peer .*? started search for parameters (\[.*?\]) searchID (\(.*?\)) .*? ([0-9]+\,[0-9]+).*?')
		self.__endPattern = re.compile('DEBUG multicast.search.ParameterSearchImpl  - Peer [0-9]+ accepted multicast.search.message.SearchMessage\(.*?\) (\(.*?\)) distance .*? parameters \[.*?\] ([0-9]+\,[0-9]+).*?')							 
		
		self.__currentSearches = {}
	def __init__(self, period, simulationTime):		
		GenericAvgMeasure.__init__(self, period, simulationTime, Units.SECONDS)
		
		self.__foundPattern = re.compile('DEBUG multicast.search.ParameterSearchImpl  - Peer ([0-9]+) found parameters .*? in node ([0-9]+) .*? ([0-9]+\,[0-9]+).*?')
		self.__lostPattern = re.compile('DEBUG multicast.search.ParameterSearchImpl  - Peer ([0-9]+) lost route to destinations (\[.*?\]) ([0-9]+\,[0-9]+).*?')		
		
		self.__foundPeers = {}
Exemple #6
0
	def __init__(self, period, simulationTime):
		GenericAvgMeasure.__init__(self, period, simulationTime, Units.NEIGHBORS, maintainLastValue=True)
		
		self.__initializePattern = re.compile('INFO  peer.BasicPeer  - Peer ([0-9]+) initializing ([0-9]+\,[0-9]+).*?')
		self.__appearPattern = re.compile('DEBUG detection.beaconDetector.BeaconDetector  - Peer ([0-9]+) has new neighbors: (\[.*?\]) ([0-9]+\,[0-9]+).*?')
		self.__disappearPattern = re.compile('DEBUG detection.beaconDetector.BeaconDetector  - Peer ([0-9]+) has lost neighbors: (\[.*?\]) ([0-9]+\,[0-9]+).*?')
		
		self.__currentNeighbors = {}
    def __init__(self, period, simulationTime):
        GenericAvgMeasure.__init__(self, period, simulationTime, Units.HOPS)

        self.__acceptedPattern = re.compile(
            "DEBUG multicast.search.ParameterSearchImpl  - Peer [0-9]+ accepted multicast.search.message.SearchMessage\(.*?\) .*? distance ([0-9]+) .*? ([0-9]+\,[0-9]+).*?"
        )
        self.__foundPattern = re.compile(
            "DEBUG multicast.search.ParameterSearchImpl  - Peer .*? found parameters .*? in node [0-9]+ searchID .*? distance ([0-9]+) ([0-9]+\,[0-9]+).*?"
        )